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 // transform maps the content space to the target space. | 30 // transform maps the content space to the target space. |
31 class CC_EXPORT DrawQuad { | 31 class CC_EXPORT DrawQuad { |
32 public: | 32 public: |
33 enum Material { | 33 enum Material { |
34 INVALID, | 34 INVALID, |
35 CHECKERBOARD, | 35 CHECKERBOARD, |
36 DEBUG_BORDER, | 36 DEBUG_BORDER, |
37 IO_SURFACE_CONTENT, | 37 IO_SURFACE_CONTENT, |
38 PICTURE_CONTENT, | 38 PICTURE_CONTENT, |
39 RENDER_PASS, | 39 RENDER_PASS, |
| 40 SOLID_COLOR, |
| 41 STREAM_VIDEO_CONTENT, |
| 42 SURFACE_CONTENT, |
40 TEXTURE_CONTENT, | 43 TEXTURE_CONTENT, |
41 SOLID_COLOR, | |
42 TILED_CONTENT, | 44 TILED_CONTENT, |
43 YUV_VIDEO_CONTENT, | 45 YUV_VIDEO_CONTENT, |
44 STREAM_VIDEO_CONTENT, | |
45 }; | 46 }; |
46 | 47 |
47 virtual ~DrawQuad(); | 48 virtual ~DrawQuad(); |
48 | 49 |
49 scoped_ptr<DrawQuad> Copy( | 50 scoped_ptr<DrawQuad> Copy( |
50 const SharedQuadState* copied_shared_quad_state) const; | 51 const SharedQuadState* copied_shared_quad_state) const; |
51 | 52 |
52 // TODO(danakj): Chromify or remove these SharedQuadState helpers. | 53 // TODO(danakj): Chromify or remove these SharedQuadState helpers. |
53 const gfx::Transform& quadTransform() const { | 54 const gfx::Transform& quadTransform() const { |
54 return shared_quad_state->content_to_target_transform; | 55 return shared_quad_state->content_to_target_transform; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 const gfx::Rect& rect, | 135 const gfx::Rect& rect, |
135 const gfx::Rect& opaque_rect, | 136 const gfx::Rect& opaque_rect, |
136 const gfx::Rect& visible_rect, | 137 const gfx::Rect& visible_rect, |
137 bool needs_blending); | 138 bool needs_blending); |
138 virtual void ExtendValue(base::DictionaryValue* value) const = 0; | 139 virtual void ExtendValue(base::DictionaryValue* value) const = 0; |
139 }; | 140 }; |
140 | 141 |
141 } // namespace cc | 142 } // namespace cc |
142 | 143 |
143 #endif // CC_QUADS_DRAW_QUAD_H_ | 144 #endif // CC_QUADS_DRAW_QUAD_H_ |
OLD | NEW |