Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: webkit/compositor_bindings/web_layer_tree_view_impl.cc

Issue 11575049: Make RenderWidget responsible for the composited view's lifetime (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/compositor_bindings/web_layer_tree_view_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_layer_tree_view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698