diff options
author | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-21 19:12:32 +0000 |
---|---|---|
committer | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-21 19:12:32 +0000 |
commit | 977e6626af75b3fa49da336fea1e5664f4811e80 (patch) | |
tree | edac79bb61a6bbf496a9024405c9e5a6d2d81de7 /gm | |
parent | a0c2bc24381fea063008f9c8823756eb020603b3 (diff) |
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
Diffstat (limited to 'gm')
-rw-r--r-- | gm/gmmain.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp index c4ed298efa..c5a72dd8ad 100644 --- a/gm/gmmain.cpp +++ b/gm/gmmain.cpp @@ -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(); |