Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahwilliams committed Aug 10, 2024
1 parent 2c6f55e commit 1236b73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion impeller/aiks/experimental_canvas.cc
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,8 @@ bool ExperimentalCanvas::Restore() {
PaintPassDelegate(save_layer_state.paint)
.CreateContentsForSubpassTarget(
lazy_render_pass.inline_pass_context->GetTexture(),
transform_stack_.back().transform);
Matrix::MakeTranslation(Vector3{-GetGlobalPassPosition()}) *
transform_stack_.back().transform);

lazy_render_pass.inline_pass_context->EndPass();

Expand Down
2 changes: 1 addition & 1 deletion impeller/display_list/aiks_dl_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ TEST_P(AiksTest, MatrixSaveLayerFilter) {
DlPaint paint;
paint.setColor(DlColor::kBlack());
builder.DrawPaint(paint);
builder.SaveLayer({}, nullptr);
builder.SaveLayer(nullptr, nullptr);
{
paint.setColor(DlColor::kGreen().withAlpha(255 * 0.5));
paint.setBlendMode(DlBlendMode::kPlus);
Expand Down

0 comments on commit 1236b73

Please sign in to comment.