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
This commit is contained in:
scroggo@google.com 2012-09-21 19:12:32 +00:00
parent a0c2bc2438
commit 977e6626af

View File

@ -508,7 +508,8 @@ static ErrorBitfield handle_test_results(GM* gm,
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();