Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1982)

Unified Diff: cc/resources/picture.cc

Issue 115273003: cc: Use Skia information about whether pictures have bitmaps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/picture.h ('k') | cc/resources/picture_pile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture.cc
diff --git a/cc/resources/picture.cc b/cc/resources/picture.cc
index 7e278f8de5e05bc54a31f059651ce2942fefdebf..8c3be9c3bcacbb4034191a432ba6287eea763dea 100644
--- a/cc/resources/picture.cc
+++ b/cc/resources/picture.cc
@@ -248,6 +248,8 @@ void Picture::GatherPixelRefs(
"height", layer_rect_.height());
DCHECK(picture_);
+ if (!WillPlayBackBitmaps())
+ return;
cell_size_ = gfx::Size(
tile_grid_info.fTileInterval.width() +
2 * tile_grid_info.fMargin.width(),
« no previous file with comments | « cc/resources/picture.h ('k') | cc/resources/picture_pile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698