diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-01 20:15:18 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-01 20:15:18 +0000 |
commit | f9ce42302bca867ee14b49473891774cb0fa7ef3 (patch) | |
tree | 6d12b16dbe0a60a341afcc4b8ac7de4e8c7ba7a9 | |
parent | e37ad358b7219e45323a79c484ea67a5c59f34c2 (diff) |
Initialize grid info in TiledPictureRenderer::init
https://codereview.appspot.com/7444053/
git-svn-id: http://skia.googlecode.com/svn/trunk@7932 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | tools/PictureRenderer.cpp | 4 |
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) { |