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 |
(...skipping 10 matching lines...) Expand all Loading... |
21 // Invalidations are in layer space, and will be expanded to cover everything | 21 // Invalidations are in layer space, and will be expanded to cover everything |
22 // that was either recorded/changed or that has no recording, leaving out only | 22 // that was either recorded/changed or that has no recording, leaving out only |
23 // pieces that we had a recording for and it was not changed. | 23 // pieces that we had a recording for and it was not changed. |
24 // Return true iff the pile was modified. | 24 // Return true iff the pile was modified. |
25 bool UpdateAndExpandInvalidation( | 25 bool UpdateAndExpandInvalidation( |
26 ContentLayerClient* painter, | 26 ContentLayerClient* painter, |
27 Region* invalidation, | 27 Region* invalidation, |
28 SkColor background_color, | 28 SkColor background_color, |
29 bool contents_opaque, | 29 bool contents_opaque, |
30 bool contents_fill_bounds_completely, | 30 bool contents_fill_bounds_completely, |
31 const gfx::Rect& layer_bounds_rect, | 31 const gfx::Size& layer_size, |
32 const gfx::Rect& visible_layer_rect, | 32 const gfx::Rect& visible_layer_rect, |
33 int frame_number, | 33 int frame_number, |
34 Picture::RecordingMode recording_mode, | 34 Picture::RecordingMode recording_mode, |
35 RenderingStatsInstrumentation* stats_instrumentation); | 35 RenderingStatsInstrumentation* stats_instrumentation); |
36 | 36 |
37 void SetEmptyBounds(); | 37 void SetEmptyBounds(); |
38 | 38 |
39 void set_slow_down_raster_scale_factor(int factor) { | 39 void set_slow_down_raster_scale_factor(int factor) { |
40 slow_down_raster_scale_factor_for_debug_ = factor; | 40 slow_down_raster_scale_factor_for_debug_ = factor; |
41 } | 41 } |
(...skipping 16 matching lines...) Expand all Loading... |
58 friend class PicturePileImpl; | 58 friend class PicturePileImpl; |
59 | 59 |
60 bool is_suitable_for_gpu_rasterization_; | 60 bool is_suitable_for_gpu_rasterization_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(PicturePile); | 62 DISALLOW_COPY_AND_ASSIGN(PicturePile); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace cc | 65 } // namespace cc |
66 | 66 |
67 #endif // CC_RESOURCES_PICTURE_PILE_H_ | 67 #endif // CC_RESOURCES_PICTURE_PILE_H_ |
OLD | NEW |