OLD | NEW |
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" |
(...skipping 19 matching lines...) Expand all Loading... |
30 // e.g. the content space for TiledLayerImpls, or the geometry space for | 30 // e.g. the content space for TiledLayerImpls, or the geometry space for |
31 // PictureLayerImpls). There is also the "target space", which is the space, in | 31 // PictureLayerImpls). There is also the "target space", which is the space, in |
32 // "physical" pixels, of the render target where the quads is drawn. The quad's | 32 // "physical" pixels, of the render target where the quads is drawn. The quad's |
33 // transform maps the content space to the target space. | 33 // transform maps the content space to the target space. |
34 class CC_EXPORT DrawQuad { | 34 class CC_EXPORT DrawQuad { |
35 public: | 35 public: |
36 enum Material { | 36 enum Material { |
37 INVALID, | 37 INVALID, |
38 CHECKERBOARD, | 38 CHECKERBOARD, |
39 DEBUG_BORDER, | 39 DEBUG_BORDER, |
| 40 FILTER_CONTENT, |
40 IO_SURFACE_CONTENT, | 41 IO_SURFACE_CONTENT, |
41 PICTURE_CONTENT, | 42 PICTURE_CONTENT, |
42 RENDER_PASS, | 43 RENDER_PASS, |
43 SOLID_COLOR, | 44 SOLID_COLOR, |
44 STREAM_VIDEO_CONTENT, | 45 STREAM_VIDEO_CONTENT, |
45 SURFACE_CONTENT, | 46 SURFACE_CONTENT, |
46 TEXTURE_CONTENT, | 47 TEXTURE_CONTENT, |
47 TILED_CONTENT, | 48 TILED_CONTENT, |
48 YUV_VIDEO_CONTENT, | 49 YUV_VIDEO_CONTENT, |
49 MATERIAL_LAST = YUV_VIDEO_CONTENT | 50 MATERIAL_LAST = YUV_VIDEO_CONTENT |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 const gfx::Rect& rect, | 137 const gfx::Rect& rect, |
137 const gfx::Rect& opaque_rect, | 138 const gfx::Rect& opaque_rect, |
138 const gfx::Rect& visible_rect, | 139 const gfx::Rect& visible_rect, |
139 bool needs_blending); | 140 bool needs_blending); |
140 virtual void ExtendValue(base::debug::TracedValue* value) const = 0; | 141 virtual void ExtendValue(base::debug::TracedValue* value) const = 0; |
141 }; | 142 }; |
142 | 143 |
143 } // namespace cc | 144 } // namespace cc |
144 | 145 |
145 #endif // CC_QUADS_DRAW_QUAD_H_ | 146 #endif // CC_QUADS_DRAW_QUAD_H_ |
OLD | NEW |