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

Side by Side Diff: cc/resources/picture_pile.cc

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/resources/picture_pile.h ('k') | cc/resources/picture_pile_base.h » ('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 #include "cc/resources/picture_pile.h" 5 #include "cc/resources/picture_pile.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 } 144 }
145 145
146 PicturePile::~PicturePile() { 146 PicturePile::~PicturePile() {
147 } 147 }
148 148
149 bool PicturePile::Update( 149 bool PicturePile::Update(
150 ContentLayerClient* painter, 150 ContentLayerClient* painter,
151 SkColor background_color, 151 SkColor background_color,
152 bool contents_opaque, 152 bool contents_opaque,
153 const Region& invalidation, 153 const Region& invalidation,
154 gfx::Rect visible_layer_rect, 154 const gfx::Rect& visible_layer_rect,
155 int frame_number, 155 int frame_number,
156 RenderingStatsInstrumentation* stats_instrumentation) { 156 RenderingStatsInstrumentation* stats_instrumentation) {
157 background_color_ = background_color; 157 background_color_ = background_color;
158 contents_opaque_ = contents_opaque; 158 contents_opaque_ = contents_opaque;
159 159
160 gfx::Rect interest_rect = visible_layer_rect; 160 gfx::Rect interest_rect = visible_layer_rect;
161 interest_rect.Inset( 161 interest_rect.Inset(
162 -kPixelDistanceToRecord, 162 -kPixelDistanceToRecord,
163 -kPixelDistanceToRecord, 163 -kPixelDistanceToRecord,
164 -kPixelDistanceToRecord, 164 -kPixelDistanceToRecord,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 info.SetPicture(picture); 246 info.SetPicture(picture);
247 } 247 }
248 } 248 }
249 } 249 }
250 250
251 UpdateRecordedRegion(); 251 UpdateRecordedRegion();
252 return true; 252 return true;
253 } 253 }
254 254
255 } // namespace cc 255 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/picture_pile.h ('k') | cc/resources/picture_pile_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698