Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(807)

Side by Side Diff: cc/draw_quad.h

Issue 11416088: cc: Turn SharedQuadState into a struct-like class similar to DrawQuads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix debug build Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/delegated_renderer_layer_impl_unittest.cc ('k') | cc/draw_quad_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/delegated_renderer_layer_impl_unittest.cc ('k') | cc/draw_quad_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698