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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 } | 283 } |
284 | 284 |
285 Region TiledLayerImpl::VisibleContentOpaqueRegion() const { | 285 Region TiledLayerImpl::VisibleContentOpaqueRegion() const { |
286 if (skips_draw_) | 286 if (skips_draw_) |
287 return Region(); | 287 return Region(); |
288 if (contents_opaque()) | 288 if (contents_opaque()) |
289 return visible_content_rect(); | 289 return visible_content_rect(); |
290 return tiler_->OpaqueRegionInContentRect(visible_content_rect()); | 290 return tiler_->OpaqueRegionInContentRect(visible_content_rect()); |
291 } | 291 } |
292 | 292 |
293 void TiledLayerImpl::DidLoseOutputSurface() { | 293 void TiledLayerImpl::ReleaseResources() { |
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 |