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

Unified Diff: cc/resources/picture_pile.h

Issue 811953005: 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 fd1c4540dc2a785f5c8087d22fac429c6d0216d0..dd0f1c1740f3c4ca76eeff0b1c815ed7e7d6c65d 100644
--- a/cc/resources/picture_pile.h
+++ b/cc/resources/picture_pile.h
@@ -16,10 +16,11 @@
namespace cc {
class PicturePileImpl;
+class LayerTreeSettings;
class CC_EXPORT PicturePile : public RecordingSource {
public:
- PicturePile();
+ PicturePile(double min_content_scale, const gfx::Size& tile_grid_size);
vmpstr 2015/01/02 19:43:05 nit: min_contents_scale
~PicturePile() override;
// RecordingSource overrides.
@@ -34,10 +35,8 @@ class CC_EXPORT PicturePile : public RecordingSource {
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;
@@ -79,6 +78,9 @@ class CC_EXPORT PicturePile : public RecordingSource {
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