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

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

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Re-add feature flag Created 3 years, 5 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 <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 1231
1232 if (hud_layer_.get()) { 1232 if (hud_layer_.get()) {
1233 LayerImpl* hud_impl = tree_impl->LayerById(hud_layer_->id()); 1233 LayerImpl* hud_impl = tree_impl->LayerById(hud_layer_->id());
1234 tree_impl->set_hud_layer(static_cast<HeadsUpDisplayLayerImpl*>(hud_impl)); 1234 tree_impl->set_hud_layer(static_cast<HeadsUpDisplayLayerImpl*>(hud_impl));
1235 } else { 1235 } else {
1236 tree_impl->set_hud_layer(nullptr); 1236 tree_impl->set_hud_layer(nullptr);
1237 } 1237 }
1238 1238
1239 tree_impl->set_background_color(background_color_); 1239 tree_impl->set_background_color(background_color_);
1240 tree_impl->set_has_transparent_background(has_transparent_background_); 1240 tree_impl->set_has_transparent_background(has_transparent_background_);
1241 tree_impl->set_is_fullscreen(is_fullscreen_);
1241 tree_impl->set_have_scroll_event_handlers(have_scroll_event_handlers_); 1242 tree_impl->set_have_scroll_event_handlers(have_scroll_event_handlers_);
1242 tree_impl->set_event_listener_properties( 1243 tree_impl->set_event_listener_properties(
1243 EventListenerClass::kTouchStartOrMove, 1244 EventListenerClass::kTouchStartOrMove,
1244 event_listener_properties(EventListenerClass::kTouchStartOrMove)); 1245 event_listener_properties(EventListenerClass::kTouchStartOrMove));
1245 tree_impl->set_event_listener_properties( 1246 tree_impl->set_event_listener_properties(
1246 EventListenerClass::kMouseWheel, 1247 EventListenerClass::kMouseWheel,
1247 event_listener_properties(EventListenerClass::kMouseWheel)); 1248 event_listener_properties(EventListenerClass::kMouseWheel));
1248 tree_impl->set_event_listener_properties( 1249 tree_impl->set_event_listener_properties(
1249 EventListenerClass::kTouchEndOrCancel, 1250 EventListenerClass::kTouchEndOrCancel,
1250 event_listener_properties(EventListenerClass::kTouchEndOrCancel)); 1251 event_listener_properties(EventListenerClass::kTouchEndOrCancel));
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
1503 1504
1504 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) { 1505 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) {
1505 has_copy_request_ = has_copy_request; 1506 has_copy_request_ = has_copy_request;
1506 } 1507 }
1507 1508
1508 void LayerTreeHost::RequestBeginMainFrameNotExpected(bool new_state) { 1509 void LayerTreeHost::RequestBeginMainFrameNotExpected(bool new_state) {
1509 proxy_->RequestBeginMainFrameNotExpected(new_state); 1510 proxy_->RequestBeginMainFrameNotExpected(new_state);
1510 } 1511 }
1511 1512
1512 } // namespace cc 1513 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698