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

Unified Diff: cc/test/fake_layer_tree_host_impl_client.h

Issue 11472021: cc: Pass LayerTreeHostImpl to LayerImpl constructor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years 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
« no previous file with comments | « cc/test/fake_layer_tree_host_impl.cc ('k') | cc/test/fake_layer_tree_host_impl_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_layer_tree_host_impl_client.h
diff --git a/cc/test/fake_layer_tree_host_impl_client.h b/cc/test/fake_layer_tree_host_impl_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..fdeb7ea00f350859b2e115483d4c02cb9f5c1a5a
--- /dev/null
+++ b/cc/test/fake_layer_tree_host_impl_client.h
@@ -0,0 +1,33 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_CLIENT_H_
+#define CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_CLIENT_H_
+
+#include "cc/layer_tree_host_impl.h"
+
+namespace cc {
+
+class FakeLayerTreeHostImplClient : public LayerTreeHostImplClient {
+ public:
+ // LayerTreeHostImplClient implementation.
+ virtual void didLoseOutputSurfaceOnImplThread() OVERRIDE { }
+ virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { }
+ virtual void onVSyncParametersChanged(
+ base::TimeTicks,
+ base::TimeDelta) OVERRIDE { }
+ virtual void onCanDrawStateChanged(bool) OVERRIDE { }
+ virtual void setNeedsRedrawOnImplThread() OVERRIDE { }
+ virtual void setNeedsCommitOnImplThread() OVERRIDE { }
+ virtual void setNeedsManageTilesOnImplThread() OVERRIDE { }
+ virtual void postAnimationEventsToMainThreadOnImplThread(
+ scoped_ptr<AnimationEventsVector>,
+ base::Time) OVERRIDE { }
+ virtual bool reduceContentsTextureMemoryOnImplThread(size_t, int) OVERRIDE;
+ virtual void sendManagedMemoryStats() OVERRIDE { }
+};
+
+} // namespace cc
+
+#endif // CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_CLIENT_H_
« no previous file with comments | « cc/test/fake_layer_tree_host_impl.cc ('k') | cc/test/fake_layer_tree_host_impl_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698