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

Side by Side Diff: cc/tiles/picture_layer_tiling.h

Issue 1139063002: cc: Partial tile update for one-copy raster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: monocle: tilemanagerconsistency Created 5 years, 7 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_TILES_PICTURE_LAYER_TILING_H_ 5 #ifndef CC_TILES_PICTURE_LAYER_TILING_H_
6 #define CC_TILES_PICTURE_LAYER_TILING_H_ 6 #define CC_TILES_PICTURE_LAYER_TILING_H_
7 7
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 PictureLayerTiling(WhichTree tree, 264 PictureLayerTiling(WhichTree tree,
265 float contents_scale, 265 float contents_scale,
266 scoped_refptr<RasterSource> raster_source, 266 scoped_refptr<RasterSource> raster_source,
267 PictureLayerTilingClient* client, 267 PictureLayerTilingClient* client,
268 float tiling_interest_area_viewport_multiplier, 268 float tiling_interest_area_viewport_multiplier,
269 float skewport_target_time_in_seconds, 269 float skewport_target_time_in_seconds,
270 int skewport_extrapolation_limit_in_content_pixels); 270 int skewport_extrapolation_limit_in_content_pixels);
271 void SetLiveTilesRect(const gfx::Rect& live_tiles_rect); 271 void SetLiveTilesRect(const gfx::Rect& live_tiles_rect);
272 void VerifyLiveTilesRect(bool is_on_recycle_tree) const; 272 void VerifyLiveTilesRect(bool is_on_recycle_tree) const;
273 Tile* CreateTile(int i, int j); 273 Tile* CreateTile(int i, int j);
274 // Returns true if the Tile existed and was removed from the tiling. 274 // Returns true if the Tile existed and was removed from the tiling. If true,
275 bool RemoveTileAt(int i, int j); 275 // and |id| is not null, sets |id| to that of the removed Tile.
276 bool RemoveTileAt(int i, int j, Tile::Id* id);
276 bool TilingMatchesTileIndices(const PictureLayerTiling* twin) const; 277 bool TilingMatchesTileIndices(const PictureLayerTiling* twin) const;
277 278
278 // Computes a skewport. The calculation extrapolates the last visible 279 // Computes a skewport. The calculation extrapolates the last visible
279 // rect and the current visible rect to expand the skewport to where it 280 // rect and the current visible rect to expand the skewport to where it
280 // would be in |skewport_target_time| seconds. Note that the skewport 281 // would be in |skewport_target_time| seconds. Note that the skewport
281 // is guaranteed to contain the current visible rect. 282 // is guaranteed to contain the current visible rect.
282 gfx::Rect ComputeSkewport(double current_frame_time_in_seconds, 283 gfx::Rect ComputeSkewport(double current_frame_time_in_seconds,
283 const gfx::Rect& visible_rect_in_content_space) 284 const gfx::Rect& visible_rect_in_content_space)
284 const; 285 const;
285 286
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 391
391 private: 392 private:
392 DISALLOW_ASSIGN(PictureLayerTiling); 393 DISALLOW_ASSIGN(PictureLayerTiling);
393 394
394 RectExpansionCache expansion_cache_; 395 RectExpansionCache expansion_cache_;
395 }; 396 };
396 397
397 } // namespace cc 398 } // namespace cc
398 399
399 #endif // CC_TILES_PICTURE_LAYER_TILING_H_ 400 #endif // CC_TILES_PICTURE_LAYER_TILING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698