When recording a GM to a picture, pass the GM's size to beginRecording.

Review URL: https://codereview.appspot.com/6552047

git-svn-id: http://skia.googlecode.com/svn/trunk@5644 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index c4ed298..c5a72dd 100644
--- a/gm/gmmain.cpp
+++ b/gm/gmmain.cpp
@@ -508,7 +508,8 @@
 static SkPicture* generate_new_picture(GM* gm) {
     // Pictures are refcounted so must be on heap
     SkPicture* pict = new SkPicture;
-    SkCanvas* cv = pict->beginRecording(1000, 1000);
+    SkISize size = gm->getISize();
+    SkCanvas* cv = pict->beginRecording(size.width(), size.height());
     invokeGM(gm, cv);
     pict->endRecording();