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 |