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/debug/trace_event_argument.h" | 8 #include "base/debug/trace_event_argument.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "cc/base/math_util.h" | 10 #include "cc/base/math_util.h" |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 gfx::Size texture_size(tile_width, tile_height); | 255 gfx::Size texture_size(tile_width, tile_height); |
256 | 256 |
257 TileDrawQuad* quad = render_pass->CreateAndAppendDrawQuad<TileDrawQuad>(); | 257 TileDrawQuad* quad = render_pass->CreateAndAppendDrawQuad<TileDrawQuad>(); |
258 quad->SetNew(shared_quad_state, | 258 quad->SetNew(shared_quad_state, |
259 tile_rect, | 259 tile_rect, |
260 tile_opaque_rect, | 260 tile_opaque_rect, |
261 visible_tile_rect, | 261 visible_tile_rect, |
262 tile->resource_id(), | 262 tile->resource_id(), |
263 tex_coord_rect, | 263 tex_coord_rect, |
264 texture_size, | 264 texture_size, |
265 tile->contents_swizzled()); | 265 tile->contents_swizzled(), |
| 266 false); |
266 } | 267 } |
267 } | 268 } |
268 } | 269 } |
269 | 270 |
270 void TiledLayerImpl::SetTilingData(const LayerTilingData& tiler) { | 271 void TiledLayerImpl::SetTilingData(const LayerTilingData& tiler) { |
271 if (tiler_) { | 272 if (tiler_) { |
272 tiler_->reset(); | 273 tiler_->reset(); |
273 } else { | 274 } else { |
274 tiler_ = LayerTilingData::Create(tiler.tile_size(), | 275 tiler_ = LayerTilingData::Create(tiler.tile_size(), |
275 tiler.has_border_texels() | 276 tiler.has_border_texels() |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 | 308 |
308 void TiledLayerImpl::ReleaseResources() { | 309 void TiledLayerImpl::ReleaseResources() { |
309 tiler_->reset(); | 310 tiler_->reset(); |
310 } | 311 } |
311 | 312 |
312 const char* TiledLayerImpl::LayerTypeAsString() const { | 313 const char* TiledLayerImpl::LayerTypeAsString() const { |
313 return "cc::TiledLayerImpl"; | 314 return "cc::TiledLayerImpl"; |
314 } | 315 } |
315 | 316 |
316 } // namespace cc | 317 } // namespace cc |
OLD | NEW |