Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Unified Diff: gm/picture.cpp

Issue 953383002: fuzzer fixes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix up width and height in initializer Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/complexclip2.cpp ('k') | gm/pictureshader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/picture.cpp
diff --git a/gm/picture.cpp b/gm/picture.cpp
index b07a5969a99ec31748489be07d61731bef21f187..5432fc93ef73b6793983c559db6073f57a65b03a 100644
--- a/gm/picture.cpp
+++ b/gm/picture.cpp
@@ -39,9 +39,15 @@ static SkPicture* make_picture() {
//
class PictureGM : public skiagm::GM {
public:
- PictureGM() : fPicture(make_picture()) {}
+ PictureGM()
+ : fPicture(NULL)
+ {}
protected:
+ void onOnceBeforeDraw() SK_OVERRIDE {
+ fPicture.reset(make_picture());
+ }
+
SkString onShortName() SK_OVERRIDE {
return SkString("pictures");
}
« no previous file with comments | « gm/complexclip2.cpp ('k') | gm/pictureshader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698