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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 // geometry is defined (generally related to the layer that produced the quad, | 31 // geometry is defined (generally related to the layer that produced the quad, |
32 // e.g. the geometry space for PictureLayerImpls or the layer's coordinate space | 32 // e.g. the geometry space for PictureLayerImpls or the layer's coordinate space |
33 // for most other layers). There is also the "target space", which is the space, | 33 // for most other layers). There is also the "target space", which is the space, |
34 // in "physical" pixels, of the render target where the quads is drawn. The | 34 // in "physical" pixels, of the render target where the quads is drawn. The |
35 // quad's transform maps the content space to the target space. | 35 // quad's transform maps the content space to the target space. |
36 class CC_EXPORT DrawQuad { | 36 class CC_EXPORT DrawQuad { |
37 public: | 37 public: |
38 enum Material { | 38 enum Material { |
39 INVALID, | 39 INVALID, |
40 DEBUG_BORDER, | 40 DEBUG_BORDER, |
41 IO_SURFACE_CONTENT, | |
42 PICTURE_CONTENT, | 41 PICTURE_CONTENT, |
43 RENDER_PASS, | 42 RENDER_PASS, |
44 SOLID_COLOR, | 43 SOLID_COLOR, |
45 STREAM_VIDEO_CONTENT, | 44 STREAM_VIDEO_CONTENT, |
46 SURFACE_CONTENT, | 45 SURFACE_CONTENT, |
47 TEXTURE_CONTENT, | 46 TEXTURE_CONTENT, |
48 TILED_CONTENT, | 47 TILED_CONTENT, |
49 YUV_VIDEO_CONTENT, | 48 YUV_VIDEO_CONTENT, |
50 MATERIAL_LAST = YUV_VIDEO_CONTENT | 49 MATERIAL_LAST = YUV_VIDEO_CONTENT |
51 }; | 50 }; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 const gfx::Rect& rect, | 144 const gfx::Rect& rect, |
146 const gfx::Rect& opaque_rect, | 145 const gfx::Rect& opaque_rect, |
147 const gfx::Rect& visible_rect, | 146 const gfx::Rect& visible_rect, |
148 bool needs_blending); | 147 bool needs_blending); |
149 virtual void ExtendValue(base::trace_event::TracedValue* value) const = 0; | 148 virtual void ExtendValue(base::trace_event::TracedValue* value) const = 0; |
150 }; | 149 }; |
151 | 150 |
152 } // namespace cc | 151 } // namespace cc |
153 | 152 |
154 #endif // CC_QUADS_DRAW_QUAD_H_ | 153 #endif // CC_QUADS_DRAW_QUAD_H_ |
OLD | NEW |