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/CCQuadSink.h

Issue 10898023: Update cc snapshot to WK r126941 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebased 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 unified diff | Download patch
« no previous file with comments | « cc/CCQuadCullerTest.cpp ('k') | cc/CCRenderPass.h » ('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 CCQuadSink_h 5 #ifndef CCQuadSink_h
6 #define CCQuadSink_h 6 #define CCQuadSink_h
7 7
8 #include <wtf/PassOwnPtr.h> 8 #include <wtf/PassOwnPtr.h>
9 9
10 namespace WebCore { 10 namespace WebCore {
11 11
12 class CCDrawQuad; 12 class CCDrawQuad;
13 13
14 struct CCAppendQuadsData;
14 struct CCSharedQuadState; 15 struct CCSharedQuadState;
15 16
16 class CCQuadSink { 17 class CCQuadSink {
17 public: 18 public:
18 virtual ~CCQuadSink() { } 19 virtual ~CCQuadSink() { }
19 20
20 // Call this to add a SharedQuadState before appending quads that refer to i t. Returns a pointer 21 // Call this to add a SharedQuadState before appending quads that refer to i t. Returns a pointer
21 // to the given SharedQuadState for convenience, that can be set on the quad s to append. 22 // to the given SharedQuadState for convenience, that can be set on the quad s to append.
22 virtual CCSharedQuadState* useSharedQuadState(PassOwnPtr<CCSharedQuadState>) = 0; 23 virtual CCSharedQuadState* useSharedQuadState(PassOwnPtr<CCSharedQuadState>) = 0;
23 24
24 // Returns true if the quad is added to the list, and false if the quad is e ntirely culled. 25 // Returns true if the quad is added to the list, and false if the quad is e ntirely culled.
25 virtual bool append(PassOwnPtr<CCDrawQuad> passDrawQuad) = 0; 26 virtual bool append(PassOwnPtr<CCDrawQuad> passDrawQuad, CCAppendQuadsData&) = 0;
26 }; 27 };
27 28
28 } 29 }
29 #endif // CCQuadCuller_h 30 #endif // CCQuadCuller_h
OLDNEW
« no previous file with comments | « cc/CCQuadCullerTest.cpp ('k') | cc/CCRenderPass.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698