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

Unified Diff: content/test/web_layer_tree_view_impl_for_testing.h

Issue 61823008: Introduce separate client and init path for single-threaded cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: content/test/web_layer_tree_view_impl_for_testing.h
diff --git a/content/test/web_layer_tree_view_impl_for_testing.h b/content/test/web_layer_tree_view_impl_for_testing.h
index 8811ac042ad2817201287734fe9b79df89e11768..6f0d4aa15209a6ce1a306891e0c87fd672f963c0 100644
--- a/content/test/web_layer_tree_view_impl_for_testing.h
+++ b/content/test/web_layer_tree_view_impl_for_testing.h
@@ -7,6 +7,7 @@
#include "base/memory/scoped_ptr.h"
#include "cc/trees/layer_tree_host_client.h"
+#include "cc/trees/layer_tree_host_single_thread_client.h"
#include "third_party/WebKit/public/platform/WebLayerTreeView.h"
namespace cc {
@@ -17,8 +18,10 @@ namespace WebKit { class WebLayer; }
namespace webkit {
-class WebLayerTreeViewImplForTesting : public WebKit::WebLayerTreeView,
- public cc::LayerTreeHostClient {
+class WebLayerTreeViewImplForTesting
+ : public WebKit::WebLayerTreeView,
+ public cc::LayerTreeHostClient,
+ public cc::LayerTreeHostSingleThreadClient {
public:
WebLayerTreeViewImplForTesting();
virtual ~WebLayerTreeViewImplForTesting();
@@ -70,10 +73,14 @@ class WebLayerTreeViewImplForTesting : public WebKit::WebLayerTreeView,
virtual void DidCommit() OVERRIDE {}
virtual void DidCommitAndDrawFrame() OVERRIDE {}
virtual void DidCompleteSwapBuffers() OVERRIDE {}
- virtual void ScheduleComposite() OVERRIDE;
virtual scoped_refptr<cc::ContextProvider>
OffscreenContextProvider() OVERRIDE;
+ // cc::LayerTreeHostSingleThreadClient implementation.
+ virtual void ScheduleComposite() OVERRIDE {}
+ virtual void DidPostSwapBuffers() OVERRIDE {}
+ virtual void DidAbortSwapBuffers() OVERRIDE {}
+
private:
scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | content/test/web_layer_tree_view_impl_for_testing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698