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

Side by Side Diff: cc/layers/tiled_layer_impl.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/layers/tiled_layer_impl.h ('k') | cc/layers/tiled_layer_impl_unittest.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 #include "cc/layers/tiled_layer_impl.h" 5 #include "cc/layers/tiled_layer_impl.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "cc/base/math_util.h" 9 #include "cc/base/math_util.h"
10 #include "cc/debug/debug_colors.h" 10 #include "cc/debug/debug_colors.h"
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 ? LayerTilingData::HAS_BORDER_TEXELS 256 ? LayerTilingData::HAS_BORDER_TEXELS
257 : LayerTilingData::NO_BORDER_TEXELS); 257 : LayerTilingData::NO_BORDER_TEXELS);
258 } 258 }
259 *tiler_ = tiler; 259 *tiler_ = tiler;
260 } 260 }
261 261
262 void TiledLayerImpl::PushTileProperties( 262 void TiledLayerImpl::PushTileProperties(
263 int i, 263 int i,
264 int j, 264 int j,
265 ResourceProvider::ResourceId resource_id, 265 ResourceProvider::ResourceId resource_id,
266 gfx::Rect opaque_rect, 266 const gfx::Rect& opaque_rect,
267 bool contents_swizzled) { 267 bool contents_swizzled) {
268 DrawableTile* tile = TileAt(i, j); 268 DrawableTile* tile = TileAt(i, j);
269 if (!tile) 269 if (!tile)
270 tile = CreateTile(i, j); 270 tile = CreateTile(i, j);
271 tile->set_resource_id(resource_id); 271 tile->set_resource_id(resource_id);
272 tile->set_opaque_rect(opaque_rect); 272 tile->set_opaque_rect(opaque_rect);
273 tile->set_contents_swizzled(contents_swizzled); 273 tile->set_contents_swizzled(contents_swizzled);
274 } 274 }
275 275
276 void TiledLayerImpl::PushInvalidTile(int i, int j) { 276 void TiledLayerImpl::PushInvalidTile(int i, int j) {
(...skipping 15 matching lines...) Expand all
292 292
293 void TiledLayerImpl::DidLoseOutputSurface() { 293 void TiledLayerImpl::DidLoseOutputSurface() {
294 tiler_->reset(); 294 tiler_->reset();
295 } 295 }
296 296
297 const char* TiledLayerImpl::LayerTypeAsString() const { 297 const char* TiledLayerImpl::LayerTypeAsString() const {
298 return "cc::TiledLayerImpl"; 298 return "cc::TiledLayerImpl";
299 } 299 }
300 300
301 } // namespace cc 301 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/tiled_layer_impl.h ('k') | cc/layers/tiled_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698