Chromium Code Reviews| Index: cc/picture_pile_impl.cc |
| diff --git a/cc/picture_pile_impl.cc b/cc/picture_pile_impl.cc |
| index 216643bf84b84b4745d56a2d750351b56ed60e59..5289d434cb8de8d216f6a74ed7f468459b708dfa 100644 |
| --- a/cc/picture_pile_impl.cc |
| +++ b/cc/picture_pile_impl.cc |
| @@ -55,4 +55,15 @@ void PicturePileImpl::Raster(SkCanvas* canvas, gfx::Rect rect, |
| rasterizeBeginTime).InSecondsF(); |
| } |
| +std::vector<SkPixelRef*> PicturePileImpl::GatherPixelRefs( |
|
nduca
2012/12/06 08:46:53
style nit, should we pass in the vector that we're
qinmin
2012/12/07 05:06:28
Done.
|
| + const gfx::Rect& rect) { |
| + std::vector<SkPixelRef*> result; |
| + for (PicturePile::Pile::const_iterator i = pile_.begin(); |
| + i != pile_.end(); ++i) { |
| + std::vector<SkPixelRef*> pixel_refs = (*i)->GatherPixelRefs(rect); |
| + result.insert(result.end(), pixel_refs.begin(), pixel_refs.end()); |
| + } |
| + return result; |
| +} |
| + |
| } // namespace cc |