| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 5 #ifndef CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
| 6 #define CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 6 #define CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 void AdvanceToPictureWithPixelRefs(); | 102 void AdvanceToPictureWithPixelRefs(); |
| 103 | 103 |
| 104 const PicturePileImpl* picture_pile_; | 104 const PicturePileImpl* picture_pile_; |
| 105 gfx::Rect layer_rect_; | 105 gfx::Rect layer_rect_; |
| 106 TilingData::Iterator tile_iterator_; | 106 TilingData::Iterator tile_iterator_; |
| 107 Picture::PixelRefIterator pixel_ref_iterator_; | 107 Picture::PixelRefIterator pixel_ref_iterator_; |
| 108 const PictureList* picture_list_; | 108 const PictureList* picture_list_; |
| 109 PictureList::const_iterator picture_list_iterator_; | 109 PictureList::const_iterator picture_list_iterator_; |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 void DidBeginTracing(); |
| 113 |
| 112 protected: | 114 protected: |
| 113 friend class PicturePile; | 115 friend class PicturePile; |
| 114 friend class PixelRefIterator; | 116 friend class PixelRefIterator; |
| 115 | 117 |
| 116 explicit PicturePileImpl(bool enable_lcd_text); | 118 explicit PicturePileImpl(bool enable_lcd_text); |
| 117 PicturePileImpl(const PicturePileBase* other, bool enable_lcd_text); | 119 PicturePileImpl(const PicturePileBase* other, bool enable_lcd_text); |
| 118 virtual ~PicturePileImpl(); | 120 virtual ~PicturePileImpl(); |
| 119 | 121 |
| 120 private: | 122 private: |
| 121 class ClonesForDrawing { | 123 class ClonesForDrawing { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 146 // instance. This member variable must be last so that other member | 148 // instance. This member variable must be last so that other member |
| 147 // variables have already been initialized and can be clonable. | 149 // variables have already been initialized and can be clonable. |
| 148 const ClonesForDrawing clones_for_drawing_; | 150 const ClonesForDrawing clones_for_drawing_; |
| 149 | 151 |
| 150 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); | 152 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); |
| 151 }; | 153 }; |
| 152 | 154 |
| 153 } // namespace cc | 155 } // namespace cc |
| 154 | 156 |
| 155 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 157 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
| OLD | NEW |