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

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

Issue 93663004: [#2] Pass gfx structs by const ref (gfx::Rect, gfx::RectF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT, fix builds on non-linux platforms! Created 6 years, 11 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/picture_draw_quad.cc ('k') | cc/quads/render_pass.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_H_ 5 #ifndef CC_QUADS_RENDER_PASS_H_
6 #define CC_QUADS_RENDER_PASS_H_ 6 #define CC_QUADS_RENDER_PASS_H_
7 7
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // A shallow copy of the render pass, which does not include its quads or copy 70 // A shallow copy of the render pass, which does not include its quads or copy
71 // requests. 71 // requests.
72 scoped_ptr<RenderPass> Copy(Id new_id) const; 72 scoped_ptr<RenderPass> Copy(Id new_id) const;
73 73
74 // A deep copy of the render passes in the list including the quads. 74 // A deep copy of the render passes in the list including the quads.
75 static void CopyAll(const ScopedPtrVector<RenderPass>& in, 75 static void CopyAll(const ScopedPtrVector<RenderPass>& in,
76 ScopedPtrVector<RenderPass>* out); 76 ScopedPtrVector<RenderPass>* out);
77 77
78 void SetNew(Id id, 78 void SetNew(Id id,
79 gfx::Rect output_rect, 79 const gfx::Rect& output_rect,
80 gfx::RectF damage_rect, 80 const gfx::RectF& damage_rect,
81 const gfx::Transform& transform_to_root_target); 81 const gfx::Transform& transform_to_root_target);
82 82
83 void SetAll(Id id, 83 void SetAll(Id id,
84 gfx::Rect output_rect, 84 const gfx::Rect& output_rect,
85 gfx::RectF damage_rect, 85 const gfx::RectF& damage_rect,
86 const gfx::Transform& transform_to_root_target, 86 const gfx::Transform& transform_to_root_target,
87 bool has_transparent_background); 87 bool has_transparent_background);
88 88
89 scoped_ptr<base::Value> AsValue() const; 89 scoped_ptr<base::Value> AsValue() const;
90 90
91 // Uniquely identifies the render pass in the compositor's current frame. 91 // Uniquely identifies the render pass in the compositor's current frame.
92 Id id; 92 Id id;
93 93
94 // These are in the space of the render pass' physical pixels. 94 // These are in the space of the render pass' physical pixels.
95 gfx::Rect output_rect; 95 gfx::Rect output_rect;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 #error define a hash function for your compiler 137 #error define a hash function for your compiler
138 #endif // COMPILER 138 #endif // COMPILER
139 } // namespace BASE_HASH_NAMESPACE 139 } // namespace BASE_HASH_NAMESPACE
140 140
141 namespace cc { 141 namespace cc {
142 typedef ScopedPtrVector<RenderPass> RenderPassList; 142 typedef ScopedPtrVector<RenderPass> RenderPassList;
143 typedef base::hash_map<RenderPass::Id, RenderPass*> RenderPassIdHashMap; 143 typedef base::hash_map<RenderPass::Id, RenderPass*> RenderPassIdHashMap;
144 } // namespace cc 144 } // namespace cc
145 145
146 #endif // CC_QUADS_RENDER_PASS_H_ 146 #endif // CC_QUADS_RENDER_PASS_H_
OLDNEW
« no previous file with comments | « cc/quads/picture_draw_quad.cc ('k') | cc/quads/render_pass.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698