diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-25 22:16:21 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-25 22:16:21 +0000 |
commit | e59d6594e14b9a697098cc517f7218941e2787ff (patch) | |
tree | e04cc296501d095e24acfb5357c5af5bacebca82 /remoting/codec/video_decoder.h | |
parent | 1f291cd57a56e70369dc2e47e3d4be6102254102 (diff) | |
download | chromium_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/codec/video_decoder.h')
-rw-r--r-- | remoting/codec/video_decoder.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/remoting/codec/video_decoder.h b/remoting/codec/video_decoder.h index 61f0233..b3048a9 100644 --- a/remoting/codec/video_decoder.h +++ b/remoting/codec/video_decoder.h @@ -7,9 +7,12 @@ #include "base/basictypes.h" #include "remoting/proto/video.pb.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 DesktopRect; +class DesktopRegion; +class DesktopSize; +} // namespace webrtc namespace remoting { @@ -24,7 +27,7 @@ class VideoDecoder { // Initializes the decoder and sets the output dimensions. // |screen size| must not be empty. - virtual void Initialize(const SkISize& screen_size) = 0; + virtual void Initialize(const webrtc::DesktopSize& screen_size) = 0; // Feeds more data into the decoder. Returns true if |packet| was processed // and the frame can be displayed now. @@ -33,8 +36,8 @@ class VideoDecoder { // Marks the specified |region| of the view for update the next time // RenderFrame() is called. |region| is expressed in |view_size| coordinates. // |view_size| must not be empty. - virtual void Invalidate(const SkISize& view_size, - const SkRegion& region) = 0; + virtual void Invalidate(const webrtc::DesktopSize& view_size, + const webrtc::DesktopRegion& region) = 0; // Copies invalidated pixels within |clip_area| to |image_buffer|. Pixels are // invalidated either by new data received in DecodePacket(), or by explicit @@ -48,15 +51,15 @@ class VideoDecoder { // // On return, |output_region| contains the updated area, in |view_size| // coordinates. - virtual void RenderFrame(const SkISize& view_size, - const SkIRect& clip_area, + virtual void RenderFrame(const webrtc::DesktopSize& view_size, + const webrtc::DesktopRect& clip_area, uint8* image_buffer, int image_stride, - SkRegion* output_region) = 0; + webrtc::DesktopRegion* output_region) = 0; // Returns the "shape", if any, of the most recently rendered frame. // The shape is returned in source dimensions. - virtual const SkRegion* GetImageShape() = 0; + virtual const webrtc::DesktopRegion* GetImageShape() = 0; }; } // namespace remoting |