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 |