diff options
author | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-30 19:57:40 +0000 |
---|---|---|
committer | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-30 19:57:40 +0000 |
commit | 13b7a84041f48a558efb24725f0568b466b08cfd (patch) | |
tree | 0961c2135680b9f3e3441fd467c46828c964213e /remoting/base/decoder_vp8.h | |
parent | 125444b5adec00c029d1c80f8aed6a3faad34f59 (diff) | |
download | chromium_src-13b7a84041f48a558efb24725f0568b466b08cfd.zip chromium_src-13b7a84041f48a558efb24725f0568b466b08cfd.tar.gz chromium_src-13b7a84041f48a558efb24725f0568b466b08cfd.tar.bz2 |
Revert 103523 - Move us fully from gfx:: over to skia types for consistency.
BUG=NONE
TEST=BUILD
Review URL: http://codereview.chromium.org/7992011
TBR=dmaclach@chromium.org
Review URL: http://codereview.chromium.org/8103006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103526 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/base/decoder_vp8.h')
-rw-r--r-- | remoting/base/decoder_vp8.h | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/remoting/base/decoder_vp8.h b/remoting/base/decoder_vp8.h index 33ec147..7aab0fb 100644 --- a/remoting/base/decoder_vp8.h +++ b/remoting/base/decoder_vp8.h @@ -18,16 +18,15 @@ class DecoderVp8 : public Decoder { virtual ~DecoderVp8(); // Decoder implementations. - virtual void Initialize(scoped_refptr<media::VideoFrame> frame) OVERRIDE; - virtual DecodeResult DecodePacket(const VideoPacket* packet) OVERRIDE; - virtual void GetUpdatedRects(RectVector* rects) OVERRIDE; - virtual bool IsReadyForData() OVERRIDE; - virtual void Reset() OVERRIDE; - virtual VideoPacketFormat::Encoding Encoding() OVERRIDE; - virtual void SetScaleRatios(double horizontal_ratio, - double vertical_ratio) OVERRIDE; - virtual void SetClipRect(const SkIRect& clip_rect) OVERRIDE; - virtual void RefreshRects(const RectVector& rects) OVERRIDE; + virtual void Initialize(scoped_refptr<media::VideoFrame> frame); + virtual DecodeResult DecodePacket(const VideoPacket* packet); + virtual void GetUpdatedRects(UpdatedRects* rects); + virtual bool IsReadyForData(); + virtual void Reset(); + virtual VideoPacketFormat::Encoding Encoding(); + virtual void SetScaleRatios(double horizontal_ratio, double vertical_ratio); + virtual void SetClipRect(const gfx::Rect& clip_rect); + virtual void RefreshRects(const std::vector<gfx::Rect>& rects); private: enum State { @@ -41,14 +40,14 @@ class DecoderVp8 : public Decoder { // Perform color space conversion on the specified rectangles. // Write the updated rectangles to |output_rects|. - void ConvertRects(const RectVector& rects, - RectVector* output_rects); + void ConvertRects(const UpdatedRects& rects, + UpdatedRects* output_rects); // Perform scaling and color space conversion on the specified // rectangles. // Write the updated rectangles to |output_rects|. - void ScaleAndConvertRects(const RectVector& rects, - RectVector* output_rects); + void ScaleAndConvertRects(const UpdatedRects& rects, + UpdatedRects* output_rects); // The internal state of the decoder. State state_; @@ -62,10 +61,10 @@ class DecoderVp8 : public Decoder { vpx_image_t* last_image_; // Record the updated rects in the last decode. - RectVector updated_rects_; + UpdatedRects updated_rects_; // Clipping rect for the output of the decoder. - SkIRect clip_rect_; + gfx::Rect clip_rect_; // Scale factors of the decoded output. double horizontal_scale_ratio_; |