OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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/content_layer.h" | 7 #include "cc/content_layer.h" |
8 | 8 |
9 #include "CCLayerTreeHost.h" | |
10 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
11 #include "base/time.h" | 10 #include "base/time.h" |
12 #include "cc/bitmap_canvas_layer_texture_updater.h" | 11 #include "cc/bitmap_canvas_layer_texture_updater.h" |
13 #include "cc/bitmap_skpicture_canvas_layer_texture_updater.h" | 12 #include "cc/bitmap_skpicture_canvas_layer_texture_updater.h" |
14 #include "cc/content_layer_client.h" | 13 #include "cc/content_layer_client.h" |
15 #include "cc/frame_buffer_skpicture_canvas_layer_texture_updater.h" | 14 #include "cc/frame_buffer_skpicture_canvas_layer_texture_updater.h" |
16 #include "cc/layer_painter.h" | 15 #include "cc/layer_painter.h" |
| 16 #include "cc/layer_tree_host.h" |
17 #include "cc/settings.h" | 17 #include "cc/settings.h" |
18 | 18 |
19 namespace cc { | 19 namespace cc { |
20 | 20 |
21 ContentLayerPainter::ContentLayerPainter(ContentLayerChromiumClient* client) | 21 ContentLayerPainter::ContentLayerPainter(ContentLayerChromiumClient* client) |
22 : m_client(client) | 22 : m_client(client) |
23 { | 23 { |
24 } | 24 } |
25 | 25 |
26 scoped_ptr<ContentLayerPainter> ContentLayerPainter::create(ContentLayerChromium
Client* client) | 26 scoped_ptr<ContentLayerPainter> ContentLayerPainter::create(ContentLayerChromium
Client* client) |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 } | 101 } |
102 | 102 |
103 void ContentLayerChromium::setContentsOpaque(bool opaque) | 103 void ContentLayerChromium::setContentsOpaque(bool opaque) |
104 { | 104 { |
105 LayerChromium::setContentsOpaque(opaque); | 105 LayerChromium::setContentsOpaque(opaque); |
106 if (m_textureUpdater) | 106 if (m_textureUpdater) |
107 m_textureUpdater->setOpaque(opaque); | 107 m_textureUpdater->setOpaque(opaque); |
108 } | 108 } |
109 | 109 |
110 } | 110 } |
OLD | NEW |