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

Unified Diff: cc/test/mock_quad_culler.h

Issue 11108020: [cc] Change cc_tests.gyp filenames to Chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 2 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/test/layer_test_common.cc ('k') | cc/test/mock_quad_culler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/mock_quad_culler.h
diff --git a/cc/test/mock_quad_culler.h b/cc/test/mock_quad_culler.h
index 638cbb270ce9b24689d5095baf174ade4f4d1a13..d853b586277cf97794a4bde8b2436f99bef3a7cf 100644
--- a/cc/test/mock_quad_culler.h
+++ b/cc/test/mock_quad_culler.h
@@ -1,3 +1,38 @@
// 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 MockCCQuadCuller_h
+#define MockCCQuadCuller_h
+
+#include "CCDrawQuad.h"
+#include "CCQuadSink.h"
+#include "CCRenderPass.h"
+#include "IntRect.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace cc {
+
+class MockCCQuadCuller : public CCQuadSink {
+public:
+ MockCCQuadCuller();
+ virtual ~MockCCQuadCuller();
+
+ MockCCQuadCuller(CCQuadList& externalQuadList, CCSharedQuadStateList& externalSharedQuadStateList);
+
+ virtual bool append(scoped_ptr<CCDrawQuad> newQuad, CCAppendQuadsData&) OVERRIDE;
+
+ virtual CCSharedQuadState* useSharedQuadState(scoped_ptr<CCSharedQuadState> passSharedQuadState) OVERRIDE;
+
+ const CCQuadList& quadList() const { return m_activeQuadList; };
+ const CCSharedQuadStateList& sharedQuadStateList() const { return m_activeSharedQuadStateList; };
+
+private:
+ CCQuadList& m_activeQuadList;
+ CCQuadList m_quadListStorage;
+ CCSharedQuadStateList& m_activeSharedQuadStateList;
+ CCSharedQuadStateList m_sharedQuadStateStorage;
+};
+
+} // namespace cc
+#endif // MockCCQuadCuller_h
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | cc/test/mock_quad_culler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698