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

Unified Diff: trunk/src/remoting/client/rectangle_update_decoder.h

Issue 24217003: Revert 224101 "Remove dependency on Skia from chromoting client." (Closed) Base URL: svn://svn.chromium.org/chrome/
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
Index: trunk/src/remoting/client/rectangle_update_decoder.h
===================================================================
--- trunk/src/remoting/client/rectangle_update_decoder.h (revision 224204)
+++ trunk/src/remoting/client/rectangle_update_decoder.h (working copy)
@@ -15,7 +15,6 @@
#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;
@@ -53,12 +52,11 @@
// 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 webrtc::DesktopRegion& region) OVERRIDE;
+ virtual void InvalidateRegion(const SkRegion& region) OVERRIDE;
virtual void RequestReturnBuffers(const base::Closure& done) OVERRIDE;
- virtual void SetOutputSizeAndClip(
- const webrtc::DesktopSize& view_size,
- const webrtc::DesktopRect& clip_area) OVERRIDE;
- virtual const webrtc::DesktopRegion* GetBufferShape() OVERRIDE;
+ virtual void SetOutputSizeAndClip(const SkISize& view_size,
+ const SkIRect& clip_area) OVERRIDE;
+ virtual const SkRegion* GetBufferShape() OVERRIDE;
// VideoStub implementation.
virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet,
@@ -91,14 +89,14 @@
scoped_ptr<VideoDecoder> decoder_;
// Remote screen size in pixels.
- webrtc::DesktopSize source_size_;
+ SkISize source_size_;
// Vertical and horizontal DPI of the remote screen.
- webrtc::DesktopVector source_dpi_;
+ SkIPoint source_dpi_;
// The current dimensions of the frame consumer view.
- webrtc::DesktopSize view_size_;
- webrtc::DesktopRect clip_area_;
+ SkISize view_size_;
+ SkIRect clip_area_;
// The drawing buffers supplied by the frame consumer.
std::list<webrtc::DesktopFrame*> buffers_;
« no previous file with comments | « trunk/src/remoting/client/plugin/pepper_view.cc ('k') | trunk/src/remoting/client/rectangle_update_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698