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

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

Issue 775483002: cc: Remove max tiles and skewport constants from tiling client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // PictureLayerTilingClient overrides. 66 // PictureLayerTilingClient overrides.
67 scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling, 67 scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling,
68 const gfx::Rect& content_rect) override; 68 const gfx::Rect& content_rect) override;
69 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; 69 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override;
70 const Region* GetPendingInvalidation() override; 70 const Region* GetPendingInvalidation() override;
71 const PictureLayerTiling* GetPendingOrActiveTwinTiling( 71 const PictureLayerTiling* GetPendingOrActiveTwinTiling(
72 const PictureLayerTiling* tiling) const override; 72 const PictureLayerTiling* tiling) const override;
73 PictureLayerTiling* GetRecycledTwinTiling( 73 PictureLayerTiling* GetRecycledTwinTiling(
74 const PictureLayerTiling* tiling) override; 74 const PictureLayerTiling* tiling) override;
75 TilePriority::PriorityBin GetMaxTilePriorityBin() const override; 75 TilePriority::PriorityBin GetMaxTilePriorityBin() const override;
76 size_t GetMaxTilesForInterestArea() const override;
77 float GetSkewportTargetTimeInSeconds() const override;
78 int GetSkewportExtrapolationLimitInContentPixels() const override;
79 WhichTree GetTree() const override; 76 WhichTree GetTree() const override;
80 bool RequiresHighResToDraw() const override; 77 bool RequiresHighResToDraw() const override;
81 78
82 // PushPropertiesTo active tree => pending tree. 79 // PushPropertiesTo active tree => pending tree.
83 void SyncTiling(const PictureLayerTiling* tiling); 80 void SyncTiling(const PictureLayerTiling* tiling);
84 81
85 // Mask-related functions. 82 // Mask-related functions.
86 void GetContentsResourceId(ResourceProvider::ResourceId* resource_id, 83 void GetContentsResourceId(ResourceProvider::ResourceId* resource_id,
87 gfx::Size* resource_size) const override; 84 gfx::Size* resource_size) const override;
88 void set_is_mask(bool is_mask) { is_mask_ = is_mask; } 85 void set_is_mask(bool is_mask) { is_mask_ = is_mask; }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 TileRequirementCheck is_tile_required_callback) const; 136 TileRequirementCheck is_tile_required_callback) const;
140 137
141 bool ShouldAdjustRasterScaleDuringScaleAnimations() const; 138 bool ShouldAdjustRasterScaleDuringScaleAnimations() const;
142 139
143 void GetDebugBorderProperties(SkColor* color, float* width) const override; 140 void GetDebugBorderProperties(SkColor* color, float* width) const override;
144 void GetAllTilesForTracing(std::set<const Tile*>* tiles) const override; 141 void GetAllTilesForTracing(std::set<const Tile*>* tiles) const override;
145 void AsValueInto(base::debug::TracedValue* dict) const override; 142 void AsValueInto(base::debug::TracedValue* dict) const override;
146 143
147 virtual void UpdateIdealScales(); 144 virtual void UpdateIdealScales();
148 float MaximumTilingContentsScale() const; 145 float MaximumTilingContentsScale() const;
146 scoped_ptr<PictureLayerTilingSet> CreatePictureLayerTilingSet();
149 147
150 PictureLayerImpl* twin_layer_; 148 PictureLayerImpl* twin_layer_;
151 149
152 scoped_ptr<PictureLayerTilingSet> tilings_; 150 scoped_ptr<PictureLayerTilingSet> tilings_;
153 scoped_refptr<RasterSource> raster_source_; 151 scoped_refptr<RasterSource> raster_source_;
154 Region invalidation_; 152 Region invalidation_;
155 153
156 float ideal_page_scale_; 154 float ideal_page_scale_;
157 float ideal_device_scale_; 155 float ideal_device_scale_;
158 float ideal_source_scale_; 156 float ideal_source_scale_;
(...skipping 22 matching lines...) Expand all
181 // frame that has a valid viewport for prioritizing tiles. 179 // frame that has a valid viewport for prioritizing tiles.
182 gfx::Rect visible_rect_for_tile_priority_; 180 gfx::Rect visible_rect_for_tile_priority_;
183 181
184 friend class PictureLayer; 182 friend class PictureLayer;
185 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 183 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
186 }; 184 };
187 185
188 } // namespace cc 186 } // namespace cc
189 187
190 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 188 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698