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

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

Issue 900063002: Fixes for two different HUD issues related to win32k lockdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: i am a plumber Created 5 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
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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl); 377 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl);
378 } 378 }
379 379
380 void LayerTreeHost::WillCommit() { 380 void LayerTreeHost::WillCommit() {
381 client_->WillCommit(); 381 client_->WillCommit();
382 } 382 }
383 383
384 void LayerTreeHost::UpdateHudLayer() { 384 void LayerTreeHost::UpdateHudLayer() {
385 if (debug_state_.ShowHudInfo()) { 385 if (debug_state_.ShowHudInfo()) {
386 if (!hud_layer_.get()) 386 if (!hud_layer_.get())
387 hud_layer_ = HeadsUpDisplayLayer::Create(); 387 hud_layer_ = HeadsUpDisplayLayer::Create(client_->GetHudTypeface());
388 388
389 if (root_layer_.get() && !hud_layer_->parent()) 389 if (root_layer_.get() && !hud_layer_->parent())
390 root_layer_->AddChild(hud_layer_); 390 root_layer_->AddChild(hud_layer_);
391 } else if (hud_layer_.get()) { 391 } else if (hud_layer_.get()) {
392 hud_layer_->RemoveFromParent(); 392 hud_layer_->RemoveFromParent();
393 hud_layer_ = NULL; 393 hud_layer_ = NULL;
394 } 394 }
395 } 395 }
396 396
397 void LayerTreeHost::CommitComplete() { 397 void LayerTreeHost::CommitComplete() {
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 bool children_need_begin_frames) const { 1370 bool children_need_begin_frames) const {
1371 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames); 1371 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames);
1372 } 1372 }
1373 1373
1374 void LayerTreeHost::SendBeginFramesToChildren( 1374 void LayerTreeHost::SendBeginFramesToChildren(
1375 const BeginFrameArgs& args) const { 1375 const BeginFrameArgs& args) const {
1376 client_->SendBeginFramesToChildren(args); 1376 client_->SendBeginFramesToChildren(args);
1377 } 1377 }
1378 1378
1379 } // namespace cc 1379 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698