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 20 matching lines...) Expand all Loading... |
31 } | 31 } |
32 | 32 |
33 void set_slow_down_raster_scale_factor(int factor) { | 33 void set_slow_down_raster_scale_factor(int factor) { |
34 slow_down_raster_scale_factor_for_debug_ = factor; | 34 slow_down_raster_scale_factor_for_debug_ = factor; |
35 } | 35 } |
36 | 36 |
37 void set_show_debug_picture_borders(bool show) { | 37 void set_show_debug_picture_borders(bool show) { |
38 show_debug_picture_borders_ = show; | 38 show_debug_picture_borders_ = show; |
39 } | 39 } |
40 | 40 |
| 41 protected: |
| 42 virtual ~PicturePile(); |
| 43 |
41 private: | 44 private: |
42 virtual ~PicturePile(); | |
43 friend class PicturePileImpl; | 45 friend class PicturePileImpl; |
44 | 46 |
45 // Add an invalidation to this picture list. If the list needs to be | 47 // Add an invalidation to this picture list. If the list needs to be |
46 // entirely recreated, leave it empty. Do not call this on an empty list. | 48 // entirely recreated, leave it empty. Do not call this on an empty list. |
47 void InvalidateRect( | 49 void InvalidateRect( |
48 PictureList& picture_list, | 50 PictureList& picture_list, |
49 gfx::Rect invalidation); | 51 gfx::Rect invalidation); |
50 | 52 |
51 DISALLOW_COPY_AND_ASSIGN(PicturePile); | 53 DISALLOW_COPY_AND_ASSIGN(PicturePile); |
52 }; | 54 }; |
53 | 55 |
54 } // namespace cc | 56 } // namespace cc |
55 | 57 |
56 #endif // CC_RESOURCES_PICTURE_PILE_H_ | 58 #endif // CC_RESOURCES_PICTURE_PILE_H_ |
OLD | NEW |