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

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

Issue 342483007: Removed ManagedMemoryStats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/test_context_support.cc ('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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 virtual void SetNeedsAnimateOnImplThread() = 0; 82 virtual void SetNeedsAnimateOnImplThread() = 0;
83 virtual void DidInitializeVisibleTileOnImplThread() = 0; 83 virtual void DidInitializeVisibleTileOnImplThread() = 0;
84 virtual void SetNeedsCommitOnImplThread() = 0; 84 virtual void SetNeedsCommitOnImplThread() = 0;
85 virtual void SetNeedsManageTilesOnImplThread() = 0; 85 virtual void SetNeedsManageTilesOnImplThread() = 0;
86 virtual void PostAnimationEventsToMainThreadOnImplThread( 86 virtual void PostAnimationEventsToMainThreadOnImplThread(
87 scoped_ptr<AnimationEventsVector> events) = 0; 87 scoped_ptr<AnimationEventsVector> events) = 0;
88 // Returns true if resources were deleted by this call. 88 // Returns true if resources were deleted by this call.
89 virtual bool ReduceContentsTextureMemoryOnImplThread( 89 virtual bool ReduceContentsTextureMemoryOnImplThread(
90 size_t limit_bytes, 90 size_t limit_bytes,
91 int priority_cutoff) = 0; 91 int priority_cutoff) = 0;
92 virtual void SendManagedMemoryStats() = 0;
93 virtual bool IsInsideDraw() = 0; 92 virtual bool IsInsideDraw() = 0;
94 virtual void RenewTreePriority() = 0; 93 virtual void RenewTreePriority() = 0;
95 virtual void PostDelayedScrollbarFadeOnImplThread( 94 virtual void PostDelayedScrollbarFadeOnImplThread(
96 const base::Closure& start_fade, 95 const base::Closure& start_fade,
97 base::TimeDelta delay) = 0; 96 base::TimeDelta delay) = 0;
98 virtual void DidActivatePendingTree() = 0; 97 virtual void DidActivatePendingTree() = 0;
99 virtual void DidManageTiles() = 0; 98 virtual void DidManageTiles() = 0;
100 99
101 protected: 100 protected:
102 virtual ~LayerTreeHostImplClient() {} 101 virtual ~LayerTreeHostImplClient() {}
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 float device_scale_factor() const { return device_scale_factor_; } 345 float device_scale_factor() const { return device_scale_factor_; }
347 346
348 const gfx::Transform& DrawTransform() const; 347 const gfx::Transform& DrawTransform() const;
349 348
350 scoped_ptr<ScrollAndScaleSet> ProcessScrollDeltas(); 349 scoped_ptr<ScrollAndScaleSet> ProcessScrollDeltas();
351 350
352 bool needs_animate_layers() const { 351 bool needs_animate_layers() const {
353 return !animation_registrar_->active_animation_controllers().empty(); 352 return !animation_registrar_->active_animation_controllers().empty();
354 } 353 }
355 354
356 void SendManagedMemoryStats(
357 size_t memory_visible_bytes,
358 size_t memory_visible_and_nearby_bytes,
359 size_t memory_use_bytes);
360
361 void set_max_memory_needed_bytes(size_t bytes) { 355 void set_max_memory_needed_bytes(size_t bytes) {
362 max_memory_needed_bytes_ = bytes; 356 max_memory_needed_bytes_ = bytes;
363 } 357 }
364 358
365 FrameRateCounter* fps_counter() { 359 FrameRateCounter* fps_counter() {
366 return fps_counter_.get(); 360 return fps_counter_.get();
367 } 361 }
368 PaintTimeCounter* paint_time_counter() { 362 PaintTimeCounter* paint_time_counter() {
369 return paint_time_counter_.get(); 363 return paint_time_counter_.get();
370 } 364 }
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 scoped_ptr<PaintTimeCounter> paint_time_counter_; 619 scoped_ptr<PaintTimeCounter> paint_time_counter_;
626 scoped_ptr<MemoryHistory> memory_history_; 620 scoped_ptr<MemoryHistory> memory_history_;
627 scoped_ptr<DebugRectHistory> debug_rect_history_; 621 scoped_ptr<DebugRectHistory> debug_rect_history_;
628 622
629 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; 623 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_;
630 624
631 // The maximum memory that would be used by the prioritized resource 625 // The maximum memory that would be used by the prioritized resource
632 // manager, if there were no limit on memory usage. 626 // manager, if there were no limit on memory usage.
633 size_t max_memory_needed_bytes_; 627 size_t max_memory_needed_bytes_;
634 628
635 size_t last_sent_memory_visible_bytes_;
636 size_t last_sent_memory_visible_and_nearby_bytes_;
637 size_t last_sent_memory_use_bytes_;
638 bool zero_budget_; 629 bool zero_budget_;
639 630
640 // Viewport size passed in from the main thread, in physical pixels. This 631 // Viewport size passed in from the main thread, in physical pixels. This
641 // value is the default size for all concepts of physical viewport (draw 632 // value is the default size for all concepts of physical viewport (draw
642 // viewport, scrolling viewport and device viewport), but it can be 633 // viewport, scrolling viewport and device viewport), but it can be
643 // overridden. 634 // overridden.
644 gfx::Size device_viewport_size_; 635 gfx::Size device_viewport_size_;
645 636
646 // Conversion factor from CSS pixels to physical pixels when 637 // Conversion factor from CSS pixels to physical pixels when
647 // pageScaleFactor=1. 638 // pageScaleFactor=1.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 size_t transfer_buffer_memory_limit_; 686 size_t transfer_buffer_memory_limit_;
696 687
697 std::vector<PictureLayerImpl*> picture_layers_; 688 std::vector<PictureLayerImpl*> picture_layers_;
698 689
699 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 690 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
700 }; 691 };
701 692
702 } // namespace cc 693 } // namespace cc
703 694
704 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 695 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/test_context_support.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698