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

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

Issue 2717553005: cc: Glue LTHI and Scheduler changes for checker-imaging. (Closed)
Patch Set: Created 3 years, 9 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
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_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 resourceless_software_draw_(false), 253 resourceless_software_draw_(false),
254 mutator_host_(std::move(mutator_host)), 254 mutator_host_(std::move(mutator_host)),
255 rendering_stats_instrumentation_(rendering_stats_instrumentation), 255 rendering_stats_instrumentation_(rendering_stats_instrumentation),
256 micro_benchmark_controller_(this), 256 micro_benchmark_controller_(this),
257 task_graph_runner_(task_graph_runner), 257 task_graph_runner_(task_graph_runner),
258 id_(id), 258 id_(id),
259 requires_high_res_to_draw_(false), 259 requires_high_res_to_draw_(false),
260 is_likely_to_require_a_draw_(false), 260 is_likely_to_require_a_draw_(false),
261 has_valid_compositor_frame_sink_(false), 261 has_valid_compositor_frame_sink_(false),
262 mutator_(nullptr) { 262 mutator_(nullptr) {
263 DCHECK(!is_synchronous_single_threaded_ || !settings_.enable_checker_imaging);
enne (OOO) 2017/02/24 20:43:57 Maybe move this to single thread proxy?
Khushal 2017/02/24 23:19:40 Done.
264
263 DCHECK(mutator_host_); 265 DCHECK(mutator_host_);
264 mutator_host_->SetMutatorHostClient(this); 266 mutator_host_->SetMutatorHostClient(this);
265 267
266 DCHECK(task_runner_provider_->IsImplThread()); 268 DCHECK(task_runner_provider_->IsImplThread());
267 DidVisibilityChange(this, visible_); 269 DidVisibilityChange(this, visible_);
268 270
269 SetDebugState(settings.initial_debug_state); 271 SetDebugState(settings.initial_debug_state);
270 272
271 // LTHI always has an active tree. 273 // LTHI always has an active tree.
272 active_tree_ = base::MakeUnique<LayerTreeImpl>( 274 active_tree_ = base::MakeUnique<LayerTreeImpl>(
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 } 1210 }
1209 1211
1210 void LayerTreeHostImpl::EvictTexturesForTesting() { 1212 void LayerTreeHostImpl::EvictTexturesForTesting() {
1211 UpdateTileManagerMemoryPolicy(ManagedMemoryPolicy(0)); 1213 UpdateTileManagerMemoryPolicy(ManagedMemoryPolicy(0));
1212 } 1214 }
1213 1215
1214 void LayerTreeHostImpl::BlockNotifyReadyToActivateForTesting(bool block) { 1216 void LayerTreeHostImpl::BlockNotifyReadyToActivateForTesting(bool block) {
1215 NOTREACHED(); 1217 NOTREACHED();
1216 } 1218 }
1217 1219
1220 void LayerTreeHostImpl::BlockImplSideInvalidationRequestsForTesting(
1221 bool block) {
1222 NOTREACHED();
1223 }
1224
1218 void LayerTreeHostImpl::ResetTreesForTesting() { 1225 void LayerTreeHostImpl::ResetTreesForTesting() {
1219 if (active_tree_) 1226 if (active_tree_)
1220 active_tree_->DetachLayers(); 1227 active_tree_->DetachLayers();
1221 active_tree_ = 1228 active_tree_ =
1222 base::MakeUnique<LayerTreeImpl>(this, active_tree()->page_scale_factor(), 1229 base::MakeUnique<LayerTreeImpl>(this, active_tree()->page_scale_factor(),
1223 active_tree()->top_controls_shown_ratio(), 1230 active_tree()->top_controls_shown_ratio(),
1224 active_tree()->elastic_overscroll()); 1231 active_tree()->elastic_overscroll());
1225 active_tree_->property_trees()->is_active = true; 1232 active_tree_->property_trees()->is_active = true;
1226 if (pending_tree_) 1233 if (pending_tree_)
1227 pending_tree_->DetachLayers(); 1234 pending_tree_->DetachLayers();
(...skipping 2910 matching lines...) Expand 10 before | Expand all | Expand 10 after
4138 worker_context_visibility_ = 4145 worker_context_visibility_ =
4139 worker_context->CacheController()->ClientBecameVisible(); 4146 worker_context->CacheController()->ClientBecameVisible();
4140 } else { 4147 } else {
4141 worker_context->CacheController()->ClientBecameNotVisible( 4148 worker_context->CacheController()->ClientBecameNotVisible(
4142 std::move(worker_context_visibility_)); 4149 std::move(worker_context_visibility_));
4143 } 4150 }
4144 } 4151 }
4145 } 4152 }
4146 4153
4147 } // namespace cc 4154 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698