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

Side by Side Diff: webkit/compositor_bindings/web_layer_tree_view_impl_for_testing.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: Fix typo 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 WEBKIT_COMPOSITOR_BINDINGS_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ 5 #ifndef WEBKIT_COMPOSITOR_BINDINGS_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_
6 #define WEBKIT_COMPOSITOR_BINDINGS_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ 6 #define WEBKIT_COMPOSITOR_BINDINGS_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual void applyScrollAndScale(gfx::Vector2d scroll_delta, float page_scale) 69 virtual void applyScrollAndScale(gfx::Vector2d scroll_delta, float page_scale)
70 OVERRIDE; 70 OVERRIDE;
71 virtual scoped_ptr<cc::OutputSurface> createOutputSurface() OVERRIDE; 71 virtual scoped_ptr<cc::OutputSurface> createOutputSurface() OVERRIDE;
72 virtual void didRecreateOutputSurface(bool success) OVERRIDE; 72 virtual void didRecreateOutputSurface(bool success) OVERRIDE;
73 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE; 73 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE;
74 virtual void willCommit() OVERRIDE; 74 virtual void willCommit() OVERRIDE;
75 virtual void didCommit() OVERRIDE; 75 virtual void didCommit() OVERRIDE;
76 virtual void didCommitAndDrawFrame() OVERRIDE; 76 virtual void didCommitAndDrawFrame() OVERRIDE;
77 virtual void didCompleteSwapBuffers() OVERRIDE; 77 virtual void didCompleteSwapBuffers() OVERRIDE;
78 virtual void scheduleComposite() OVERRIDE; 78 virtual void scheduleComposite() OVERRIDE;
79 virtual scoped_refptr<cc::ContextProvider>
80 OffscreenContextProviderForMainThread() OVERRIDE;
81 virtual scoped_refptr<cc::ContextProvider>
82 OffscreenContextProviderForCompositorThread() OVERRIDE;
79 83
80 private: 84 private:
81 RenderingType type_; 85 RenderingType type_;
82 WebKit::WebLayerTreeViewClient* client_; 86 WebKit::WebLayerTreeViewClient* client_;
83 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 87 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
88
89 class MainThreadContextProvider;
90 scoped_refptr<MainThreadContextProvider> contexts_main_thread_;
91 class CompositorThreadContextProvider;
92 scoped_refptr<CompositorThreadContextProvider> contexts_compositor_thread_;
84 }; 93 };
85 94
86 } // namespace Web_kit 95 } // namespace Web_kit
87 96
88 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ 97 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698