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

Unified Diff: trunk/src/remoting/client/frame_producer.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/frame_producer.h
===================================================================
--- trunk/src/remoting/client/frame_producer.h (revision 224204)
+++ trunk/src/remoting/client/frame_producer.h (working copy)
@@ -6,12 +6,12 @@
#define REMOTING_CLIENT_FRAME_PRODUCER_H_
#include "base/callback_forward.h"
+#include "third_party/skia/include/core/SkRect.h"
+#include "third_party/skia/include/core/SkRegion.h"
+#include "third_party/skia/include/core/SkSize.h"
namespace webrtc {
class DesktopFrame;
-class DesktopRect;
-class DesktopRegion;
-class DesktopSize;
} // namespace webrtc
namespace remoting {
@@ -31,7 +31,7 @@
// Requests repainting of the specified |region| of the frame as soon as
// possible. |region| is specified in output coordinates relative to
// the beginning of the frame.
- virtual void InvalidateRegion(const webrtc::DesktopRegion& region) = 0;
+ virtual void InvalidateRegion(const SkRegion& region) = 0;
// Requests returing of all pending buffers to the consumer via
// FrameConsumer::ReturnBuffer() calls.
@@ -39,11 +39,11 @@
// Notifies the producer of changes to the output view size or clipping area.
// Implementations must cope with empty |view_size| or |clip_area|.
- virtual void SetOutputSizeAndClip(const webrtc::DesktopSize& view_size,
- const webrtc::DesktopRect& clip_area) = 0;
+ virtual void SetOutputSizeAndClip(const SkISize& view_size,
+ const SkIRect& clip_area) = 0;
// Returns a reference to the shape of the most recently drawn buffer.
- virtual const webrtc::DesktopRegion* GetBufferShape() = 0;
+ virtual const SkRegion* GetBufferShape() = 0;
protected:
virtual ~FrameProducer() {}
« no previous file with comments | « trunk/src/remoting/client/frame_consumer_proxy.cc ('k') | trunk/src/remoting/client/jni/jni_frame_consumer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698