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

Unified Diff: cc/picture_pile_impl.cc

Issue 11453014: Implement the logic to kick off image decoding jobs for TileManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moving pending_pixel_refs to the persistent section Created 8 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/picture_pile_impl.h ('k') | cc/tile_manager.h » ('j') | cc/tile_manager.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_pile_impl.cc
diff --git a/cc/picture_pile_impl.cc b/cc/picture_pile_impl.cc
index ff136e513840048698269c0df7aaa050138b31b1..05f9584ae58bb1f82306f7d244053b42a32909d1 100644
--- a/cc/picture_pile_impl.cc
+++ b/cc/picture_pile_impl.cc
@@ -79,4 +79,14 @@ void PicturePileImpl::Raster(
rasterizeBeginTime).InSecondsF();
}
+void PicturePileImpl::GatherPixelRefs(
+ const gfx::Rect& rect, std::list<skia::LazyPixelRef*>& pixel_refs) {
+ std::list<skia::LazyPixelRef*> result;
+ for (PicturePile::Pile::const_iterator i = pile_.begin();
+ i != pile_.end(); ++i) {
+ (*i)->GatherPixelRefs(rect, result);
+ pixel_refs.splice(pixel_refs.end(), result);
+ }
+}
+
} // namespace cc
« no previous file with comments | « cc/picture_pile_impl.h ('k') | cc/tile_manager.h » ('j') | cc/tile_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698