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 "web_layer_tree_view_impl.h" | 5 #include "web_layer_tree_view_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "cc/font_atlas.h" | 8 #include "cc/font_atlas.h" |
9 #include "cc/input_handler.h" | 9 #include "cc/input_handler.h" |
10 #include "cc/layer.h" | 10 #include "cc/layer.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 settings.initialDebugState.showPaintRects = webSettings.showPaintRects; | 50 settings.initialDebugState.showPaintRects = webSettings.showPaintRects; |
51 settings.initialDebugState.showPlatformLayerTree = webSettings.showPlatformL
ayerTree; | 51 settings.initialDebugState.showPlatformLayerTree = webSettings.showPlatformL
ayerTree; |
52 settings.initialDebugState.showDebugBorders = webSettings.showDebugBorders; | 52 settings.initialDebugState.showDebugBorders = webSettings.showDebugBorders; |
53 settings.implSidePainting = CommandLine::ForCurrentProcess()->HasSwitch(cc::
switches::kEnableImplSidePainting); | 53 settings.implSidePainting = CommandLine::ForCurrentProcess()->HasSwitch(cc::
switches::kEnableImplSidePainting); |
54 m_layerTreeHost = LayerTreeHost::create(this, settings, implThread.Pass()); | 54 m_layerTreeHost = LayerTreeHost::create(this, settings, implThread.Pass()); |
55 if (!m_layerTreeHost.get()) | 55 if (!m_layerTreeHost.get()) |
56 return false; | 56 return false; |
57 return true; | 57 return true; |
58 } | 58 } |
59 | 59 |
| 60 cc::LayerTreeHost* WebLayerTreeViewImpl::layer_tree_host() const |
| 61 { |
| 62 return m_layerTreeHost.get(); |
| 63 } |
| 64 |
60 void WebLayerTreeViewImpl::setSurfaceReady() | 65 void WebLayerTreeViewImpl::setSurfaceReady() |
61 { | 66 { |
62 m_layerTreeHost->setSurfaceReady(); | 67 m_layerTreeHost->setSurfaceReady(); |
63 } | 68 } |
64 | 69 |
65 void WebLayerTreeViewImpl::setRootLayer(const WebLayer& root) | 70 void WebLayerTreeViewImpl::setRootLayer(const WebLayer& root) |
66 { | 71 { |
67 m_layerTreeHost->setRootLayer(static_cast<const WebLayerImpl*>(&root)->layer
()); | 72 m_layerTreeHost->setRootLayer(static_cast<const WebLayerImpl*>(&root)->layer
()); |
68 } | 73 } |
69 | 74 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 { | 288 { |
284 m_client->didCompleteSwapBuffers(); | 289 m_client->didCompleteSwapBuffers(); |
285 } | 290 } |
286 | 291 |
287 void WebLayerTreeViewImpl::scheduleComposite() | 292 void WebLayerTreeViewImpl::scheduleComposite() |
288 { | 293 { |
289 m_client->scheduleComposite(); | 294 m_client->scheduleComposite(); |
290 } | 295 } |
291 | 296 |
292 } // namespace WebKit | 297 } // namespace WebKit |
OLD | NEW |