aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-01 20:15:18 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-01 20:15:18 +0000
commitf9ce42302bca867ee14b49473891774cb0fa7ef3 (patch)
tree6d12b16dbe0a60a341afcc4b8ac7de4e8c7ba7a9
parente37ad358b7219e45323a79c484ea67a5c59f34c2 (diff)
Initialize grid info in TiledPictureRenderer::init
-rw-r--r--tools/PictureRenderer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/PictureRenderer.cpp b/tools/PictureRenderer.cpp
index ab5df5414e..2c2b6e545e 100644
--- a/tools/PictureRenderer.cpp
+++ b/tools/PictureRenderer.cpp
@@ -370,6 +370,10 @@ TiledPictureRenderer::TiledPictureRenderer()
, fTilesY(0) { }
void TiledPictureRenderer::init(SkPicture* pict) {
+ fGridInfo.fMargin.setEmpty();
+ fGridInfo.fOffset.setZero();
+ fGridInfo.fTileInterval.set(1, 1);
+
SkASSERT(pict != NULL);
SkASSERT(0 == fTileRects.count());
if (NULL == pict || fTileRects.count() != 0) {