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_DRAW_QUAD_H_ | 5 #ifndef CC_DRAW_QUAD_H_ |
6 #define CC_DRAW_QUAD_H_ | 6 #define CC_DRAW_QUAD_H_ |
7 | 7 |
8 #include "cc/cc_export.h" | 8 #include "cc/cc_export.h" |
9 #include "cc/shared_quad_state.h" | 9 #include "cc/shared_quad_state.h" |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 YUV_VIDEO_CONTENT, | 28 YUV_VIDEO_CONTENT, |
29 STREAM_VIDEO_CONTENT, | 29 STREAM_VIDEO_CONTENT, |
30 }; | 30 }; |
31 | 31 |
32 virtual ~DrawQuad(); | 32 virtual ~DrawQuad(); |
33 | 33 |
34 scoped_ptr<DrawQuad> Copy( | 34 scoped_ptr<DrawQuad> Copy( |
35 const SharedQuadState* copied_shared_quad_state) const; | 35 const SharedQuadState* copied_shared_quad_state) const; |
36 | 36 |
37 // TODO(danakj): Chromify or remove these SharedQuadState helpers. | 37 // TODO(danakj): Chromify or remove these SharedQuadState helpers. |
38 const WebKit::WebTransformationMatrix& quadTransform() const { return shared_q
uad_state->quadTransform; } | 38 const WebKit::WebTransformationMatrix& quadTransform() const { return shared_q
uad_state->content_to_target_transform; } |
39 gfx::Rect visibleContentRect() const { return shared_quad_state->visibleConten
tRect; } | 39 gfx::Rect visibleContentRect() const { return shared_quad_state->visible_conte
nt_rect; } |
40 gfx::Rect clippedRectInTarget() const { return shared_quad_state->clippedRectI
nTarget; } | 40 gfx::Rect clippedRectInTarget() const { return shared_quad_state->clipped_rect
_in_target; } |
41 float opacity() const { return shared_quad_state->opacity; } | 41 float opacity() const { return shared_quad_state->opacity; } |
42 | 42 |
43 Material material; | 43 Material material; |
44 | 44 |
45 // This rect, after applying the quad_transform(), gives the geometry that | 45 // This rect, after applying the quad_transform(), gives the geometry that |
46 // this quad should draw to. | 46 // this quad should draw to. |
47 gfx::Rect rect; | 47 gfx::Rect rect; |
48 | 48 |
49 // This specifies the region of the quad that is opaque. | 49 // This specifies the region of the quad that is opaque. |
50 gfx::Rect opaque_rect; | 50 gfx::Rect opaque_rect; |
(...skipping 25 matching lines...) Expand all Loading... |
76 Material material, | 76 Material material, |
77 gfx::Rect rect, | 77 gfx::Rect rect, |
78 gfx::Rect opaque_rect, | 78 gfx::Rect opaque_rect, |
79 gfx::Rect visible_rect, | 79 gfx::Rect visible_rect, |
80 bool needs_blending); | 80 bool needs_blending); |
81 }; | 81 }; |
82 | 82 |
83 } | 83 } |
84 | 84 |
85 #endif // CC_DRAW_QUAD_H_ | 85 #endif // CC_DRAW_QUAD_H_ |
OLD | NEW |