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

Side by Side Diff: cc/quads/draw_quad.h

Issue 380893004: Move Copy method from DrawQuad to RenderPass (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moreRP4DQ
Patch Set: rebase Created 6 years, 5 months 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
« no previous file with comments | « cc/layers/delegated_renderer_layer_impl.cc ('k') | cc/quads/draw_quad.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_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 30 matching lines...) Expand all
41 STREAM_VIDEO_CONTENT, 41 STREAM_VIDEO_CONTENT,
42 SURFACE_CONTENT, 42 SURFACE_CONTENT,
43 TEXTURE_CONTENT, 43 TEXTURE_CONTENT,
44 TILED_CONTENT, 44 TILED_CONTENT,
45 YUV_VIDEO_CONTENT, 45 YUV_VIDEO_CONTENT,
46 MATERIAL_LAST = YUV_VIDEO_CONTENT 46 MATERIAL_LAST = YUV_VIDEO_CONTENT
47 }; 47 };
48 48
49 virtual ~DrawQuad(); 49 virtual ~DrawQuad();
50 50
51 // TODO(weiliangc): DrawQuad need to be allocated on RenderPass. This function
52 // need to be moved to RenderPass.
53 scoped_ptr<DrawQuad> Copy(
54 const SharedQuadState* copied_shared_quad_state) const;
55
56 // TODO(danakj): Chromify or remove these SharedQuadState helpers. 51 // TODO(danakj): Chromify or remove these SharedQuadState helpers.
57 const gfx::Transform& quadTransform() const { 52 const gfx::Transform& quadTransform() const {
58 return shared_quad_state->content_to_target_transform; 53 return shared_quad_state->content_to_target_transform;
59 } 54 }
60 gfx::Rect visibleContentRect() const { 55 gfx::Rect visibleContentRect() const {
61 return shared_quad_state->visible_content_rect; 56 return shared_quad_state->visible_content_rect;
62 } 57 }
63 gfx::Rect clipRect() const { return shared_quad_state->clip_rect; } 58 gfx::Rect clipRect() const { return shared_quad_state->clip_rect; }
64 bool isClipped() const { return shared_quad_state->is_clipped; } 59 bool isClipped() const { return shared_quad_state->is_clipped; }
65 float opacity() const { return shared_quad_state->opacity; } 60 float opacity() const { return shared_quad_state->opacity; }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 const gfx::Rect& rect, 133 const gfx::Rect& rect,
139 const gfx::Rect& opaque_rect, 134 const gfx::Rect& opaque_rect,
140 const gfx::Rect& visible_rect, 135 const gfx::Rect& visible_rect,
141 bool needs_blending); 136 bool needs_blending);
142 virtual void ExtendValue(base::DictionaryValue* value) const = 0; 137 virtual void ExtendValue(base::DictionaryValue* value) const = 0;
143 }; 138 };
144 139
145 } // namespace cc 140 } // namespace cc
146 141
147 #endif // CC_QUADS_DRAW_QUAD_H_ 142 #endif // CC_QUADS_DRAW_QUAD_H_
OLDNEW
« no previous file with comments | « cc/layers/delegated_renderer_layer_impl.cc ('k') | cc/quads/draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698