| 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 CC_BITMAP_CONTENT_LAYER_UPDATER_H_ | 6 #ifndef CC_BITMAP_CONTENT_LAYER_UPDATER_H_ |
| 7 #define CC_BITMAP_CONTENT_LAYER_UPDATER_H_ | 7 #define CC_BITMAP_CONTENT_LAYER_UPDATER_H_ |
| 8 | 8 |
| 9 #include "cc/cc_export.h" | 9 #include "cc/base/cc_export.h" |
| 10 #include "cc/content_layer_updater.h" | 10 #include "cc/content_layer_updater.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 |
| 18 // This class rasterizes the contentRect into a skia bitmap canvas. It then upda
tes | 18 // This class rasterizes the contentRect into a skia bitmap canvas. It then upda
tes |
| 19 // textures by copying from the canvas into the texture, using MapSubImage if | 19 // textures by copying from the canvas into the texture, using MapSubImage if |
| (...skipping 26 matching lines...) Expand all Loading... |
| 46 virtual ~BitmapContentLayerUpdater(); | 46 virtual ~BitmapContentLayerUpdater(); |
| 47 | 47 |
| 48 scoped_ptr<SkCanvas> m_canvas; | 48 scoped_ptr<SkCanvas> m_canvas; |
| 49 gfx::Size m_canvasSize; | 49 gfx::Size m_canvasSize; |
| 50 bool m_opaque; | 50 bool m_opaque; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace cc | 53 } // namespace cc |
| 54 | 54 |
| 55 #endif // CC_BITMAP_CONTENT_LAYER_UPDATER_H_ | 55 #endif // CC_BITMAP_CONTENT_LAYER_UPDATER_H_ |
| OLD | NEW |