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

Side by Side Diff: cc/layers/picture_layer_impl.h

Issue 366113002: cc: Do not cleanup tiles with raster tasks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits updated. Created 6 years, 4 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 | « no previous file | cc/resources/picture_layer_tiling.h » ('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_LAYERS_PICTURE_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_PICTURE_LAYER_IMPL_H_
6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_ 6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 const gfx::Rect& content_rect) OVERRIDE; 116 const gfx::Rect& content_rect) OVERRIDE;
117 virtual PicturePileImpl* GetPile() OVERRIDE; 117 virtual PicturePileImpl* GetPile() OVERRIDE;
118 virtual gfx::Size CalculateTileSize( 118 virtual gfx::Size CalculateTileSize(
119 const gfx::Size& content_bounds) const OVERRIDE; 119 const gfx::Size& content_bounds) const OVERRIDE;
120 virtual const Region* GetInvalidation() OVERRIDE; 120 virtual const Region* GetInvalidation() OVERRIDE;
121 virtual const PictureLayerTiling* GetTwinTiling( 121 virtual const PictureLayerTiling* GetTwinTiling(
122 const PictureLayerTiling* tiling) const OVERRIDE; 122 const PictureLayerTiling* tiling) const OVERRIDE;
123 virtual size_t GetMaxTilesForInterestArea() const OVERRIDE; 123 virtual size_t GetMaxTilesForInterestArea() const OVERRIDE;
124 virtual float GetSkewportTargetTimeInSeconds() const OVERRIDE; 124 virtual float GetSkewportTargetTimeInSeconds() const OVERRIDE;
125 virtual int GetSkewportExtrapolationLimitInContentPixels() const OVERRIDE; 125 virtual int GetSkewportExtrapolationLimitInContentPixels() const OVERRIDE;
126 virtual WhichTree GetTree() const OVERRIDE;
126 127
127 // PushPropertiesTo active tree => pending tree. 128 // PushPropertiesTo active tree => pending tree.
128 void SyncTiling(const PictureLayerTiling* tiling); 129 void SyncTiling(const PictureLayerTiling* tiling);
129 130
130 // Mask-related functions 131 // Mask-related functions
131 void SetIsMask(bool is_mask); 132 void SetIsMask(bool is_mask);
132 virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE; 133 virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE;
133 134
134 virtual size_t GPUMemoryUsageInBytes() const OVERRIDE; 135 virtual size_t GPUMemoryUsageInBytes() const OVERRIDE;
135 136
136 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark) OVERRIDE; 137 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark) OVERRIDE;
137 138
138 // Functions used by tile manager. 139 // Functions used by tile manager.
139 PictureLayerImpl* GetTwinLayer() { return twin_layer_; } 140 PictureLayerImpl* GetTwinLayer() { return twin_layer_; }
140 WhichTree GetTree() const;
141 bool IsOnActiveOrPendingTree() const; 141 bool IsOnActiveOrPendingTree() const;
142 bool HasValidTilePriorities() const; 142 bool HasValidTilePriorities() const;
143 bool AllTilesRequiredForActivationAreReadyToDraw() const; 143 bool AllTilesRequiredForActivationAreReadyToDraw() const;
144 144
145 protected: 145 protected:
146 friend class LayerRasterTileIterator; 146 friend class LayerRasterTileIterator;
147 147
148 PictureLayerImpl(LayerTreeImpl* tree_impl, int id); 148 PictureLayerImpl(LayerTreeImpl* tree_impl, int id);
149 PictureLayerTiling* AddTiling(float contents_scale); 149 PictureLayerTiling* AddTiling(float contents_scale);
150 void RemoveTiling(float contents_scale); 150 void RemoveTiling(float contents_scale);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 gfx::Size viewport_size_for_tile_priority_; 217 gfx::Size viewport_size_for_tile_priority_;
218 gfx::Transform screen_space_transform_for_tile_priority_; 218 gfx::Transform screen_space_transform_for_tile_priority_;
219 219
220 friend class PictureLayer; 220 friend class PictureLayer;
221 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 221 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
222 }; 222 };
223 223
224 } // namespace cc 224 } // namespace cc
225 225
226 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 226 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/resources/picture_layer_tiling.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698