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

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

Issue 400533006: Revert "Implement scroll handler latency tracking" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « cc/trees/layer_tree_host_common.h ('k') | cc/trees/layer_tree_host_impl.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 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 <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 LayerImpl* InnerViewportScrollLayer() const; 310 LayerImpl* InnerViewportScrollLayer() const;
311 LayerImpl* OuterViewportScrollLayer() const; 311 LayerImpl* OuterViewportScrollLayer() const;
312 LayerImpl* CurrentlyScrollingLayer() const; 312 LayerImpl* CurrentlyScrollingLayer() const;
313 313
314 int scroll_layer_id_when_mouse_over_scrollbar() const { 314 int scroll_layer_id_when_mouse_over_scrollbar() const {
315 return scroll_layer_id_when_mouse_over_scrollbar_; 315 return scroll_layer_id_when_mouse_over_scrollbar_;
316 } 316 }
317 bool scroll_affects_scroll_handler() const { 317 bool scroll_affects_scroll_handler() const {
318 return scroll_affects_scroll_handler_; 318 return scroll_affects_scroll_handler_;
319 } 319 }
320 void QueueSwapPromiseForMainThreadScrollUpdate(
321 scoped_ptr<SwapPromise> swap_promise);
322 320
323 bool IsCurrentlyScrolling() const; 321 bool IsCurrentlyScrolling() const;
324 322
325 virtual void SetVisible(bool visible); 323 virtual void SetVisible(bool visible);
326 bool visible() const { return visible_; } 324 bool visible() const { return visible_; }
327 325
328 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } 326 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); }
329 void SetNeedsRedraw(); 327 void SetNeedsRedraw();
330 328
331 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; 329 ManagedMemoryPolicy ActualManagedMemoryPolicy() const;
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 void StartScrollbarFadeRecursive(LayerImpl* layer); 543 void StartScrollbarFadeRecursive(LayerImpl* layer);
546 void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy, 544 void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy,
547 bool zero_budget); 545 bool zero_budget);
548 void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy); 546 void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy);
549 547
550 void DidInitializeVisibleTile(); 548 void DidInitializeVisibleTile();
551 549
552 void MarkUIResourceNotEvicted(UIResourceId uid); 550 void MarkUIResourceNotEvicted(UIResourceId uid);
553 551
554 void NotifySwapPromiseMonitorsOfSetNeedsRedraw(); 552 void NotifySwapPromiseMonitorsOfSetNeedsRedraw();
555 void NotifySwapPromiseMonitorsOfForwardingToMainThread();
556 void BreakSwapPromisesForMainThreadScrollUpdate(
557 SwapPromise::DidNotSwapReason reason);
558 553
559 typedef base::hash_map<UIResourceId, UIResourceData> 554 typedef base::hash_map<UIResourceId, UIResourceData>
560 UIResourceMap; 555 UIResourceMap;
561 UIResourceMap ui_resource_map_; 556 UIResourceMap ui_resource_map_;
562 557
563 // Resources that were evicted by EvictAllUIResources. Resources are removed 558 // Resources that were evicted by EvictAllUIResources. Resources are removed
564 // from this when they are touched by a create or destroy from the UI resource 559 // from this when they are touched by a create or destroy from the UI resource
565 // request queue. 560 // request queue.
566 std::set<UIResourceId> evicted_ui_resources_; 561 std::set<UIResourceId> evicted_ui_resources_;
567 562
(...skipping 26 matching lines...) Expand all
594 // In impl-side painting mode, inert tree with layers that can be recycled 589 // In impl-side painting mode, inert tree with layers that can be recycled
595 // by the next sync from the main thread. 590 // by the next sync from the main thread.
596 scoped_ptr<LayerTreeImpl> recycle_tree_; 591 scoped_ptr<LayerTreeImpl> recycle_tree_;
597 592
598 InputHandlerClient* input_handler_client_; 593 InputHandlerClient* input_handler_client_;
599 bool did_lock_scrolling_layer_; 594 bool did_lock_scrolling_layer_;
600 bool should_bubble_scrolls_; 595 bool should_bubble_scrolls_;
601 bool wheel_scrolling_; 596 bool wheel_scrolling_;
602 bool scroll_affects_scroll_handler_; 597 bool scroll_affects_scroll_handler_;
603 int scroll_layer_id_when_mouse_over_scrollbar_; 598 int scroll_layer_id_when_mouse_over_scrollbar_;
604 ScopedPtrVector<SwapPromise> swap_promises_for_main_thread_scroll_update_;
605 599
606 bool tile_priorities_dirty_; 600 bool tile_priorities_dirty_;
607 601
608 // The optional delegate for the root layer scroll offset. 602 // The optional delegate for the root layer scroll offset.
609 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; 603 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_;
610 LayerTreeSettings settings_; 604 LayerTreeSettings settings_;
611 LayerTreeDebugState debug_state_; 605 LayerTreeDebugState debug_state_;
612 bool visible_; 606 bool visible_;
613 ManagedMemoryPolicy cached_managed_memory_policy_; 607 ManagedMemoryPolicy cached_managed_memory_policy_;
614 608
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 size_t transfer_buffer_memory_limit_; 690 size_t transfer_buffer_memory_limit_;
697 691
698 std::vector<PictureLayerImpl*> picture_layers_; 692 std::vector<PictureLayerImpl*> picture_layers_;
699 693
700 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 694 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
701 }; 695 };
702 696
703 } // namespace cc 697 } // namespace cc
704 698
705 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 699 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698