| 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_H_ | 5 #ifndef CC_RESOURCES_PICTURE_PILE_H_ |
| 6 #define CC_RESOURCES_PICTURE_PILE_H_ | 6 #define CC_RESOURCES_PICTURE_PILE_H_ |
| 7 | 7 |
| 8 #include "cc/resources/picture_pile_base.h" | 8 #include "cc/resources/picture_pile_base.h" |
| 9 #include "ui/gfx/rect.h" | 9 #include "ui/gfx/rect.h" |
| 10 | 10 |
| 11 namespace cc { | 11 namespace cc { |
| 12 class PicturePileImpl; | 12 class PicturePileImpl; |
| 13 class Region; | 13 class Region; |
| 14 class RenderingStatsInstrumentation; | 14 class RenderingStatsInstrumentation; |
| 15 | 15 |
| 16 class CC_EXPORT PicturePile : public PicturePileBase { | 16 class CC_EXPORT PicturePile : public PicturePileBase { |
| 17 public: | 17 public: |
| 18 PicturePile(); | 18 PicturePile(); |
| 19 | 19 |
| 20 // Re-record parts of the picture that are invalid. | 20 // Re-record parts of the picture that are invalid. |
| 21 // Invalidations are in layer space. | 21 // Invalidations are in layer space. |
| 22 // Return true iff the pile was modified. | 22 // Return true iff the pile was modified. |
| 23 bool Update(ContentLayerClient* painter, | 23 bool Update(ContentLayerClient* painter, |
| 24 SkColor background_color, | 24 SkColor background_color, |
| 25 bool contents_opaque, | 25 bool contents_opaque, |
| 26 bool contents_fill_bounds_completely, | 26 bool contents_fill_bounds_completely, |
| 27 bool can_use_lcd_text, |
| 27 const Region& invalidation, | 28 const Region& invalidation, |
| 28 const gfx::Rect& visible_layer_rect, | 29 const gfx::Rect& visible_layer_rect, |
| 29 int frame_number, | 30 int frame_number, |
| 30 Picture::RecordingMode recording_mode, | 31 Picture::RecordingMode recording_mode, |
| 31 RenderingStatsInstrumentation* stats_instrumentation); | 32 RenderingStatsInstrumentation* stats_instrumentation); |
| 32 | 33 |
| 33 void set_slow_down_raster_scale_factor(int factor) { | 34 void set_slow_down_raster_scale_factor(int factor) { |
| 34 slow_down_raster_scale_factor_for_debug_ = factor; | 35 slow_down_raster_scale_factor_for_debug_ = factor; |
| 35 } | 36 } |
| 36 | 37 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 52 friend class PicturePileImpl; | 53 friend class PicturePileImpl; |
| 53 | 54 |
| 54 bool is_suitable_for_gpu_rasterization_; | 55 bool is_suitable_for_gpu_rasterization_; |
| 55 | 56 |
| 56 DISALLOW_COPY_AND_ASSIGN(PicturePile); | 57 DISALLOW_COPY_AND_ASSIGN(PicturePile); |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 } // namespace cc | 60 } // namespace cc |
| 60 | 61 |
| 61 #endif // CC_RESOURCES_PICTURE_PILE_H_ | 62 #endif // CC_RESOURCES_PICTURE_PILE_H_ |
| OLD | NEW |