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

Side by Side Diff: cc/test/render_pass_test_common.h

Issue 404563005: Make RenderPass::Id an isolated class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more case in mojo Created 6 years, 4 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 unified diff | Download patch
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | cc/test/render_pass_test_common.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TEST_RENDER_PASS_TEST_COMMON_H_ 5 #ifndef CC_TEST_RENDER_PASS_TEST_COMMON_H_
6 #define CC_TEST_RENDER_PASS_TEST_COMMON_H_ 6 #define CC_TEST_RENDER_PASS_TEST_COMMON_H_
7 7
8 #include "cc/quads/render_pass.h" 8 #include "cc/quads/render_pass.h"
9 9
10 namespace cc { 10 namespace cc {
11 class ResourceProvider; 11 class ResourceProvider;
12 } 12 }
13 13
14 namespace cc { 14 namespace cc {
15 15
16 class TestRenderPass : public RenderPass { 16 class TestRenderPass : public RenderPass {
17 public: 17 public:
18 static scoped_ptr<TestRenderPass> Create() { 18 static scoped_ptr<TestRenderPass> Create() {
19 return make_scoped_ptr(new TestRenderPass); 19 return make_scoped_ptr(new TestRenderPass);
20 } 20 }
21 21
22 static const unsigned int kSyncPointForMailboxTextureQuad = 30; 22 static const unsigned int kSyncPointForMailboxTextureQuad = 30;
23 23
24 void AppendOneOfEveryQuadType(ResourceProvider* resource_provider, 24 void AppendOneOfEveryQuadType(ResourceProvider* resource_provider,
25 RenderPass::Id child_pass); 25 RenderPassId child_pass);
26 26
27 protected: 27 protected:
28 TestRenderPass() : RenderPass() {} 28 TestRenderPass() : RenderPass() {}
29 }; 29 };
30 30
31 } // namespace cc 31 } // namespace cc
32 32
33 #endif // CC_TEST_RENDER_PASS_TEST_COMMON_H_ 33 #endif // CC_TEST_RENDER_PASS_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | cc/test/render_pass_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698