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

Unified Diff: cc/resources/picture_pile.h

Issue 832963002: Revert of cc: Remove tile and scale specific code from raster source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/display_list_recording_source.cc ('k') | cc/resources/picture_pile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_pile.h
diff --git a/cc/resources/picture_pile.h b/cc/resources/picture_pile.h
index 08862659dcc4cd695f63faf67b5f2468ccf8453e..fd1c4540dc2a785f5c8087d22fac429c6d0216d0 100644
--- a/cc/resources/picture_pile.h
+++ b/cc/resources/picture_pile.h
@@ -16,11 +16,10 @@
namespace cc {
class PicturePileImpl;
-class LayerTreeSettings;
class CC_EXPORT PicturePile : public RecordingSource {
public:
- PicturePile(float min_contents_scale, const gfx::Size& tile_grid_size);
+ PicturePile();
~PicturePile() override;
// RecordingSource overrides.
@@ -35,8 +34,10 @@
scoped_refptr<RasterSource> CreateRasterSource() const override;
gfx::Size GetSize() const final;
void SetEmptyBounds() override;
+ void SetMinContentsScale(float min_contents_scale) override;
void SetSlowdownRasterScaleFactor(int factor) override;
bool IsSuitableForGpuRasterization() const override;
+ void SetTileGridSize(const gfx::Size& tile_grid_size) override;
void SetUnsuitableForGpuRasterizationForTesting() override;
SkTileGridFactory::TileGridInfo GetTileGridInfoForTesting() const override;
@@ -77,9 +78,6 @@
bool CanRasterSlowTileCheck(const gfx::Rect& layer_rect) const;
void Clear();
-
- void SetMinContentsScale(float min_contents_scale);
- void SetTileGridSize(const gfx::Size& tile_grid_size);
gfx::Rect PaddedRect(const PictureMapKey& key) const;
gfx::Rect PadRect(const gfx::Rect& rect) const;
« no previous file with comments | « cc/resources/display_list_recording_source.cc ('k') | cc/resources/picture_pile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698