Chromium Code Reviews| Index: cc/resources/picture_pile_impl.h |
| diff --git a/cc/resources/picture_pile_impl.h b/cc/resources/picture_pile_impl.h |
| index 352772d83cae7cd5afbcc045fcaaa1f8beb5da42..8f239cd2febc1bb376de8402e5d7e7d3a37543cd 100644 |
| --- a/cc/resources/picture_pile_impl.h |
| +++ b/cc/resources/picture_pile_impl.h |
| @@ -37,11 +37,6 @@ class CC_EXPORT PicturePileImpl : public PicturePileBase { |
| gfx::Rect canvas_rect, |
| float contents_scale); |
| - void GatherPixelRefs( |
| - gfx::Rect content_rect, |
| - float contents_scale, |
| - std::list<skia::LazyPixelRef*>& pixel_refs); |
| - |
| skia::RefPtr<SkPicture> GetFlattenedPicture(); |
| struct CC_EXPORT Analysis { |
| @@ -61,8 +56,31 @@ class CC_EXPORT PicturePileImpl : public PicturePileBase { |
| float contents_scale, |
| Analysis* analysis); |
| + class CC_EXPORT LazyPixelRefIterator { |
| + public: |
| + LazyPixelRefIterator(gfx::Rect content_rect, |
| + float contents_scale, |
|
enne (OOO)
2013/04/23 01:59:39
style nit: incorrect indentation
vmpstr
2013/04/23 20:02:23
Fixed.
|
| + const PicturePileImpl* picture_pile); |
| + ~LazyPixelRefIterator(); |
| + |
| + skia::LazyPixelRef* operator->() const { return current_pixel_ref_; } |
| + skia::LazyPixelRef* operator*() const { return current_pixel_ref_; } |
| + LazyPixelRefIterator& operator++(); |
| + operator bool() const { return !!current_pixel_ref_; } |
| + |
| + private: |
| + const PicturePileImpl* picture_pile_; |
| + gfx::Rect layer_rect_; |
| + TilingData::Iterator tile_iterator_; |
| + Picture::LazyPixelRefIterator picture_refs_iterator_; |
| + const PictureList* picture_list_; |
| + PictureList::const_iterator picture_list_iterator_; |
| + skia::LazyPixelRef* current_pixel_ref_; |
| + }; |
| + |
| protected: |
| friend class PicturePile; |
| + friend class LazyPixelRefIterator; |
| explicit PicturePileImpl(bool enable_lcd_text); |
| PicturePileImpl(const PicturePileBase* other, bool enable_lcd_text); |