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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(); | 112 void DidBeginTracing(); |
113 | 113 |
| 114 bool can_use_lcd_text() const { |
| 115 return enable_lcd_text_; |
| 116 } |
| 117 |
114 protected: | 118 protected: |
115 friend class PicturePile; | 119 friend class PicturePile; |
116 friend class PixelRefIterator; | 120 friend class PixelRefIterator; |
117 | 121 |
118 explicit PicturePileImpl(bool enable_lcd_text); | 122 explicit PicturePileImpl(bool enable_lcd_text); |
119 PicturePileImpl(const PicturePileBase* other, bool enable_lcd_text); | 123 PicturePileImpl(const PicturePileBase* other, bool enable_lcd_text); |
120 virtual ~PicturePileImpl(); | 124 virtual ~PicturePileImpl(); |
121 | 125 |
122 private: | 126 private: |
123 class ClonesForDrawing { | 127 class ClonesForDrawing { |
(...skipping 24 matching lines...) Expand all Loading... |
148 // instance. This member variable must be last so that other member | 152 // instance. This member variable must be last so that other member |
149 // variables have already been initialized and can be clonable. | 153 // variables have already been initialized and can be clonable. |
150 const ClonesForDrawing clones_for_drawing_; | 154 const ClonesForDrawing clones_for_drawing_; |
151 | 155 |
152 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); | 156 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); |
153 }; | 157 }; |
154 | 158 |
155 } // namespace cc | 159 } // namespace cc |
156 | 160 |
157 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 161 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
OLD | NEW |