提交 cf9ed589 编写于 作者: G George Kulakowski

Merge pull request #2120 from kulakowski/flip-y-coordinate

Flip y coordinate on FNL as a workaround
......@@ -52,7 +52,12 @@ SkCanvas* GaneshCanvas::GetCanvas(int32_t fbo, const SkISize& size) {
desc.fWidth = size.width();
desc.fHeight = size.height();
desc.fConfig = kSkia8888_GrPixelConfig;
#if defined(FNL_MUSL)
// TODO(kulakowski) This should be handled by MGL
desc.fOrigin = kTopLeft_GrSurfaceOrigin;
#else
desc.fOrigin = kBottomLeft_GrSurfaceOrigin;
#endif
desc.fRenderTargetHandle = fbo;
skia::RefPtr<GrRenderTarget> target = skia::AdoptRef(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册