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_BITMAP_CONTENT_LAYER_UPDATER_H_ | 5 #ifndef CC_RESOURCES_BITMAP_CONTENT_LAYER_UPDATER_H_ |
6 #define CC_BITMAP_CONTENT_LAYER_UPDATER_H_ | 6 #define CC_RESOURCES_BITMAP_CONTENT_LAYER_UPDATER_H_ |
7 | 7 |
8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
9 #include "cc/content_layer_updater.h" | 9 #include "cc/resources/content_layer_updater.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 rasterizes the content_rect into a skia bitmap canvas. It then | 17 // This class rasterizes the content_rect into a skia bitmap canvas. It then |
18 // updates textures by copying from the canvas into the texture, using | 18 // updates textures by copying from the canvas into the texture, using |
19 // MapSubImage if possible. | 19 // MapSubImage if possible. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 scoped_ptr<SkCanvas> canvas_; | 63 scoped_ptr<SkCanvas> canvas_; |
64 gfx::Size canvas_size_; | 64 gfx::Size canvas_size_; |
65 bool opaque_; | 65 bool opaque_; |
66 | 66 |
67 DISALLOW_COPY_AND_ASSIGN(BitmapContentLayerUpdater); | 67 DISALLOW_COPY_AND_ASSIGN(BitmapContentLayerUpdater); |
68 }; | 68 }; |
69 | 69 |
70 } // namespace cc | 70 } // namespace cc |
71 | 71 |
72 #endif // CC_BITMAP_CONTENT_LAYER_UPDATER_H_ | 72 #endif // CC_RESOURCES_BITMAP_CONTENT_LAYER_UPDATER_H_ |
OLD | NEW |