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

Side by Side Diff: cc/trees/layer_tree_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/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // layer to consider it as jittering. 62 // layer to consider it as jittering.
63 enum : int { kFixedPointHitsThreshold = 3 }; 63 enum : int { kFixedPointHitsThreshold = 3 };
64 LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl, 64 LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl,
65 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, 65 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor,
66 scoped_refptr<SyncedBrowserControls> top_controls_shown_ratio, 66 scoped_refptr<SyncedBrowserControls> top_controls_shown_ratio,
67 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll); 67 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll);
68 virtual ~LayerTreeImpl(); 68 virtual ~LayerTreeImpl();
69 69
70 void Shutdown(); 70 void Shutdown();
71 void ReleaseResources(); 71 void ReleaseResources();
72 void RecreateResources(); 72 void ReleaseTileResources();
73 void RecreateTileResources();
73 74
74 // Methods called by the layer tree that pass-through or access LTHI. 75 // Methods called by the layer tree that pass-through or access LTHI.
75 // --------------------------------------------------------------------------- 76 // ---------------------------------------------------------------------------
76 const LayerTreeSettings& settings() const; 77 const LayerTreeSettings& settings() const;
77 const LayerTreeDebugState& debug_state() const; 78 const LayerTreeDebugState& debug_state() const;
78 ContextProvider* context_provider() const; 79 ContextProvider* context_provider() const;
79 ResourceProvider* resource_provider() const; 80 ResourceProvider* resource_provider() const;
80 TileManager* tile_manager() const; 81 TileManager* tile_manager() const;
81 ImageDecodeController* image_decode_controller() const; 82 ImageDecodeController* image_decode_controller() const;
82 FrameRateCounter* frame_rate_counter() const; 83 FrameRateCounter* frame_rate_counter() const;
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 563
563 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 564 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
564 565
565 private: 566 private:
566 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 567 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
567 }; 568 };
568 569
569 } // namespace cc 570 } // namespace cc
570 571
571 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 572 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698