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

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

Issue 1946403003: Add fixed raster scale use counter histograms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+fix Created 4 years, 7 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/trees/proxy_common.cc ('k') | cc/trees/proxy_main.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/proxy_impl.h" 5 #include "cc/trees/proxy_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 begin_main_frame_state->begin_frame_id = begin_frame_id; 496 begin_main_frame_state->begin_frame_id = begin_frame_id;
497 begin_main_frame_state->begin_frame_args = args; 497 begin_main_frame_state->begin_frame_args = args;
498 begin_main_frame_state->begin_frame_callbacks = 498 begin_main_frame_state->begin_frame_callbacks =
499 layer_tree_host_impl_->ProcessLayerTreeMutations(); 499 layer_tree_host_impl_->ProcessLayerTreeMutations();
500 begin_main_frame_state->scroll_info = 500 begin_main_frame_state->scroll_info =
501 layer_tree_host_impl_->ProcessScrollDeltas(); 501 layer_tree_host_impl_->ProcessScrollDeltas();
502 begin_main_frame_state->memory_allocation_limit_bytes = 502 begin_main_frame_state->memory_allocation_limit_bytes =
503 layer_tree_host_impl_->memory_allocation_limit_bytes(); 503 layer_tree_host_impl_->memory_allocation_limit_bytes();
504 begin_main_frame_state->evicted_ui_resources = 504 begin_main_frame_state->evicted_ui_resources =
505 layer_tree_host_impl_->EvictedUIResourcesExist(); 505 layer_tree_host_impl_->EvictedUIResourcesExist();
506 begin_main_frame_state->has_fixed_raster_scale_blurry_content =
507 layer_tree_host_impl_->has_fixed_raster_scale_blurry_content();
508 begin_main_frame_state
509 ->has_fixed_raster_scale_potential_performance_regression =
510 layer_tree_host_impl_
511 ->HasFixedRasterScalePotentialPerformanceRegression();
506 channel_impl_->BeginMainFrame(std::move(begin_main_frame_state)); 512 channel_impl_->BeginMainFrame(std::move(begin_main_frame_state));
507 devtools_instrumentation::DidRequestMainThreadFrame(layer_tree_host_id_); 513 devtools_instrumentation::DidRequestMainThreadFrame(layer_tree_host_id_);
508 } 514 }
509 515
510 DrawResult ProxyImpl::ScheduledActionDrawAndSwapIfPossible() { 516 DrawResult ProxyImpl::ScheduledActionDrawAndSwapIfPossible() {
511 TRACE_EVENT0("cc", "ProxyImpl::ScheduledActionDrawAndSwap"); 517 TRACE_EVENT0("cc", "ProxyImpl::ScheduledActionDrawAndSwap");
512 DCHECK(IsImplThread()); 518 DCHECK(IsImplThread());
513 519
514 // SchedulerStateMachine::DidDrawIfPossibleCompleted isn't set up to 520 // SchedulerStateMachine::DidDrawIfPossibleCompleted isn't set up to
515 // handle DRAW_ABORTED_CANT_DRAW. Moreover, the scheduler should 521 // handle DRAW_ABORTED_CANT_DRAW. Moreover, the scheduler should
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 bool ProxyImpl::IsMainThreadBlocked() const { 667 bool ProxyImpl::IsMainThreadBlocked() const {
662 return task_runner_provider_->IsMainThreadBlocked(); 668 return task_runner_provider_->IsMainThreadBlocked();
663 } 669 }
664 670
665 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { 671 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() {
666 DCHECK(IsMainThreadBlocked() && commit_completion_event_); 672 DCHECK(IsMainThreadBlocked() && commit_completion_event_);
667 return main_thread_blocked_commit_vars_unsafe_; 673 return main_thread_blocked_commit_vars_unsafe_;
668 } 674 }
669 675
670 } // namespace cc 676 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/proxy_common.cc ('k') | cc/trees/proxy_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698