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

Unified Diff: cc/test/CCRenderPassTestCommon.h

Issue 10916307: Add the ubercomp DelegatedRendererLayer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use OwnPtrVector Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/cc_tests.gyp ('k') | webkit/compositor_bindings/WebDelegatedRendererLayerImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/CCRenderPassTestCommon.h
diff --git a/cc/test/CCRenderPassTestCommon.h b/cc/test/CCRenderPassTestCommon.h
new file mode 100644
index 0000000000000000000000000000000000000000..8bb98394bf2017a13bf68e3e4236372d5bc30331
--- /dev/null
+++ b/cc/test/CCRenderPassTestCommon.h
@@ -0,0 +1,24 @@
+// 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 CCRenderPassTestCommon_h
+#define CCRenderPassTestCommon_h
+
+#include "CCRenderPass.h"
+#include <wtf/PassOwnPtr.h>
+
+namespace WebKitTests {
+
+class CCTestRenderPass : public cc::CCRenderPass {
+public:
+ cc::CCQuadList& quadList() { return m_quadList; }
+ cc::CCSharedQuadStateList& sharedQuadStateList() { return m_sharedQuadStateList; }
+
+ void appendQuad(PassOwnPtr<cc::CCDrawQuad> quad) { m_quadList.append(quad); }
+ void appendSharedQuadState(PassOwnPtr<cc::CCSharedQuadState> state) { m_sharedQuadStateList.append(state); }
+};
+
+} //namespace WebKitTests
+
+#endif // CCRenderPassTestCommon_h
« no previous file with comments | « cc/cc_tests.gyp ('k') | webkit/compositor_bindings/WebDelegatedRendererLayerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698