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

Side by Side Diff: cc/quad_sink.h

Issue 12603013: Part 10 of cc/ directory shuffles: layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « cc/pinch_zoom_scrollbar_painter.h ('k') | cc/quads/yuv_video_draw_quad.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_QUAD_SINK_H_
6 #define CC_QUAD_SINK_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "cc/base/cc_export.h"
10
11 namespace cc {
12
13 class DrawQuad;
14 class SharedQuadState;
15
16 struct AppendQuadsData;
17
18 class CC_EXPORT QuadSink {
19 public:
20 virtual ~QuadSink() {}
21
22 // Call this to add a SharedQuadState before appending quads that refer to it.
23 // Returns a pointer to the given SharedQuadState for convenience, that can be
24 // set on the quads to append.
25 virtual SharedQuadState* UseSharedQuadState(
26 scoped_ptr<SharedQuadState> shared_quad_state) = 0;
27
28 // Returns true if the quad is added to the list, and false if the quad is
29 // entirely culled.
30 virtual bool Append(scoped_ptr<DrawQuad> draw_quad,
31 AppendQuadsData* append_quads_data) = 0;
32 };
33
34 } // namespace cc
35
36 #endif // CC_QUAD_SINK_H_
OLDNEW
« no previous file with comments | « cc/pinch_zoom_scrollbar_painter.h ('k') | cc/quads/yuv_video_draw_quad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698