| Index: cc/picture_pile_base.cc
|
| diff --git a/cc/picture_pile_base.cc b/cc/picture_pile_base.cc
|
| index 94983847afcc63ff943c57bb82b547c3a160243e..09134d518cee22e313ccb5eccc83e2c1c96c0c37 100644
|
| --- a/cc/picture_pile_base.cc
|
| +++ b/cc/picture_pile_base.cc
|
| @@ -10,6 +10,7 @@ namespace {
|
| // Dimensions of the tiles in this picture pile as well as the dimensions of
|
| // the base picture in each tile.
|
| const int kBasePictureSize = 3000;
|
| +const int kDefaultTileGridStride = 254;
|
| }
|
|
|
| namespace cc {
|
| @@ -17,6 +18,7 @@ namespace cc {
|
| PicturePileBase::PicturePileBase()
|
| : min_contents_scale_(0) {
|
| tiling_.SetMaxTextureSize(gfx::Size(kBasePictureSize, kBasePictureSize));
|
| + tile_grid_stride_.SetSize(kDefaultTileGridStride, kDefaultTileGridStride);
|
| }
|
|
|
| PicturePileBase::~PicturePileBase() {
|
| @@ -67,6 +69,12 @@ void PicturePileBase::SetMinContentsScale(float min_contents_scale) {
|
| min_contents_scale_ = min_contents_scale;
|
| }
|
|
|
| +void PicturePileBase::SetTileGridStride(gfx::Size tile_grid_stride) {
|
| + DCHECK(tile_grid_stride.width() > 0);
|
| + DCHECK(tile_grid_stride.height() > 0);
|
| + tile_grid_stride_ = tile_grid_stride;
|
| +}
|
| +
|
| void PicturePileBase::SetBufferPixels(int new_buffer_pixels) {
|
| if (new_buffer_pixels == buffer_pixels())
|
| return;
|
| @@ -84,6 +92,7 @@ void PicturePileBase::PushPropertiesTo(PicturePileBase* other) {
|
| other->tiling_ = tiling_;
|
| other->recorded_region_ = recorded_region_;
|
| other->min_contents_scale_ = min_contents_scale_;
|
| + other->tile_grid_stride_ = tile_grid_stride_;
|
| }
|
|
|
| void PicturePileBase::UpdateRecordedRegion() {
|
|
|