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

Side by Side Diff: cc/quads/draw_quad.h

Issue 12642010: Implement on demand quad rasterization for PicturePiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. 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/quads/content_draw_quad_base.cc ('k') | cc/quads/draw_quad.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_QUADS_DRAW_QUAD_H_ 5 #ifndef CC_QUADS_DRAW_QUAD_H_
6 #define CC_QUADS_DRAW_QUAD_H_ 6 #define CC_QUADS_DRAW_QUAD_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/quads/shared_quad_state.h" 10 #include "cc/quads/shared_quad_state.h"
11 #include "cc/resources/resource_provider.h" 11 #include "cc/resources/resource_provider.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 // DrawQuad is a bag of data used for drawing a quad. Because different 15 // DrawQuad is a bag of data used for drawing a quad. Because different
16 // materials need different bits of per-quad data to render, classes that derive 16 // materials need different bits of per-quad data to render, classes that derive
17 // from DrawQuad store additional data in their derived instance. The Material 17 // from DrawQuad store additional data in their derived instance. The Material
18 // enum is used to "safely" downcast to the derived class. 18 // enum is used to "safely" downcast to the derived class.
19 class CC_EXPORT DrawQuad { 19 class CC_EXPORT DrawQuad {
20 public: 20 public:
21 enum Material { 21 enum Material {
22 INVALID, 22 INVALID,
23 CHECKERBOARD, 23 CHECKERBOARD,
24 DEBUG_BORDER, 24 DEBUG_BORDER,
25 IO_SURFACE_CONTENT, 25 IO_SURFACE_CONTENT,
26 PICTURE_CONTENT,
26 RENDER_PASS, 27 RENDER_PASS,
27 TEXTURE_CONTENT, 28 TEXTURE_CONTENT,
28 SOLID_COLOR, 29 SOLID_COLOR,
29 TILED_CONTENT, 30 TILED_CONTENT,
30 YUV_VIDEO_CONTENT, 31 YUV_VIDEO_CONTENT,
31 STREAM_VIDEO_CONTENT, 32 STREAM_VIDEO_CONTENT,
32 }; 33 };
33 34
34 virtual ~DrawQuad(); 35 virtual ~DrawQuad();
35 36
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 Material material, 111 Material material,
111 gfx::Rect rect, 112 gfx::Rect rect,
112 gfx::Rect opaque_rect, 113 gfx::Rect opaque_rect,
113 gfx::Rect visible_rect, 114 gfx::Rect visible_rect,
114 bool needs_blending); 115 bool needs_blending);
115 }; 116 };
116 117
117 } // namespace cc 118 } // namespace cc
118 119
119 #endif // CC_QUADS_DRAW_QUAD_H_ 120 #endif // CC_QUADS_DRAW_QUAD_H_
OLDNEW
« no previous file with comments | « cc/quads/content_draw_quad_base.cc ('k') | cc/quads/draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698