summaryrefslogtreecommitdiffstats
path: root/remoting/client/frame_consumer.h
diff options
context:
space:
mode:
authorsolb@chromium.org <solb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-04 02:46:50 +0000
committersolb@chromium.org <solb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-04 02:46:50 +0000
commitfbc08aa288ecf9ffba63e229a3017dfddda5a28f (patch)
tree29630834ba0d81f24e5c888238d8b3822d1b74b3 /remoting/client/frame_consumer.h
parentc84c6afb54cfbc9c7ad21a455c195870005be760 (diff)
downloadchromium_src-fbc08aa288ecf9ffba63e229a3017dfddda5a28f.zip
chromium_src-fbc08aa288ecf9ffba63e229a3017dfddda5a28f.tar.gz
chromium_src-fbc08aa288ecf9ffba63e229a3017dfddda5a28f.tar.bz2
Abstract PPAPI's ImageData behind webrtc::DesktopFrame interface
This abstracts away RectangleUpdateDecoder's direct use of the the former class. It will ease the development of non--Web app client implementations. BUG=255309 TBR=brettw (third_party/webrtc dependency) Review URL: https://chromiumcodereview.appspot.com/18233015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210113 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client/frame_consumer.h')
-rw-r--r--remoting/client/frame_consumer.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/remoting/client/frame_consumer.h b/remoting/client/frame_consumer.h
index a315054..81a6013 100644
--- a/remoting/client/frame_consumer.h
+++ b/remoting/client/frame_consumer.h
@@ -9,9 +9,9 @@
#include "third_party/skia/include/core/SkRegion.h"
#include "third_party/skia/include/core/SkSize.h"
-namespace pp {
-class ImageData;
-} // namespace pp
+namespace webrtc {
+class DesktopFrame;
+} // namespace webrtc
namespace remoting {
@@ -27,13 +27,13 @@ class FrameConsumer {
// the frame.
virtual void ApplyBuffer(const SkISize& view_size,
const SkIRect& clip_area,
- pp::ImageData* buffer,
+ webrtc::DesktopFrame* buffer,
const SkRegion& region) = 0;
// Accepts a buffer that couldn't be used for drawing for any reason (shutdown
// is in progress, the view area has changed, etc.). The accepted buffer can
// be freed or reused for another drawing operation.
- virtual void ReturnBuffer(pp::ImageData* buffer) = 0;
+ virtual void ReturnBuffer(webrtc::DesktopFrame* buffer) = 0;
// Set the dimension of the entire host screen.
virtual void SetSourceSize(const SkISize& source_size,