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

Side by Side Diff: cc/layers/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/layer_impl.h ('k') | cc/layers/picture_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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/layer_impl.h" 5 #include "cc/layers/layer_impl.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "cc/animation/animation_registrar.h" 10 #include "cc/animation/animation_registrar.h"
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 } 1118 }
1119 1119
1120 Region LayerImpl::VisibleContentOpaqueRegion() const { 1120 Region LayerImpl::VisibleContentOpaqueRegion() const {
1121 if (contents_opaque()) 1121 if (contents_opaque())
1122 return visible_content_rect(); 1122 return visible_content_rect();
1123 return Region(); 1123 return Region();
1124 } 1124 }
1125 1125
1126 void LayerImpl::DidBeginTracing() {} 1126 void LayerImpl::DidBeginTracing() {}
1127 1127
1128 void LayerImpl::DidLoseOutputSurface() {} 1128 void LayerImpl::ReleaseResources() {}
1129 1129
1130 void LayerImpl::SetMaxScrollOffset(gfx::Vector2d max_scroll_offset) { 1130 void LayerImpl::SetMaxScrollOffset(gfx::Vector2d max_scroll_offset) {
1131 if (max_scroll_offset_ == max_scroll_offset) 1131 if (max_scroll_offset_ == max_scroll_offset)
1132 return; 1132 return;
1133 max_scroll_offset_ = max_scroll_offset; 1133 max_scroll_offset_ = max_scroll_offset;
1134 1134
1135 if (scroll_offset_delegate_) 1135 if (scroll_offset_delegate_)
1136 scroll_offset_delegate_->SetMaxScrollOffset(max_scroll_offset_); 1136 scroll_offset_delegate_->SetMaxScrollOffset(max_scroll_offset_);
1137 1137
1138 layer_tree_impl()->set_needs_update_draw_properties(); 1138 layer_tree_impl()->set_needs_update_draw_properties();
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
1414 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); 1414 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue());
1415 AsValueInto(state.get()); 1415 AsValueInto(state.get());
1416 return state.PassAs<base::Value>(); 1416 return state.PassAs<base::Value>();
1417 } 1417 }
1418 1418
1419 void LayerImpl::RunMicroBenchmark(MicroBenchmarkImpl* benchmark) { 1419 void LayerImpl::RunMicroBenchmark(MicroBenchmarkImpl* benchmark) {
1420 benchmark->RunOnLayer(this); 1420 benchmark->RunOnLayer(this);
1421 } 1421 }
1422 1422
1423 } // namespace cc 1423 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/picture_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698