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

Side by Side Diff: cc/quads/render_pass_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/quads/render_pass.cc ('k') | cc/quads/render_pass_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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_RENDER_PASS_DRAW_QUAD_H_ 5 #ifndef CC_QUADS_RENDER_PASS_DRAW_QUAD_H_
6 #define CC_QUADS_RENDER_PASS_DRAW_QUAD_H_ 6 #define CC_QUADS_RENDER_PASS_DRAW_QUAD_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 26 matching lines...) Expand all
37 const gfx::Rect& visible_rect, 37 const gfx::Rect& visible_rect,
38 bool needs_blending, 38 bool needs_blending,
39 RenderPass::Id render_pass_id, 39 RenderPass::Id render_pass_id,
40 bool is_replica, 40 bool is_replica,
41 ResourceProvider::ResourceId mask_resource_id, 41 ResourceProvider::ResourceId mask_resource_id,
42 const gfx::Rect& contents_changed_since_last_frame, 42 const gfx::Rect& contents_changed_since_last_frame,
43 const gfx::RectF& mask_uv_rect, 43 const gfx::RectF& mask_uv_rect,
44 const FilterOperations& filters, 44 const FilterOperations& filters,
45 const FilterOperations& background_filters); 45 const FilterOperations& background_filters);
46 46
47 scoped_ptr<RenderPassDrawQuad> Copy(
48 const SharedQuadState* copied_shared_quad_state,
49 RenderPass::Id copied_render_pass_id) const;
50
51 RenderPass::Id render_pass_id; 47 RenderPass::Id render_pass_id;
52 bool is_replica; 48 bool is_replica;
53 ResourceProvider::ResourceId mask_resource_id; 49 ResourceProvider::ResourceId mask_resource_id;
54 gfx::Rect contents_changed_since_last_frame; 50 gfx::Rect contents_changed_since_last_frame;
55 gfx::RectF mask_uv_rect; 51 gfx::RectF mask_uv_rect;
56 52
57 // Post-processing filters, applied to the pixels in the render pass' texture. 53 // Post-processing filters, applied to the pixels in the render pass' texture.
58 FilterOperations filters; 54 FilterOperations filters;
59 55
60 // Post-processing filters, applied to the pixels showing through the 56 // Post-processing filters, applied to the pixels showing through the
61 // background of the render pass, from behind it. 57 // background of the render pass, from behind it.
62 FilterOperations background_filters; 58 FilterOperations background_filters;
63 59
64 virtual void IterateResources(const ResourceIteratorCallback& callback) 60 virtual void IterateResources(const ResourceIteratorCallback& callback)
65 OVERRIDE; 61 OVERRIDE;
66 62
67 static const RenderPassDrawQuad* MaterialCast(const DrawQuad*); 63 static const RenderPassDrawQuad* MaterialCast(const DrawQuad*);
68 64
69 private: 65 private:
70 RenderPassDrawQuad(); 66 RenderPassDrawQuad();
71 virtual void ExtendValue(base::DictionaryValue* value) const OVERRIDE; 67 virtual void ExtendValue(base::DictionaryValue* value) const OVERRIDE;
72 }; 68 };
73 69
74 } // namespace cc 70 } // namespace cc
75 71
76 #endif // CC_QUADS_RENDER_PASS_DRAW_QUAD_H_ 72 #endif // CC_QUADS_RENDER_PASS_DRAW_QUAD_H_
OLDNEW
« no previous file with comments | « cc/quads/render_pass.cc ('k') | cc/quads/render_pass_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698