diff --git a/gm/techtalk1.cpp b/gm/techtalk1.cpp index 3a6af4908..00c49569c 100644 --- a/gm/techtalk1.cpp +++ b/gm/techtalk1.cpp @@ -349,7 +349,8 @@ protected: } virtual void onDraw(SkCanvas* canvas) { - SkRect dst = SkRect::MakeWH(canvas->getDevice()->width(), canvas->getDevice()->height()); + SkISize size = canvas->getDeviceSize(); + SkRect dst = SkRect::MakeWH(size.width(), size.height()); SkRect src = SkRect::MakeWH(640, 480); SkMatrix matrix; matrix.setRectToRect(src, dst, SkMatrix::kCenter_ScaleToFit); @@ -358,6 +359,10 @@ protected: fProc(canvas, fShowGL, fFlags); } + virtual uint32_t onGetFlags() const SK_OVERRIDE { + return kSkipPDF_Flag | kSkipPicture_Flag | kSkipPipe_Flag | kSkipTiled_Flag; + } + private: typedef skiagm::GM INHERITED; };