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

Side by Side Diff: cc/draw_quad.h

Issue 11308153: Migrate most of cc/ from WebKit::WebTransformationMatrix to gfx::Transform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to tip of tree and addressed feedback 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
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->content_to_target_transform; } 38 const gfx::Transform& quadTransform() const { return shared_quad_state->conten t_to_target_transform; }
39 gfx::Rect visibleContentRect() const { return shared_quad_state->visible_conte nt_rect; } 39 gfx::Rect visibleContentRect() const { return shared_quad_state->visible_conte nt_rect; }
40 gfx::Rect clippedRectInTarget() const { return shared_quad_state->clipped_rect _in_target; } 40 gfx::Rect clippedRectInTarget() const { return shared_quad_state->clipped_rect _in_target; }
41 gfx::Rect clipRect() const { return shared_quad_state->clip_rect; } 41 gfx::Rect clipRect() const { return shared_quad_state->clip_rect; }
42 bool isClipped() const { return shared_quad_state->is_clipped; } 42 bool isClipped() const { return shared_quad_state->is_clipped; }
43 float opacity() const { return shared_quad_state->opacity; } 43 float opacity() const { return shared_quad_state->opacity; }
44 44
45 Material material; 45 Material material;
46 46
47 // This rect, after applying the quad_transform(), gives the geometry that 47 // This rect, after applying the quad_transform(), gives the geometry that
48 // this quad should draw to. 48 // this quad should draw to.
(...skipping 29 matching lines...) Expand all
78 Material material, 78 Material material,
79 gfx::Rect rect, 79 gfx::Rect rect,
80 gfx::Rect opaque_rect, 80 gfx::Rect opaque_rect,
81 gfx::Rect visible_rect, 81 gfx::Rect visible_rect,
82 bool needs_blending); 82 bool needs_blending);
83 }; 83 };
84 84
85 } 85 }
86 86
87 #endif // CC_DRAW_QUAD_H_ 87 #endif // CC_DRAW_QUAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698