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

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

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
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 #ifndef WebLayerTreeViewImpl_h 5 #ifndef WebLayerTreeViewImpl_h
6 #define WebLayerTreeViewImpl_h 6 #define WebLayerTreeViewImpl_h
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/layer_tree_host_client.h" 9 #include "cc/layer_tree_host_client.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h" 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h"
(...skipping 12 matching lines...) Expand all
23 23
24 class WebLayerTreeViewImpl : public WebLayerTreeView, public cc::LayerTreeHostCl ient { 24 class WebLayerTreeViewImpl : public WebLayerTreeView, public cc::LayerTreeHostCl ient {
25 public: 25 public:
26 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebLayerTreeViewImpl( 26 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebLayerTreeViewImpl(
27 WebLayerTreeViewClient*); 27 WebLayerTreeViewClient*);
28 virtual ~WebLayerTreeViewImpl(); 28 virtual ~WebLayerTreeViewImpl();
29 29
30 WEBKIT_COMPOSITOR_BINDINGS_EXPORT bool initialize( 30 WEBKIT_COMPOSITOR_BINDINGS_EXPORT bool initialize(
31 const Settings&, scoped_ptr<cc::Thread> implThread); 31 const Settings&, scoped_ptr<cc::Thread> implThread);
32 32
33 WEBKIT_COMPOSITOR_BINDINGS_EXPORT cc::LayerTreeHost* layer_tree_host() const ;
34
33 // WebLayerTreeView implementation. 35 // WebLayerTreeView implementation.
34 virtual void setSurfaceReady() OVERRIDE; 36 virtual void setSurfaceReady() OVERRIDE;
35 virtual void setRootLayer(const WebLayer&) OVERRIDE; 37 virtual void setRootLayer(const WebLayer&) OVERRIDE;
36 virtual void clearRootLayer() OVERRIDE; 38 virtual void clearRootLayer() OVERRIDE;
37 virtual void setViewportSize(const WebSize& layoutViewportSize, const WebSiz e& deviceViewportSize = WebSize()) OVERRIDE; 39 virtual void setViewportSize(const WebSize& layoutViewportSize, const WebSiz e& deviceViewportSize = WebSize()) OVERRIDE;
38 virtual WebSize layoutViewportSize() const OVERRIDE; 40 virtual WebSize layoutViewportSize() const OVERRIDE;
39 virtual WebSize deviceViewportSize() const OVERRIDE; 41 virtual WebSize deviceViewportSize() const OVERRIDE;
40 virtual WebFloatPoint adjustEventPointForPinchZoom(const WebFloatPoint& poin t) const OVERRIDE; 42 virtual WebFloatPoint adjustEventPointForPinchZoom(const WebFloatPoint& poin t) const OVERRIDE;
41 virtual void setDeviceScaleFactor(float) OVERRIDE; 43 virtual void setDeviceScaleFactor(float) OVERRIDE;
42 virtual float deviceScaleFactor() const OVERRIDE; 44 virtual float deviceScaleFactor() const OVERRIDE;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual scoped_ptr<cc::FontAtlas> createFontAtlas(); 78 virtual scoped_ptr<cc::FontAtlas> createFontAtlas();
77 79
78 private: 80 private:
79 WebLayerTreeViewClient* m_client; 81 WebLayerTreeViewClient* m_client;
80 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost; 82 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost;
81 }; 83 };
82 84
83 } // namespace WebKit 85 } // namespace WebKit
84 86
85 #endif // WebLayerTreeViewImpl_h 87 #endif // WebLayerTreeViewImpl_h
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | webkit/compositor_bindings/web_layer_tree_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698