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

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: reset priority on correct tree. 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
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 const gfx::Rect& content_rect) OVERRIDE; 105 const gfx::Rect& content_rect) OVERRIDE;
106 virtual PicturePileImpl* GetPile() OVERRIDE; 106 virtual PicturePileImpl* GetPile() OVERRIDE;
107 virtual gfx::Size CalculateTileSize( 107 virtual gfx::Size CalculateTileSize(
108 const gfx::Size& content_bounds) const OVERRIDE; 108 const gfx::Size& content_bounds) const OVERRIDE;
109 virtual const Region* GetInvalidation() OVERRIDE; 109 virtual const Region* GetInvalidation() OVERRIDE;
110 virtual const PictureLayerTiling* GetTwinTiling( 110 virtual const PictureLayerTiling* GetTwinTiling(
111 const PictureLayerTiling* tiling) const OVERRIDE; 111 const PictureLayerTiling* tiling) const OVERRIDE;
112 virtual size_t GetMaxTilesForInterestArea() const OVERRIDE; 112 virtual size_t GetMaxTilesForInterestArea() const OVERRIDE;
113 virtual float GetSkewportTargetTimeInSeconds() const OVERRIDE; 113 virtual float GetSkewportTargetTimeInSeconds() const OVERRIDE;
114 virtual int GetSkewportExtrapolationLimitInContentPixels() const OVERRIDE; 114 virtual int GetSkewportExtrapolationLimitInContentPixels() const OVERRIDE;
115 virtual WhichTree GetTree() const OVERRIDE;
115 116
116 // PushPropertiesTo active tree => pending tree. 117 // PushPropertiesTo active tree => pending tree.
117 void SyncTiling(const PictureLayerTiling* tiling); 118 void SyncTiling(const PictureLayerTiling* tiling);
118 119
119 // Mask-related functions 120 // Mask-related functions
120 void SetIsMask(bool is_mask); 121 void SetIsMask(bool is_mask);
121 virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE; 122 virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE;
122 123
123 virtual size_t GPUMemoryUsageInBytes() const OVERRIDE; 124 virtual size_t GPUMemoryUsageInBytes() const OVERRIDE;
124 125
125 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark) OVERRIDE; 126 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark) OVERRIDE;
126 127
127 // Functions used by tile manager. 128 // Functions used by tile manager.
128 PictureLayerImpl* GetTwinLayer() { return twin_layer_; } 129 PictureLayerImpl* GetTwinLayer() { return twin_layer_; }
129 WhichTree GetTree() const;
130 bool IsOnActiveOrPendingTree() const; 130 bool IsOnActiveOrPendingTree() const;
131 bool HasValidTilePriorities() const; 131 bool HasValidTilePriorities() const;
132 bool AllTilesRequiredForActivationAreReadyToDraw() const; 132 bool AllTilesRequiredForActivationAreReadyToDraw() const;
133 133
134 protected: 134 protected:
135 friend class LayerRasterTileIterator; 135 friend class LayerRasterTileIterator;
136 136
137 PictureLayerImpl(LayerTreeImpl* tree_impl, int id); 137 PictureLayerImpl(LayerTreeImpl* tree_impl, int id);
138 PictureLayerTiling* AddTiling(float contents_scale); 138 PictureLayerTiling* AddTiling(float contents_scale);
139 void RemoveTiling(float contents_scale); 139 void RemoveTiling(float contents_scale);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 gfx::Size viewport_size_for_tile_priority_; 206 gfx::Size viewport_size_for_tile_priority_;
207 gfx::Transform screen_space_transform_for_tile_priority_; 207 gfx::Transform screen_space_transform_for_tile_priority_;
208 208
209 friend class PictureLayer; 209 friend class PictureLayer;
210 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 210 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
211 }; 211 };
212 212
213 } // namespace cc 213 } // namespace cc
214 214
215 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 215 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/resources/picture_layer_tiling.h » ('j') | cc/resources/picture_layer_tiling.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698