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 | 5 |
6 #ifndef SkPictureContentLayerUpdater_h | 6 #ifndef CC_SKPICTURE_CONTENT_LAYER_UPDATER_H_ |
7 #define SkPictureContentLayerUpdater_h | 7 #define CC_SKPICTURE_CONTENT_LAYER_UPDATER_H_ |
8 | 8 |
9 #include "cc/content_layer_updater.h" | 9 #include "cc/content_layer_updater.h" |
10 #include "third_party/skia/include/core/SkPicture.h" | 10 #include "third_party/skia/include/core/SkPicture.h" |
11 | 11 |
12 class SkCanvas; | 12 class SkCanvas; |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 | 15 |
16 class LayerPainter; | 16 class LayerPainter; |
17 | 17 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 bool layerIsOpaque() const { return m_layerIsOpaque; } | 51 bool layerIsOpaque() const { return m_layerIsOpaque; } |
52 | 52 |
53 private: | 53 private: |
54 // Recording canvas. | 54 // Recording canvas. |
55 SkPicture m_picture; | 55 SkPicture m_picture; |
56 // True when it is known that all output pixels will be opaque. | 56 // True when it is known that all output pixels will be opaque. |
57 bool m_layerIsOpaque; | 57 bool m_layerIsOpaque; |
58 }; | 58 }; |
59 | 59 |
60 } // namespace cc | 60 } // namespace cc |
61 #endif // SkPictureContentLayerUpdater_h | 61 #endif // CC_SKPICTURE_CONTENT_LAYER_UPDATER_H_ |
OLD | NEW |