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

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: slightlylessstruct 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 PictureLayerTiling(WhichTree tree, 269 PictureLayerTiling(WhichTree tree,
270 float contents_scale, 270 float contents_scale,
271 scoped_refptr<RasterSource> raster_source, 271 scoped_refptr<RasterSource> raster_source,
272 PictureLayerTilingClient* client, 272 PictureLayerTilingClient* client,
273 float tiling_interest_area_viewport_multiplier, 273 float tiling_interest_area_viewport_multiplier,
274 float skewport_target_time_in_seconds, 274 float skewport_target_time_in_seconds,
275 int skewport_extrapolation_limit_in_content_pixels); 275 int skewport_extrapolation_limit_in_content_pixels);
276 void SetLiveTilesRect(const gfx::Rect& live_tiles_rect); 276 void SetLiveTilesRect(const gfx::Rect& live_tiles_rect);
277 void VerifyLiveTilesRect(bool is_on_recycle_tree) const; 277 void VerifyLiveTilesRect(bool is_on_recycle_tree) const;
278 Tile* CreateTile(int i, int j); 278 Tile* CreateTile(int i, int j);
279 // Returns true if the Tile existed and was removed from the tiling. 279 // Returns true if the Tile existed and was removed from the tiling. If true,
280 bool RemoveTileAt(int i, int j); 280 // and |id| is not null, sets |id| to that of the removed Tile.
281 bool RemoveTileAt(int i, int j, Tile::Id* id);
reveman 2015/05/28 05:07:25 adding an 'id' output param seems a bit too specif
danakj 2015/05/28 18:54:47 I think we're making perfect the enemy of the good
281 bool TilingMatchesTileIndices(const PictureLayerTiling* twin) const; 282 bool TilingMatchesTileIndices(const PictureLayerTiling* twin) const;
282 283
283 // Computes a skewport. The calculation extrapolates the last visible 284 // Computes a skewport. The calculation extrapolates the last visible
284 // rect and the current visible rect to expand the skewport to where it 285 // rect and the current visible rect to expand the skewport to where it
285 // would be in |skewport_target_time| seconds. Note that the skewport 286 // would be in |skewport_target_time| seconds. Note that the skewport
286 // is guaranteed to contain the current visible rect. 287 // is guaranteed to contain the current visible rect.
287 gfx::Rect ComputeSkewport(double current_frame_time_in_seconds, 288 gfx::Rect ComputeSkewport(double current_frame_time_in_seconds,
288 const gfx::Rect& visible_rect_in_content_space) 289 const gfx::Rect& visible_rect_in_content_space)
289 const; 290 const;
290 291
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 397
397 private: 398 private:
398 DISALLOW_ASSIGN(PictureLayerTiling); 399 DISALLOW_ASSIGN(PictureLayerTiling);
399 400
400 RectExpansionCache expansion_cache_; 401 RectExpansionCache expansion_cache_;
401 }; 402 };
402 403
403 } // namespace cc 404 } // namespace cc
404 405
405 #endif // CC_TILES_PICTURE_LAYER_TILING_H_ 406 #endif // CC_TILES_PICTURE_LAYER_TILING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698