| 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 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "cc/skpicture_canvas_layer_texture_updater.h" | 7 #include "cc/skpicture_canvas_layer_texture_updater.h" |
| 8 | 8 |
| 9 #include "CCTextureUpdateQueue.h" | |
| 10 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 11 #include "cc/layer_painter.h" | 10 #include "cc/layer_painter.h" |
| 11 #include "cc/texture_update_queue.h" |
| 12 #include "third_party/skia/include/core/SkCanvas.h" | 12 #include "third_party/skia/include/core/SkCanvas.h" |
| 13 | 13 |
| 14 namespace cc { | 14 namespace cc { |
| 15 | 15 |
| 16 SkPictureCanvasLayerTextureUpdater::SkPictureCanvasLayerTextureUpdater(scoped_pt
r<LayerPainterChromium> painter) | 16 SkPictureCanvasLayerTextureUpdater::SkPictureCanvasLayerTextureUpdater(scoped_pt
r<LayerPainterChromium> painter) |
| 17 : CanvasLayerTextureUpdater(painter.Pass()) | 17 : CanvasLayerTextureUpdater(painter.Pass()) |
| 18 , m_layerIsOpaque(false) | 18 , m_layerIsOpaque(false) |
| 19 { | 19 { |
| 20 } | 20 } |
| 21 | 21 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 45 else | 45 else |
| 46 queue.appendFullUpload(upload); | 46 queue.appendFullUpload(upload); |
| 47 } | 47 } |
| 48 | 48 |
| 49 void SkPictureCanvasLayerTextureUpdater::setOpaque(bool opaque) | 49 void SkPictureCanvasLayerTextureUpdater::setOpaque(bool opaque) |
| 50 { | 50 { |
| 51 m_layerIsOpaque = opaque; | 51 m_layerIsOpaque = opaque; |
| 52 } | 52 } |
| 53 | 53 |
| 54 } // namespace cc | 54 } // namespace cc |
| OLD | NEW |