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

Side by Side Diff: cc/trees/layer_tree_host.cc

Issue 144463016: cc: add more devtools instrumentation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: capitalized instrumentation functions name Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('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/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <stack> 8 #include <stack>
9 #include <string> 9 #include <string>
10 10
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 403
404 if (new_impl_tree_has_no_evicted_resources) { 404 if (new_impl_tree_has_no_evicted_resources) {
405 if (sync_tree->ContentsTexturesPurged()) 405 if (sync_tree->ContentsTexturesPurged())
406 sync_tree->ResetContentsTexturesPurged(); 406 sync_tree->ResetContentsTexturesPurged();
407 } 407 }
408 408
409 if (!settings_.impl_side_painting) { 409 if (!settings_.impl_side_painting) {
410 // If we're not in impl-side painting, the tree is immediately 410 // If we're not in impl-side painting, the tree is immediately
411 // considered active. 411 // considered active.
412 sync_tree->DidBecomeActive(); 412 sync_tree->DidBecomeActive();
413 devtools_instrumentation::didActivateLayerTree(id_, source_frame_number_); 413 devtools_instrumentation::DidActivateLayerTree(id_, source_frame_number_);
414 } 414 }
415 415
416 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl); 416 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl);
417 417
418 source_frame_number_++; 418 source_frame_number_++;
419 } 419 }
420 420
421 void LayerTreeHost::WillCommit() { 421 void LayerTreeHost::WillCommit() {
422 client_->WillCommit(); 422 client_->WillCommit();
423 } 423 }
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
1320 swap_promise_list_.push_back(swap_promise.Pass()); 1320 swap_promise_list_.push_back(swap_promise.Pass());
1321 } 1321 }
1322 1322
1323 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) { 1323 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) {
1324 for (size_t i = 0; i < swap_promise_list_.size(); i++) 1324 for (size_t i = 0; i < swap_promise_list_.size(); i++)
1325 swap_promise_list_[i]->DidNotSwap(reason); 1325 swap_promise_list_[i]->DidNotSwap(reason);
1326 swap_promise_list_.clear(); 1326 swap_promise_list_.clear();
1327 } 1327 }
1328 1328
1329 } // namespace cc 1329 } // namespace cc
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698