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

Unified Diff: remoting/client/jni/jni_frame_consumer.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/frame_producer.h ('k') | remoting/client/jni/jni_frame_consumer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/jni/jni_frame_consumer.h
diff --git a/remoting/client/jni/jni_frame_consumer.h b/remoting/client/jni/jni_frame_consumer.h
index 38ff86c61078ae9d58e9c3a1ed59d10399c78d65..14155a15379d9c2f1d0cc2eeb31f92e6f4cd83cf 100644
--- a/remoting/client/jni/jni_frame_consumer.h
+++ b/remoting/client/jni/jni_frame_consumer.h
@@ -8,6 +8,7 @@
#include "remoting/client/frame_consumer.h"
#include "base/compiler_specific.h"
+#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
namespace webrtc {
class DesktopFrame;
@@ -29,13 +30,13 @@ class JniFrameConsumer : public FrameConsumer {
void set_frame_producer(FrameProducer* producer);
// FrameConsumer implementation.
- virtual void ApplyBuffer(const SkISize& view_size,
- const SkIRect& clip_area,
+ virtual void ApplyBuffer(const webrtc::DesktopSize& view_size,
+ const webrtc::DesktopRect& clip_area,
webrtc::DesktopFrame* buffer,
- const SkRegion& region) OVERRIDE;
+ const webrtc::DesktopRegion& region) OVERRIDE;
virtual void ReturnBuffer(webrtc::DesktopFrame* buffer) OVERRIDE;
- virtual void SetSourceSize(const SkISize& source_size,
- const SkIPoint& dpi) OVERRIDE;
+ virtual void SetSourceSize(const webrtc::DesktopSize& source_size,
+ const webrtc::DesktopVector& dpi) OVERRIDE;
private:
// Variables are to be used from the display thread.
@@ -48,8 +49,8 @@ class JniFrameConsumer : public FrameConsumer {
bool in_dtor_;
FrameProducer* frame_producer_;
- SkISize view_size_;
- SkIRect clip_area_;
+ webrtc::DesktopSize view_size_;
+ webrtc::DesktopRect clip_area_;
// If |provide_buffer_|, allocates a new buffer of |view_size_|, informs
// Java about it, and tells the producer to draw onto it. Otherwise, no-op.
« no previous file with comments | « remoting/client/frame_producer.h ('k') | remoting/client/jni/jni_frame_consumer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698