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>; |