diff options
author | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-30 02:31:59 +0000 |
---|---|---|
committer | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-30 02:31:59 +0000 |
commit | 61332ec78fa4a33f5af66c6baac63db0e3f27708 (patch) | |
tree | afcf66c8472c1c13429624abe7d4f9f2ec7f9de8 /cc/test/fake_content_layer_client.h | |
parent | c97ac4f2fd093c1491d0295de2a0c614ae388000 (diff) | |
download | chromium_src-61332ec78fa4a33f5af66c6baac63db0e3f27708.zip chromium_src-61332ec78fa4a33f5af66c6baac63db0e3f27708.tar.gz chromium_src-61332ec78fa4a33f5af66c6baac63db0e3f27708.tar.bz2 |
cc: Add pixel tests for PictureDrawQuad
Add tests for simple pictures, clipped pictures, transformed pictures,
scaled content rects, content subrects, and content scales.
As the software renderer doesn't support picture draw quad yet, this is
only turned on for the gl renderer.
R=danakj@chromium.org
BUG=none
Review URL: https://chromiumcodereview.appspot.com/14001009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197230 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_content_layer_client.h')
-rw-r--r-- | cc/test/fake_content_layer_client.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/test/fake_content_layer_client.h b/cc/test/fake_content_layer_client.h index dfc8ce7..ff42855 100644 --- a/cc/test/fake_content_layer_client.h +++ b/cc/test/fake_content_layer_client.h @@ -28,7 +28,7 @@ class FakeContentLayerClient : public cc::ContentLayerClient { void set_paint_all_opaque(bool opaque) { paint_all_opaque_ = opaque; } - void add_draw_rect(gfx::Rect rect, const SkPaint& paint) { + void add_draw_rect(const gfx::RectF& rect, const SkPaint& paint) { draw_rects_.push_back(std::make_pair(rect, paint)); } @@ -37,7 +37,7 @@ class FakeContentLayerClient : public cc::ContentLayerClient { } private: - typedef std::vector<std::pair<gfx::Rect, SkPaint> > RectPaintVector; + typedef std::vector<std::pair<gfx::RectF, SkPaint> > RectPaintVector; typedef std::vector<std::pair<SkBitmap, gfx::Point> > BitmapVector; bool paint_all_opaque_; |