summaryrefslogtreecommitdiffstats
path: root/remoting/client/frame_consumer.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-25 22:16:21 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-25 22:16:21 +0000
commite59d6594e14b9a697098cc517f7218941e2787ff (patch)
treee04cc296501d095e24acfb5357c5af5bacebca82 /remoting/client/frame_consumer.h
parent1f291cd57a56e70369dc2e47e3d4be6102254102 (diff)
downloadchromium_src-e59d6594e14b9a697098cc517f7218941e2787ff.zip
chromium_src-e59d6594e14b9a697098cc517f7218941e2787ff.tar.gz
chromium_src-e59d6594e14b9a697098cc517f7218941e2787ff.tar.bz2
Remove dependency on Skia from chromoting client.
Now DesktopRegion, DesktopRect and DesktopSize are used instead of corresponding skia types. R=alexeypa@chromium.org TBR=reed@google.com (for _moved_ skia dependency) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224101 Review URL: https://codereview.chromium.org/23440046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225265 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client/frame_consumer.h')
-rw-r--r--remoting/client/frame_consumer.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/remoting/client/frame_consumer.h b/remoting/client/frame_consumer.h
index b5f937c..4df7595 100644
--- a/remoting/client/frame_consumer.h
+++ b/remoting/client/frame_consumer.h
@@ -6,12 +6,13 @@
#define REMOTING_CLIENT_FRAME_CONSUMER_H_
#include "base/basictypes.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;
+class DesktopVector;
} // namespace webrtc
namespace remoting {
@@ -26,10 +27,10 @@ class FrameConsumer {
//
// N.B. Both |clip_area| and |region| are in output coordinates relative to
// the frame.
- 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) = 0;
+ const webrtc::DesktopRegion& 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
@@ -37,8 +38,8 @@ class FrameConsumer {
virtual void ReturnBuffer(webrtc::DesktopFrame* buffer) = 0;
// Set the dimension of the entire host screen.
- virtual void SetSourceSize(const SkISize& source_size,
- const SkIPoint& dpi) = 0;
+ virtual void SetSourceSize(const webrtc::DesktopSize& source_size,
+ const webrtc::DesktopVector& dpi) = 0;
protected:
FrameConsumer() {}