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

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: addressing comments 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..d8009ca56288d32eac7a80798cfc6101fa848e89 100644
--- a/cc/picture_pile_impl.cc
+++ b/cc/picture_pile_impl.cc
@@ -72,4 +72,15 @@ void PicturePileImpl::Raster(
rasterizeBeginTime).InSecondsF();
}
+void PicturePileImpl::GatherPixelRefs(const gfx::Rect& rect,
+ std::vector<SkPixelRef*>& pixel_refs) {
+ std::vector<SkPixelRef*> result;
+ for (PicturePile::Pile::const_iterator i = pile_.begin();
+ i != pile_.end(); ++i) {
+ result.clear();
reveman 2012/12/07 21:14:54 don't have to change this but I would have just pu
qinmin 2012/12/07 23:41:55 Done.
+ (*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