| 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 BitmapCanvasLayerTextureUpdater_h | 6 #ifndef BitmapCanvasLayerTextureUpdater_h |
| 7 #define BitmapCanvasLayerTextureUpdater_h | 7 #define BitmapCanvasLayerTextureUpdater_h |
| 8 | 8 |
| 9 #include "CanvasLayerTextureUpdater.h" | 9 #include "cc/canvas_layer_texture_updater.h" |
| 10 | 10 |
| 11 class SkCanvas; | 11 class SkCanvas; |
| 12 | 12 |
| 13 namespace cc { | 13 namespace cc { |
| 14 | 14 |
| 15 class LayerPainterChromium; | 15 class LayerPainterChromium; |
| 16 | 16 |
| 17 // This class rasterizes the contentRect into a skia bitmap canvas. It then upda
tes | 17 // This class rasterizes the contentRect into a skia bitmap canvas. It then upda
tes |
| 18 // textures by copying from the canvas into the texture, using MapSubImage if | 18 // textures by copying from the canvas into the texture, using MapSubImage if |
| 19 // possible. | 19 // possible. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 46 explicit BitmapCanvasLayerTextureUpdater(scoped_ptr<LayerPainterChromium>); | 46 explicit BitmapCanvasLayerTextureUpdater(scoped_ptr<LayerPainterChromium>); |
| 47 | 47 |
| 48 OwnPtr<SkCanvas> m_canvas; | 48 OwnPtr<SkCanvas> m_canvas; |
| 49 IntSize m_canvasSize; | 49 IntSize m_canvasSize; |
| 50 bool m_opaque; | 50 bool m_opaque; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace cc | 53 } // namespace cc |
| 54 | 54 |
| 55 #endif // BitmapCanvasLayerTextureUpdater_h | 55 #endif // BitmapCanvasLayerTextureUpdater_h |
| OLD | NEW |