| 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 "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "cc/resources/picture_pile_base.h" | 9 #include "cc/resources/picture_pile_base.h" |
| 10 #include "ui/gfx/geometry/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // Invalidations are in layer space, and will be expanded to cover everything | 23 // Invalidations are in layer space, and will be expanded to cover everything |
| 24 // that was either recorded/changed or that has no recording, leaving out only | 24 // that was either recorded/changed or that has no recording, leaving out only |
| 25 // pieces that we had a recording for and it was not changed. | 25 // pieces that we had a recording for and it was not changed. |
| 26 // Return true iff the pile was modified. | 26 // Return true iff the pile was modified. |
| 27 bool UpdateAndExpandInvalidation( | 27 bool UpdateAndExpandInvalidation( |
| 28 ContentLayerClient* painter, | 28 ContentLayerClient* painter, |
| 29 Region* invalidation, | 29 Region* invalidation, |
| 30 SkColor background_color, | 30 SkColor background_color, |
| 31 bool contents_opaque, | 31 bool contents_opaque, |
| 32 bool contents_fill_bounds_completely, | 32 bool contents_fill_bounds_completely, |
| 33 bool can_have_lcd_text, |
| 33 const gfx::Size& layer_size, | 34 const gfx::Size& layer_size, |
| 34 const gfx::Rect& visible_layer_rect, | 35 const gfx::Rect& visible_layer_rect, |
| 35 int frame_number, | 36 int frame_number, |
| 36 Picture::RecordingMode recording_mode, | 37 Picture::RecordingMode recording_mode, |
| 37 RenderingStatsInstrumentation* stats_instrumentation); | 38 RenderingStatsInstrumentation* stats_instrumentation); |
| 38 | 39 |
| 39 void SetEmptyBounds(); | 40 void SetEmptyBounds(); |
| 40 | 41 |
| 41 void set_slow_down_raster_scale_factor(int factor) { | 42 void set_slow_down_raster_scale_factor(int factor) { |
| 42 slow_down_raster_scale_factor_for_debug_ = factor; | 43 slow_down_raster_scale_factor_for_debug_ = factor; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 62 | 63 |
| 63 bool is_suitable_for_gpu_rasterization_; | 64 bool is_suitable_for_gpu_rasterization_; |
| 64 int pixel_record_distance_; | 65 int pixel_record_distance_; |
| 65 | 66 |
| 66 DISALLOW_COPY_AND_ASSIGN(PicturePile); | 67 DISALLOW_COPY_AND_ASSIGN(PicturePile); |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 } // namespace cc | 70 } // namespace cc |
| 70 | 71 |
| 71 #endif // CC_RESOURCES_PICTURE_PILE_H_ | 72 #endif // CC_RESOURCES_PICTURE_PILE_H_ |
| OLD | NEW |