зеркало из https://github.com/mozilla/moz-skia.git
Fixed valgrind complaint in MatrixBench
https://codereview.appspot.com/6492129/ git-svn-id: http://skia.googlecode.com/svn/trunk@5566 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
968c17ddda
Коммит
31f8f73e83
|
@ -382,17 +382,17 @@ protected:
|
|||
fMatrix.setPerspX(fMatrix.getPerspX());
|
||||
}
|
||||
SkMatrix inv;
|
||||
bool invertible =
|
||||
fMatrix.invert(&inv);
|
||||
bool invertible = fMatrix.invert(&inv);
|
||||
SkASSERT(invertible);
|
||||
SkRect transformedRect;
|
||||
// an arbitrary, small, non-zero rect to transform
|
||||
SkRect srcRect = SkRect::MakeWH(SkIntToScalar(10), SkIntToScalar(10));
|
||||
if (invertible) {
|
||||
inv.mapRect(&transformedRect, fRect);
|
||||
inv.mapRect(&transformedRect, srcRect);
|
||||
}
|
||||
}
|
||||
private:
|
||||
SkMatrix fMatrix;
|
||||
SkRect fRect;
|
||||
int fFlags;
|
||||
unsigned fIteration;
|
||||
typedef MatrixBench INHERITED;
|
||||
|
|
Загрузка…
Ссылка в новой задаче