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

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

Issue 12212007: cc: Route offscreen context creation for compositor to the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 virtual void setContinuousPaintingEnabled(bool); 62 virtual void setContinuousPaintingEnabled(bool);
63 63
64 // cc::LayerTreeHostClient implementation. 64 // cc::LayerTreeHostClient implementation.
65 virtual void willBeginFrame() OVERRIDE; 65 virtual void willBeginFrame() OVERRIDE;
66 virtual void didBeginFrame() OVERRIDE; 66 virtual void didBeginFrame() OVERRIDE;
67 virtual void animate(double monotonicFrameBeginTime) OVERRIDE; 67 virtual void animate(double monotonicFrameBeginTime) OVERRIDE;
68 virtual void layout() OVERRIDE; 68 virtual void layout() OVERRIDE;
69 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, float pageScale) OVERRIDE; 69 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, float pageScale) OVERRIDE;
70 virtual scoped_ptr<cc::OutputSurface> createOutputSurface() OVERRIDE; 70 virtual scoped_ptr<cc::OutputSurface> createOutputSurface() OVERRIDE;
71 virtual void didRecreateOutputSurface(bool success) OVERRIDE; 71 virtual void didRecreateOutputSurface(bool success) OVERRIDE;
72 virtual WebKit::WebGraphicsContext3D* createOrGetOffscreenContext3dForMainTh read() OVERRIDE;
73 virtual WebKit::WebGraphicsContext3D* createOrGetOffscreenContext3dForCompos itorThread() OVERRIDE;
74 virtual GrContext* createOrGetOffscreenGrContextForMainThread() OVERRIDE;
75 virtual GrContext* createOrGetOffscreenGrContextForCompositorThread() OVERRI DE;
72 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE; 76 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE;
73 virtual void willCommit() OVERRIDE; 77 virtual void willCommit() OVERRIDE;
74 virtual void didCommit() OVERRIDE; 78 virtual void didCommit() OVERRIDE;
75 virtual void didCommitAndDrawFrame() OVERRIDE; 79 virtual void didCommitAndDrawFrame() OVERRIDE;
76 virtual void didCompleteSwapBuffers() OVERRIDE; 80 virtual void didCompleteSwapBuffers() OVERRIDE;
77 virtual void scheduleComposite() OVERRIDE; 81 virtual void scheduleComposite() OVERRIDE;
78 virtual scoped_ptr<cc::FontAtlas> createFontAtlas(); 82 virtual scoped_ptr<cc::FontAtlas> createFontAtlas();
79 83
80 private: 84 private:
81 WebLayerTreeViewClient* m_client; 85 WebLayerTreeViewClient* m_client;
82 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost; 86 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost;
83 }; 87 };
84 88
85 } // namespace WebKit 89 } // namespace WebKit
86 90
87 #endif // WebLayerTreeViewImpl_h 91 #endif // WebLayerTreeViewImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698