OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_LAYER_UPDATER_H_ | 5 #ifndef CC_RESOURCES_LAYER_UPDATER_H_ |
6 #define CC_RESOURCES_LAYER_UPDATER_H_ | 6 #define CC_RESOURCES_LAYER_UPDATER_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 virtual void PrepareToUpdate(const gfx::Size& content_size, | 50 virtual void PrepareToUpdate(const gfx::Size& content_size, |
51 const gfx::Rect& paint_rect, | 51 const gfx::Rect& paint_rect, |
52 const gfx::Size& tile_size, | 52 const gfx::Size& tile_size, |
53 float contents_width_scale, | 53 float contents_width_scale, |
54 float contents_height_scale) {} | 54 float contents_height_scale) {} |
55 virtual void ReduceMemoryUsage() {} | 55 virtual void ReduceMemoryUsage() {} |
56 | 56 |
57 // Set true by the layer when it is known that the entire output is going to | 57 // Set true by the layer when it is known that the entire output is going to |
58 // be opaque. | 58 // be opaque. |
59 virtual void SetOpaque(bool opaque) {} | 59 virtual void SetOpaque(bool opaque) {} |
| 60 virtual void SetCanUseLCDText(bool can_use_lcd_text) {} |
60 // Set true by the layer when it is known that the entire output bounds will | 61 // Set true by the layer when it is known that the entire output bounds will |
61 // be rasterized. | 62 // be rasterized. |
62 virtual void SetFillsBoundsCompletely(bool fills_bounds) {} | 63 virtual void SetFillsBoundsCompletely(bool fills_bounds) {} |
63 virtual void SetBackgroundColor(SkColor background_color) {} | 64 virtual void SetBackgroundColor(SkColor background_color) {} |
64 | 65 |
65 protected: | 66 protected: |
66 virtual ~LayerUpdater() {} | 67 virtual ~LayerUpdater() {} |
67 | 68 |
68 private: | 69 private: |
69 friend class base::RefCounted<LayerUpdater>; | 70 friend class base::RefCounted<LayerUpdater>; |
70 | 71 |
71 DISALLOW_COPY_AND_ASSIGN(LayerUpdater); | 72 DISALLOW_COPY_AND_ASSIGN(LayerUpdater); |
72 }; | 73 }; |
73 | 74 |
74 } // namespace cc | 75 } // namespace cc |
75 | 76 |
76 #endif // CC_RESOURCES_LAYER_UPDATER_H_ | 77 #endif // CC_RESOURCES_LAYER_UPDATER_H_ |
OLD | NEW |