Make Mozart draw child views
Previously we weren't factoring in the layer's offset properly and we were drawing the child views below the background layer.
This commit is contained in:
@@ -19,6 +19,7 @@ ChildSceneLayer::~ChildSceneLayer() {
|
||||
|
||||
void ChildSceneLayer::Preroll(PrerollContext* context, const SkMatrix& matrix) {
|
||||
transform_ = matrix;
|
||||
transform_.postTranslate(offset_.x(), offset_.y());
|
||||
}
|
||||
|
||||
void ChildSceneLayer::Paint(PaintContext::ScopedFrame& frame) {
|
||||
|
||||
Reference in New Issue
Block a user