зеркало из https://github.com/mozilla/moz-skia.git
disable replay for now
git-svn-id: http://skia.googlecode.com/svn/trunk@5463 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
de938a496c
Коммит
ef752fe38b
|
@ -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;
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче