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

Unified Diff: cc/picture_pile_base.h

Issue 12221077: Fixing tile grid size used by cc:Picture to make it respect current tile configuration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing clang builds Created 7 years, 10 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
Index: cc/picture_pile_base.h
diff --git a/cc/picture_pile_base.h b/cc/picture_pile_base.h
index 35c1f300cb2b0db2ce54cbd25bc60d2e5908e83b..605b23c95452e5d27ebe49122ea5018ea0c225b8 100644
--- a/cc/picture_pile_base.h
+++ b/cc/picture_pile_base.h
@@ -18,6 +18,10 @@
namespace cc {
+class LayerTreeHost;
+class LayerTreeHostImpl;
+class LayerTreeSettings;
+
class CC_EXPORT PicturePileBase : public base::RefCounted<PicturePileBase> {
public:
PicturePileBase();
@@ -36,6 +40,9 @@ class CC_EXPORT PicturePileBase : public base::RefCounted<PicturePileBase> {
gfx::Rect tile_bounds(int x, int y) const { return tiling_.TileBounds(x, y); }
bool HasRecordingAt(int x, int y);
+ void ApplyLayerTreeSettings(LayerTreeHost* host);
+ void ApplyLayerTreeSettings(LayerTreeHostImpl* host_impl); // for testing
enne (OOO) 2013/02/25 23:59:15 Could you just directly pass in the values you nee
+
protected:
virtual ~PicturePileBase();
@@ -52,8 +59,10 @@ class CC_EXPORT PicturePileBase : public base::RefCounted<PicturePileBase> {
TilingData tiling_;
Region recorded_region_;
float min_contents_scale_;
+ SkTileGridPicture::TileGridInfo tile_grid_info_;
private:
+ void ApplyLayerTreeSettings(const LayerTreeSettings& settings, float scale);
void SetBufferPixels(int buffer_pixels);
friend class base::RefCounted<PicturePileBase>;

Powered by Google App Engine
This is Rietveld 408576698