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

Unified Diff: cc/resources/picture_layer_tiling_set.h

Issue 820703002: c:: Give the raster source to the PictureLayerTilings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rastersource: . 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/picture_layer_tiling_perftest.cc ('k') | cc/resources/picture_layer_tiling_set.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_layer_tiling_set.h
diff --git a/cc/resources/picture_layer_tiling_set.h b/cc/resources/picture_layer_tiling_set.h
index 8bc1084f81a46588deb146f55e68044f27cc0c15..04e4f62d20367bbf9650b741699a7a0aad8ee9ca 100644
--- a/cc/resources/picture_layer_tiling_set.h
+++ b/cc/resources/picture_layer_tiling_set.h
@@ -55,14 +55,15 @@ class CC_EXPORT PictureLayerTilingSet {
PictureLayerTilingSet* recycled_twin_set);
void RemoveNonIdealTilings();
- void UpdateTilingsToCurrentRasterSource(RasterSource* raster_source,
- const PictureLayerTilingSet* twin_set,
- const Region& layer_invalidation,
- float minimum_contents_scale,
- float maximum_contents_scale);
+ void UpdateTilingsToCurrentRasterSource(
+ scoped_refptr<RasterSource> raster_source,
+ const PictureLayerTilingSet* twin_set,
+ const Region& layer_invalidation,
+ float minimum_contents_scale,
+ float maximum_contents_scale);
PictureLayerTiling* AddTiling(float contents_scale,
- const gfx::Size& layer_bounds);
+ scoped_refptr<RasterSource> raster_source);
size_t num_tilings() const { return tilings_.size(); }
int NumHighResTilings() const;
PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx]; }
« no previous file with comments | « cc/resources/picture_layer_tiling_perftest.cc ('k') | cc/resources/picture_layer_tiling_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698