| 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 skia::RefPtr<SkPicture> WebLayerTreeViewImpl::capturePicture() { |
| 61 return m_layerTreeHost->capturePicture(); |
| 62 } |
| 63 |
| 60 void WebLayerTreeViewImpl::setSurfaceReady() | 64 void WebLayerTreeViewImpl::setSurfaceReady() |
| 61 { | 65 { |
| 62 m_layerTreeHost->setSurfaceReady(); | 66 m_layerTreeHost->setSurfaceReady(); |
| 63 } | 67 } |
| 64 | 68 |
| 65 void WebLayerTreeViewImpl::setRootLayer(const WebLayer& root) | 69 void WebLayerTreeViewImpl::setRootLayer(const WebLayer& root) |
| 66 { | 70 { |
| 67 m_layerTreeHost->setRootLayer(static_cast<const WebLayerImpl*>(&root)->layer
()); | 71 m_layerTreeHost->setRootLayer(static_cast<const WebLayerImpl*>(&root)->layer
()); |
| 68 } | 72 } |
| 69 | 73 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 { | 287 { |
| 284 m_client->didCompleteSwapBuffers(); | 288 m_client->didCompleteSwapBuffers(); |
| 285 } | 289 } |
| 286 | 290 |
| 287 void WebLayerTreeViewImpl::scheduleComposite() | 291 void WebLayerTreeViewImpl::scheduleComposite() |
| 288 { | 292 { |
| 289 m_client->scheduleComposite(); | 293 m_client->scheduleComposite(); |
| 290 } | 294 } |
| 291 | 295 |
| 292 } // namespace WebKit | 296 } // namespace WebKit |
| OLD | NEW |