OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |