Verified Commit 732e7f65 authored by Ryan VanderMeulen's avatar Ryan VanderMeulen Committed by ma1
Browse files

Bug 2045185 - Fix bustage from stride type mismatch. a=bustage

stride is a plain size_t on esr140 (GetAlignedStride's Maybe<> return type was
never backported), so the .value() call from the backport fails to compile.
parent 81f45631
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1815,7 +1815,7 @@ bool DrawTargetSkia::Init(const IntSize& aSize, SurfaceFormat aFormat) {
  }
  SkSurfaceProps props(0, GetSkPixelGeometry());

  size_t bufSize = BufferSizeFromStrideAndHeight(stride.value(), info.height());
  size_t bufSize = BufferSizeFromStrideAndHeight(stride, info.height());
  if (!bufSize) {
    return false;
  }