diff options
author | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-07 11:57:21 +0000 |
---|---|---|
committer | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-07 11:57:21 +0000 |
commit | 674bd3f43ca17ad5e0c506b561d4846d15c14c5a (patch) | |
tree | ad8509d00bc74249749ce65d957da24fd557ce85 /cc/test/skia_common.cc | |
parent | fec9a648c3e71ab58742b55a7df6fc9827e14fd8 (diff) | |
download | chromium_src-674bd3f43ca17ad5e0c506b561d4846d15c14c5a.zip chromium_src-674bd3f43ca17ad5e0c506b561d4846d15c14c5a.tar.gz chromium_src-674bd3f43ca17ad5e0c506b561d4846d15c14c5a.tar.bz2 |
cc: Combine analysis and raster
This changes the analysis of PicturePiles from optimistic (hoping to
save raster work by checking if a rastered bitmap would be a solid
color) to pessimistic (assuming most bitmaps are not solid colors and
just checking afterwards). It does this by rastering to both an
AnalysisCanvas and a normal SkCanvas via SkNWayCanvas and then
checking the results afterwards.
R=reveman@chromium.org, senorblanco@chromium.org
BUG=310796
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234641
Review URL: https://codereview.chromium.org/63443003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243268 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/skia_common.cc')
-rw-r--r-- | cc/test/skia_common.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/test/skia_common.cc b/cc/test/skia_common.cc index d8d61a8..4748e74 100644 --- a/cc/test/skia_common.cc +++ b/cc/test/skia_common.cc @@ -69,7 +69,7 @@ void DrawPicture(unsigned char* buffer, SkBitmapDevice device(bitmap); SkCanvas canvas(&device); canvas.clipRect(gfx::RectToSkRect(layer_rect)); - picture->Raster(&canvas, NULL, layer_rect, 1.0f); + picture->Raster(&canvas, layer_rect, 1.0f); } void CreateBitmap(gfx::Size size, const char* uri, SkBitmap* bitmap) { |