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

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

Issue 2468023002: Don't free non-tile resources on GPU rasterization toggle (Closed)
Patch Set: fix unittest Created 4 years, 1 month 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/test/fake_picture_layer_impl.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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <bitset> 10 #include <bitset>
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 private: 626 private:
627 gfx::Vector2dF ScrollNodeWithViewportSpaceDelta( 627 gfx::Vector2dF ScrollNodeWithViewportSpaceDelta(
628 ScrollNode* scroll_node, 628 ScrollNode* scroll_node,
629 const gfx::PointF& viewport_point, 629 const gfx::PointF& viewport_point,
630 const gfx::Vector2dF& viewport_delta, 630 const gfx::Vector2dF& viewport_delta,
631 ScrollTree* scroll_tree); 631 ScrollTree* scroll_tree);
632 632
633 void CleanUpTileManagerAndUIResources(); 633 void CleanUpTileManagerAndUIResources();
634 void CreateTileManagerResources(); 634 void CreateTileManagerResources();
635 void ReleaseTreeResources(); 635 void ReleaseTreeResources();
636 void RecreateTreeResources(); 636 void ReleaseTileResources();
637 void RecreateTileResources();
637 638
638 void AnimateInternal(bool active_tree); 639 void AnimateInternal(bool active_tree);
639 640
640 // Returns true if status changed. 641 // Returns true if status changed.
641 bool UpdateGpuRasterizationStatus(); 642 bool UpdateGpuRasterizationStatus();
642 void UpdateTreeResourcesForGpuRasterizationIfNeeded(); 643 void UpdateTreeResourcesForGpuRasterizationIfNeeded();
643 644
644 Viewport* viewport() const { return viewport_.get(); } 645 Viewport* viewport() const { return viewport_.get(); }
645 646
646 InputHandler::ScrollStatus ScrollBeginImpl( 647 InputHandler::ScrollStatus ScrollBeginImpl(
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 831
831 std::unique_ptr<PendingTreeDurationHistogramTimer> 832 std::unique_ptr<PendingTreeDurationHistogramTimer>
832 pending_tree_duration_timer_; 833 pending_tree_duration_timer_;
833 834
834 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 835 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
835 }; 836 };
836 837
837 } // namespace cc 838 } // namespace cc
838 839
839 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 840 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/fake_picture_layer_impl.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698