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

Unified Diff: cc/test/fake_impl_proxy.h

Issue 11472021: cc: Pass LayerTreeHostImpl to LayerImpl constructor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: cc/test/fake_impl_proxy.h
diff --git a/cc/test/fake_impl_proxy.h b/cc/test/fake_impl_proxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..fd87851c4c13f628c16537fe77527bd0c38dd079
--- /dev/null
+++ b/cc/test/fake_impl_proxy.h
@@ -0,0 +1,27 @@
+// 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_IMPL_PROXY_H_
+#define CC_TEST_FAKE_IMPL_PROXY_H_
+
+#include "cc/single_thread_proxy.h"
+#include "cc/test/fake_proxy.h"
+
+namespace cc {
jamesr 2012/12/07 07:28:40 can you put this in namespace cc::test ?
enne (OOO) 2012/12/07 08:16:37 It doesn't look like anything else is in the cc::t
+
+class FakeImplProxy : public FakeProxy {
+ public:
+ FakeImplProxy()
+ : FakeProxy(scoped_ptr<Thread>()),
+ set_impl_thread_(this)
+ {
+ }
+
+ private:
+ DebugScopedSetImplThread set_impl_thread_;
+};
+
+} // namespace cc
+
+#endif // CC_TEST_FAKE_IMPL_PROXY_H_

Powered by Google App Engine
This is Rietveld 408576698