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

Side by Side Diff: cc/quad_sink.h

Issue 11416088: cc: Turn SharedQuadState into a struct-like class similar to DrawQuads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix debug build Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « cc/quad_culler.cc ('k') | cc/render_pass.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_QUAD_SINK_H_ 5 #ifndef CC_QUAD_SINK_H_
6 #define CC_QUAD_SINK_H_ 6 #define CC_QUAD_SINK_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/cc_export.h" 9 #include "cc/cc_export.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 class DrawQuad; 13 class DrawQuad;
14 class SharedQuadState;
14 15
15 struct AppendQuadsData; 16 struct AppendQuadsData;
16 struct SharedQuadState;
17 17
18 class CC_EXPORT QuadSink { 18 class CC_EXPORT QuadSink {
19 public: 19 public:
20 virtual ~QuadSink() { } 20 virtual ~QuadSink() { }
21 21
22 // Call this to add a SharedQuadState before appending quads that refer to i t. Returns a pointer 22 // Call this to add a SharedQuadState before appending quads that refer to i t. Returns a pointer
23 // to the given SharedQuadState for convenience, that can be set on the quad s to append. 23 // to the given SharedQuadState for convenience, that can be set on the quad s to append.
24 virtual SharedQuadState* useSharedQuadState(scoped_ptr<SharedQuadState>) = 0 ; 24 virtual SharedQuadState* useSharedQuadState(scoped_ptr<SharedQuadState>) = 0 ;
25 25
26 // Returns true if the quad is added to the list, and false if the quad is e ntirely culled. 26 // Returns true if the quad is added to the list, and false if the quad is e ntirely culled.
27 virtual bool append(scoped_ptr<DrawQuad> passDrawQuad, AppendQuadsData&) = 0 ; 27 virtual bool append(scoped_ptr<DrawQuad> passDrawQuad, AppendQuadsData&) = 0 ;
28 }; 28 };
29 29
30 } 30 }
31 #endif // CC_QUAD_SINK_H_ 31 #endif // CC_QUAD_SINK_H_
OLDNEW
« no previous file with comments | « cc/quad_culler.cc ('k') | cc/render_pass.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698