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

Side by Side Diff: cc/layers/tiled_layer_impl.cc

Issue 132683003: cc: Rename LayerImpl::DidLoseOutputSurface to ReleaseResources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/video_layer_impl.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 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
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
OLDNEW
« no previous file with comments | « cc/layers/tiled_layer_impl.h ('k') | cc/layers/video_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698