Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Unified Diff: remoting/client/rectangle_update_decoder.h

Issue 23440046: Remove dependency on Skia from chromoting client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/plugin/pepper_view.cc ('k') | remoting/client/rectangle_update_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/rectangle_update_decoder.h
diff --git a/remoting/client/rectangle_update_decoder.h b/remoting/client/rectangle_update_decoder.h
index 6d46a1efa9739422ab1e09afa44987b6f21bdcd0..3c7468a082165b2629095ecd7375e703cb3f0e32 100644
--- a/remoting/client/rectangle_update_decoder.h
+++ b/remoting/client/rectangle_update_decoder.h
@@ -15,6 +15,7 @@
#include "remoting/client/frame_consumer_proxy.h"
#include "remoting/client/frame_producer.h"
#include "remoting/protocol/video_stub.h"
+#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
namespace base {
class SingleThreadTaskRunner;
@@ -52,11 +53,12 @@ class RectangleUpdateDecoder
// FrameProducer implementation. These methods may be called before we are
// Initialize()d, or we know the source screen size.
virtual void DrawBuffer(webrtc::DesktopFrame* buffer) OVERRIDE;
- virtual void InvalidateRegion(const SkRegion& region) OVERRIDE;
+ virtual void InvalidateRegion(const webrtc::DesktopRegion& region) OVERRIDE;
virtual void RequestReturnBuffers(const base::Closure& done) OVERRIDE;
- virtual void SetOutputSizeAndClip(const SkISize& view_size,
- const SkIRect& clip_area) OVERRIDE;
- virtual const SkRegion* GetBufferShape() OVERRIDE;
+ virtual void SetOutputSizeAndClip(
+ const webrtc::DesktopSize& view_size,
+ const webrtc::DesktopRect& clip_area) OVERRIDE;
+ virtual const webrtc::DesktopRegion* GetBufferShape() OVERRIDE;
// VideoStub implementation.
virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet,
@@ -89,14 +91,14 @@ class RectangleUpdateDecoder
scoped_ptr<VideoDecoder> decoder_;
// Remote screen size in pixels.
- SkISize source_size_;
+ webrtc::DesktopSize source_size_;
// Vertical and horizontal DPI of the remote screen.
- SkIPoint source_dpi_;
+ webrtc::DesktopVector source_dpi_;
// The current dimensions of the frame consumer view.
- SkISize view_size_;
- SkIRect clip_area_;
+ webrtc::DesktopSize view_size_;
+ webrtc::DesktopRect clip_area_;
// The drawing buffers supplied by the frame consumer.
std::list<webrtc::DesktopFrame*> buffers_;
« no previous file with comments | « remoting/client/plugin/pepper_view.cc ('k') | remoting/client/rectangle_update_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698