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_SKPICTURE_CONTENT_LAYER_UPDATER_H_ | 5 #ifndef CC_RESOURCES_SKPICTURE_CONTENT_LAYER_UPDATER_H_ |
6 #define CC_SKPICTURE_CONTENT_LAYER_UPDATER_H_ | 6 #define CC_RESOURCES_SKPICTURE_CONTENT_LAYER_UPDATER_H_ |
7 | 7 |
8 #include "cc/content_layer_updater.h" | 8 #include "cc/resources/content_layer_updater.h" |
9 #include "third_party/skia/include/core/SkPicture.h" | 9 #include "third_party/skia/include/core/SkPicture.h" |
10 | 10 |
11 class SkCanvas; | 11 class SkCanvas; |
12 | 12 |
13 namespace cc { | 13 namespace cc { |
14 | 14 |
15 class LayerPainter; | 15 class LayerPainter; |
16 | 16 |
17 // This class records the content_rect into an SkPicture. Subclasses, provide | 17 // This class records the content_rect into an SkPicture. Subclasses, provide |
18 // different implementations of tile updating based on this recorded picture. | 18 // different implementations of tile updating based on this recorded picture. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // Recording canvas. | 69 // Recording canvas. |
70 SkPicture picture_; | 70 SkPicture picture_; |
71 // True when it is known that all output pixels will be opaque. | 71 // True when it is known that all output pixels will be opaque. |
72 bool layer_is_opaque_; | 72 bool layer_is_opaque_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(SkPictureContentLayerUpdater); | 74 DISALLOW_COPY_AND_ASSIGN(SkPictureContentLayerUpdater); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace cc | 77 } // namespace cc |
78 | 78 |
79 #endif // CC_SKPICTURE_CONTENT_LAYER_UPDATER_H_ | 79 #endif // CC_RESOURCES_SKPICTURE_CONTENT_LAYER_UPDATER_H_ |
OLD | NEW |