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

Side by Side Diff: cc/quads/draw_quad.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/debug_border_draw_quad.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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 return IsLeftEdge() || IsTopEdge() || IsRightEdge() || IsBottomEdge(); 124 return IsLeftEdge() || IsTopEdge() || IsRightEdge() || IsBottomEdge();
125 } 125 }
126 126
127 scoped_ptr<base::Value> AsValue() const; 127 scoped_ptr<base::Value> AsValue() const;
128 128
129 protected: 129 protected:
130 DrawQuad(); 130 DrawQuad();
131 131
132 void SetAll(const SharedQuadState* shared_quad_state, 132 void SetAll(const SharedQuadState* shared_quad_state,
133 Material material, 133 Material material,
134 gfx::Rect rect, 134 const gfx::Rect& rect,
135 gfx::Rect opaque_rect, 135 const gfx::Rect& opaque_rect,
136 gfx::Rect visible_rect, 136 const gfx::Rect& visible_rect,
137 bool needs_blending); 137 bool needs_blending);
138 virtual void ExtendValue(base::DictionaryValue* value) const = 0; 138 virtual void ExtendValue(base::DictionaryValue* value) const = 0;
139 }; 139 };
140 140
141 } // namespace cc 141 } // namespace cc
142 142
143 #endif // CC_QUADS_DRAW_QUAD_H_ 143 #endif // CC_QUADS_DRAW_QUAD_H_
OLDNEW
« no previous file with comments | « cc/quads/debug_border_draw_quad.cc ('k') | cc/quads/draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698