Move initialization to PictureRenderer ctor
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Sat, 2 Mar 2013 17:45:27 +0000 (17:45 +0000)
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Sat, 2 Mar 2013 17:45:27 +0000 (17:45 +0000)
https://codereview.appspot.com/7435052/

git-svn-id: http://skia.googlecode.com/svn/trunk@7942 2bbb7eff-a529-9590-31e7-b0007b416f81

tools/PictureRenderer.h

index 438488a..72367c0 100644 (file)
@@ -260,6 +260,9 @@ public:
         , fGrContext(NULL)
 #endif
         {
+            fGridInfo.fMargin.setEmpty();
+            fGridInfo.fOffset.setZero();
+            fGridInfo.fTileInterval.set(1, 1);
             sk_bzero(fDrawFilters, sizeof(fDrawFilters));
             fViewport.set(0, 0);
         }