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

Unified Diff: cc/layers/picture_layer_impl.h

Issue 822713002: Update from https://crrev.com/309415 (Closed) Base URL: https://github.com/domokit/mojo.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 side-by-side diff with in-line comments
Download patch
Index: cc/layers/picture_layer_impl.h
diff --git a/cc/layers/picture_layer_impl.h b/cc/layers/picture_layer_impl.h
index 7ad4e7ee42ee62443f2b5aae13d63d0bed3b214e..718c0cfff08ee530bb61feae440f7879555eb560 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -68,7 +68,7 @@ class CC_EXPORT PictureLayerImpl
skia::RefPtr<SkPicture> GetPicture() override;
// PictureLayerTilingClient overrides.
- scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling,
+ scoped_refptr<Tile> CreateTile(float contents_scale,
const gfx::Rect& content_rect) override;
gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override;
const Region* GetPendingInvalidation() override;
@@ -105,7 +105,7 @@ class CC_EXPORT PictureLayerImpl
bool AllTilesRequiredForDrawAreReadyToDraw() const;
// Used for benchmarking
- const RasterSource* GetRasterSource() const { return raster_source_.get(); }
+ RasterSource* GetRasterSource() const { return raster_source_.get(); }
protected:
friend class LayerRasterTileIterator;
@@ -121,11 +121,11 @@ class CC_EXPORT PictureLayerImpl
void CleanUpTilingsOnActiveLayer(
std::vector<PictureLayerTiling*> used_tilings);
float MinimumContentsScale() const;
+ float MaximumContentsScale() const;
void ResetRasterScale();
gfx::Rect GetViewportForTilePriorityInContentSpace() const;
PictureLayerImpl* GetRecycledTwinLayer() const;
- bool CanHaveTilingWithScale(float contents_scale) const;
void SanityCheckTilingState() const;
// Checks if all tiles required for a certain action (e.g. activation) are
// ready to draw. is_tile_required_callback gets called on all candidate

Powered by Google App Engine
This is Rietveld 408576698