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

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: adding more null checks 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
Index: cc/picture_pile_impl.cc
diff --git a/cc/picture_pile_impl.cc b/cc/picture_pile_impl.cc
index f8e56cc1083c31ded307e223609941075d5c0e64..7c8cbd712ec1d94638f7869e80ac5cd3d2a6bfbc 100644
--- a/cc/picture_pile_impl.cc
+++ b/cc/picture_pile_impl.cc
@@ -72,4 +72,14 @@ void PicturePileImpl::Raster(
rasterizeBeginTime).InSecondsF();
}
+void PicturePileImpl::GatherPixelRefs(const gfx::Rect& rect,
+ std::vector<SkPixelRef*>& pixel_refs) {
+ for (PicturePile::Pile::const_iterator i = pile_.begin();
+ i != pile_.end(); ++i) {
+ std::vector<SkPixelRef*> result;
+ (*i)->GatherPixelRefs(rect, result);
+ pixel_refs.insert(pixel_refs.end(), result.begin(), result.end());
+ }
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698