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/resource_provider.h" | 9 #include "cc/resource_provider.h" |
10 #include "cc/shared_quad_state.h" | 10 #include "cc/shared_quad_state.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 }; | 31 }; |
32 | 32 |
33 virtual ~DrawQuad(); | 33 virtual ~DrawQuad(); |
34 | 34 |
35 scoped_ptr<DrawQuad> Copy( | 35 scoped_ptr<DrawQuad> Copy( |
36 const SharedQuadState* copied_shared_quad_state) const; | 36 const SharedQuadState* copied_shared_quad_state) const; |
37 | 37 |
38 // TODO(danakj): Chromify or remove these SharedQuadState helpers. | 38 // TODO(danakj): Chromify or remove these SharedQuadState helpers. |
39 const gfx::Transform& quadTransform() const { return shared_quad_state->conten
t_to_target_transform; } | 39 const gfx::Transform& quadTransform() const { return shared_quad_state->conten
t_to_target_transform; } |
40 gfx::Rect visibleContentRect() const { return shared_quad_state->visible_conte
nt_rect; } | 40 gfx::Rect visibleContentRect() const { return shared_quad_state->visible_conte
nt_rect; } |
41 gfx::Rect clippedRectInTarget() const { return shared_quad_state->clipped_rect
_in_target; } | |
42 gfx::Rect clipRect() const { return shared_quad_state->clip_rect; } | 41 gfx::Rect clipRect() const { return shared_quad_state->clip_rect; } |
43 bool isClipped() const { return shared_quad_state->is_clipped; } | 42 bool isClipped() const { return shared_quad_state->is_clipped; } |
44 float opacity() const { return shared_quad_state->opacity; } | 43 float opacity() const { return shared_quad_state->opacity; } |
45 | 44 |
46 Material material; | 45 Material material; |
47 | 46 |
48 // This rect, after applying the quad_transform(), gives the geometry that | 47 // This rect, after applying the quad_transform(), gives the geometry that |
49 // this quad should draw to. | 48 // this quad should draw to. |
50 gfx::Rect rect; | 49 gfx::Rect rect; |
51 | 50 |
(...skipping 29 matching lines...) Expand all Loading... |
81 Material material, | 80 Material material, |
82 gfx::Rect rect, | 81 gfx::Rect rect, |
83 gfx::Rect opaque_rect, | 82 gfx::Rect opaque_rect, |
84 gfx::Rect visible_rect, | 83 gfx::Rect visible_rect, |
85 bool needs_blending); | 84 bool needs_blending); |
86 }; | 85 }; |
87 | 86 |
88 } | 87 } |
89 | 88 |
90 #endif // CC_DRAW_QUAD_H_ | 89 #endif // CC_DRAW_QUAD_H_ |
OLD | NEW |