summaryrefslogtreecommitdiffstats
path: root/remoting/base/decoder_vp8.h
diff options
context:
space:
mode:
authordmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-30 19:45:02 +0000
committerdmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-30 19:45:02 +0000
commit125444b5adec00c029d1c80f8aed6a3faad34f59 (patch)
tree47cb54e01a679c2242cf44c10f3b81f8d7eb2b00 /remoting/base/decoder_vp8.h
parenta2371af49ec916dc7b62c8303567dce170bd832f (diff)
downloadchromium_src-125444b5adec00c029d1c80f8aed6a3faad34f59.zip
chromium_src-125444b5adec00c029d1c80f8aed6a3faad34f59.tar.gz
chromium_src-125444b5adec00c029d1c80f8aed6a3faad34f59.tar.bz2
Move us fully from gfx:: over to skia types for consistency.
BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/7992011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103523 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/base/decoder_vp8.h')
-rw-r--r--remoting/base/decoder_vp8.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/remoting/base/decoder_vp8.h b/remoting/base/decoder_vp8.h
index 7aab0fb..33ec147 100644
--- a/remoting/base/decoder_vp8.h
+++ b/remoting/base/decoder_vp8.h
@@ -18,15 +18,16 @@ class DecoderVp8 : public Decoder {
virtual ~DecoderVp8();
// Decoder implementations.
- 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);
+ 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;
private:
enum State {
@@ -40,14 +41,14 @@ class DecoderVp8 : public Decoder {
// Perform color space conversion on the specified rectangles.
// Write the updated rectangles to |output_rects|.
- void ConvertRects(const UpdatedRects& rects,
- UpdatedRects* output_rects);
+ void ConvertRects(const RectVector& rects,
+ RectVector* output_rects);
// Perform scaling and color space conversion on the specified
// rectangles.
// Write the updated rectangles to |output_rects|.
- void ScaleAndConvertRects(const UpdatedRects& rects,
- UpdatedRects* output_rects);
+ void ScaleAndConvertRects(const RectVector& rects,
+ RectVector* output_rects);
// The internal state of the decoder.
State state_;
@@ -61,10 +62,10 @@ class DecoderVp8 : public Decoder {
vpx_image_t* last_image_;
// Record the updated rects in the last decode.
- UpdatedRects updated_rects_;
+ RectVector updated_rects_;
// Clipping rect for the output of the decoder.
- gfx::Rect clip_rect_;
+ SkIRect clip_rect_;
// Scale factors of the decoded output.
double horizontal_scale_ratio_;