提交 a97b22a8 编写于 作者: A Adam Barth

Merge pull request #2250 from abarth/translate_pictures

TabView children don't render correctly
......@@ -37,8 +37,9 @@ void PictureLayer::Paint(PaintContext::ScopedFrame& frame) {
if (kDebugCheckerboardRasterizedLayers)
DrawCheckerboard(&canvas, rect);
} else {
SkMatrix matrix = SkMatrix::MakeTrans(offset_.x(), offset_.y());
canvas.drawPicture(picture_.get(), &matrix, nullptr);
SkAutoCanvasRestore save(&canvas, true);
canvas.translate(offset_.x(), offset_.y());
canvas.drawPicture(picture_.get());
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册