remove self-modifying matrix code, which can't work with pictures, and will be removed from shapes api soon

git-svn-id: http://skia.googlecode.com/svn/trunk@1434 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2011-05-26 14:42:48 +00:00
Родитель 64f340ceea
Коммит 4c9a8155a8
1 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -57,6 +57,8 @@ public:
for (size_t i = 0; i < SK_ARRAY_COUNT(fMatrixRefs); i++) {
SkSafeRef(fMatrixRefs[i] = fGroup.getShapeMatrixRef(i));
}
SkScalar c = SkIntToScalar(50);
fMatrixRefs[3]->preRotate(SkIntToScalar(30), c, c);
}
virtual ~ShapesGM() {
@ -81,10 +83,6 @@ protected:
virtual void onDraw(SkCanvas* canvas) {
this->drawBG(canvas);
SkMatrix saveM = *fMatrixRefs[3];
SkScalar c = SkIntToScalar(50);
fMatrixRefs[3]->preRotate(SkIntToScalar(30), c, c);
SkMatrix matrix;
SkGroupShape* gs = new SkGroupShape;
@ -111,8 +109,6 @@ protected:
canvas->drawPicture(*pict);
pict->unref();
#endif
*fMatrixRefs[3] = saveM;
}
private: