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

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

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Show a black frame during fullscreen transitions to hide jank Created 3 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
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 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <bitset> 10 #include <bitset>
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 return scroll_affects_scroll_handler_; 441 return scroll_affects_scroll_handler_;
442 } 442 }
443 void QueueSwapPromiseForMainThreadScrollUpdate( 443 void QueueSwapPromiseForMainThreadScrollUpdate(
444 std::unique_ptr<SwapPromise> swap_promise); 444 std::unique_ptr<SwapPromise> swap_promise);
445 445
446 bool IsActivelyScrolling() const; 446 bool IsActivelyScrolling() const;
447 447
448 virtual void SetVisible(bool visible); 448 virtual void SetVisible(bool visible);
449 bool visible() const { return visible_; } 449 bool visible() const { return visible_; }
450 450
451 virtual void SetIsFullscreen(bool is_fullscreen);
452
451 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } 453 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); }
452 void SetNeedsOneBeginImplFrame(); 454 void SetNeedsOneBeginImplFrame();
453 void SetNeedsRedraw(); 455 void SetNeedsRedraw();
454 456
455 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; 457 ManagedMemoryPolicy ActualManagedMemoryPolicy() const;
456 458
457 void SetViewportSize(const gfx::Size& device_viewport_size); 459 void SetViewportSize(const gfx::Size& device_viewport_size);
458 gfx::Size device_viewport_size() const { return device_viewport_size_; } 460 gfx::Size device_viewport_size() const { return device_viewport_size_; }
459 461
460 const gfx::Transform& DrawTransform() const; 462 const gfx::Transform& DrawTransform() const;
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 770
769 // An object to implement the ScrollElasticityHelper interface and 771 // An object to implement the ScrollElasticityHelper interface and
770 // hold all state related to elasticity. May be NULL if never requested. 772 // hold all state related to elasticity. May be NULL if never requested.
771 std::unique_ptr<ScrollElasticityHelper> scroll_elasticity_helper_; 773 std::unique_ptr<ScrollElasticityHelper> scroll_elasticity_helper_;
772 774
773 bool tile_priorities_dirty_; 775 bool tile_priorities_dirty_;
774 776
775 const LayerTreeSettings settings_; 777 const LayerTreeSettings settings_;
776 LayerTreeDebugState debug_state_; 778 LayerTreeDebugState debug_state_;
777 bool visible_; 779 bool visible_;
780 bool is_fullscreen_ = false;
778 ManagedMemoryPolicy cached_managed_memory_policy_; 781 ManagedMemoryPolicy cached_managed_memory_policy_;
779 782
780 const bool is_synchronous_single_threaded_; 783 const bool is_synchronous_single_threaded_;
781 TileManager tile_manager_; 784 TileManager tile_manager_;
782 DecodedImageTracker decoded_image_tracker_; 785 DecodedImageTracker decoded_image_tracker_;
783 786
784 gfx::Vector2dF accumulated_root_overscroll_; 787 gfx::Vector2dF accumulated_root_overscroll_;
785 788
786 bool pinch_gesture_active_; 789 bool pinch_gesture_active_;
787 bool pinch_gesture_end_should_clear_scrolling_node_; 790 bool pinch_gesture_end_should_clear_scrolling_node_;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 bool touchpad_and_wheel_scroll_latching_enabled_; 875 bool touchpad_and_wheel_scroll_latching_enabled_;
873 876
874 ImplThreadPhase impl_thread_phase_; 877 ImplThreadPhase impl_thread_phase_;
875 878
876 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 879 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
877 }; 880 };
878 881
879 } // namespace cc 882 } // namespace cc
880 883
881 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 884 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | cc/trees/proxy.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698