Skip to content

Commit

Permalink
Fabric: Setting up correct pointScaleFactor in Binding::startSurface
Browse files Browse the repository at this point in the history
Summary: Previously, we didn't provide any LayoutContext to the very first commit (aka startSurface); apparently it causes problems.

Reviewed By: mdvacca

Differential Revision: D15891472

fbshipit-source-id: b2a785bdad5764eb97b41f5bf5679807107bd8a0
  • Loading branch information
shergin authored and facebook-github-bot committed Jun 19, 2019
1 parent e6f28bb commit 99ece27
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ void Binding::startSurface(
return;
}

LayoutContext context;
context.pointScaleFactor = pointScaleFactor_;
scheduler->startSurface(
surfaceId, moduleName->toStdString(), initialProps->consume());
surfaceId, moduleName->toStdString(), initialProps->consume(), {}, context);
}

void Binding::startSurfaceWithConstraints(
Expand Down

0 comments on commit 99ece27

Please sign in to comment.