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 11 matching lines...) Expand all Loading... |
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 PICTURE_CONTENT, |
27 RENDER_PASS, | 27 RENDER_PASS, |
28 TEXTURE_CONTENT, | 28 TEXTURE_CONTENT, |
29 SOLID_COLOR, | 29 SOLID_COLOR, |
30 TILED_CONTENT, | 30 TILED_CONTENT, |
31 YUV_VIDEO_CONTENT, | 31 YUV_VIDEO_CONTENT, |
| 32 YUVA_VIDEO_CONTENT, |
32 STREAM_VIDEO_CONTENT, | 33 STREAM_VIDEO_CONTENT, |
33 }; | 34 }; |
34 | 35 |
35 virtual ~DrawQuad(); | 36 virtual ~DrawQuad(); |
36 | 37 |
37 scoped_ptr<DrawQuad> Copy( | 38 scoped_ptr<DrawQuad> Copy( |
38 const SharedQuadState* copied_shared_quad_state) const; | 39 const SharedQuadState* copied_shared_quad_state) const; |
39 | 40 |
40 // TODO(danakj): Chromify or remove these SharedQuadState helpers. | 41 // TODO(danakj): Chromify or remove these SharedQuadState helpers. |
41 const gfx::Transform& quadTransform() const { return shared_quad_state->conten
t_to_target_transform; } | 42 const gfx::Transform& quadTransform() const { return shared_quad_state->conten
t_to_target_transform; } |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 Material material, | 112 Material material, |
112 gfx::Rect rect, | 113 gfx::Rect rect, |
113 gfx::Rect opaque_rect, | 114 gfx::Rect opaque_rect, |
114 gfx::Rect visible_rect, | 115 gfx::Rect visible_rect, |
115 bool needs_blending); | 116 bool needs_blending); |
116 }; | 117 }; |
117 | 118 |
118 } // namespace cc | 119 } // namespace cc |
119 | 120 |
120 #endif // CC_QUADS_DRAW_QUAD_H_ | 121 #endif // CC_QUADS_DRAW_QUAD_H_ |
OLD | NEW |