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

Unified Diff: cc/resources/picture_pile_impl.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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_pile_impl.cc
diff --git a/cc/resources/picture_pile_impl.cc b/cc/resources/picture_pile_impl.cc
index ca160b5f812884a32c476555d1edd05c301f18df..b6f4d77156f57c8d94ffdd377c948e97674cf37a 100644
--- a/cc/resources/picture_pile_impl.cc
+++ b/cc/resources/picture_pile_impl.cc
@@ -386,7 +386,8 @@ void PicturePileImpl::PixelRefIterator::AdvanceToTilePictureWithPixelRefs() {
continue;
const Picture* picture = it->second.GetPicture();
- if (!picture || (processed_pictures_.count(picture) != 0))
+ if (!picture || (processed_pictures_.count(picture) != 0) ||
+ !picture->WillPlayBackBitmaps())
continue;
processed_pictures_.insert(picture);
« no previous file with comments | « cc/resources/picture.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698