提交 bdcd6d14 编写于 作者: A Adam Barth

Merge pull request #2403 from abarth/stencil

Attach a stencil buffer
......@@ -49,8 +49,9 @@ void RasterizerDirect::ConnectToRasterizer(
}
void RasterizerDirect::OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) {
surface_ =
gfx::GLSurface::CreateViewGLSurface(widget, gfx::SurfaceConfiguration());
gfx::SurfaceConfiguration config;
config.stencil_bits = 8;
surface_ = gfx::GLSurface::CreateViewGLSurface(widget, config);
CHECK(surface_) << "GLSurface required.";
// Eagerly create the GL context. For a while after the accelerated widget
// is first available (after startup), the process is busy setting up dart
......
......@@ -52,12 +52,8 @@ 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.fStencilBits = 8;
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.
先完成此消息的编辑!
想要评论请 注册