Commit adbeb213 authored by Brian Salomon's avatar Brian Salomon Committed by Commit Bot

Update SurfacelessSkiaRenderer SkSurface creation

Change-Id: I2273d2a446545496c9edc624c172914b1bc5f901
Reviewed-on: https://chromium-review.googlesource.com/962359Reviewed-by: default avatarRobert Kroeger <rjkroege@chromium.org>
Commit-Queue: Brian Salomon <bsalomon@chromium.org>
Cr-Commit-Position: refs/heads/master@{#543116}
parent 21f85b49
......@@ -130,12 +130,12 @@ bool SurfacelessSkiaRenderer::BufferWrapper::Initialize(
GrGLTextureInfo texture_info;
texture_info.fTarget = GL_TEXTURE_2D;
texture_info.fID = gl_tex_;
texture_info.fFormat = GL_RGBA;
texture_info.fFormat = GL_BGRA8_EXT;
GrBackendTexture backend_texture(size_.width(), size_.height(),
kRGBA_8888_GrPixelConfig, texture_info);
sk_surface_ = SkSurface::MakeFromBackendTextureAsRenderTarget(
gr_context, backend_texture, kTopLeft_GrSurfaceOrigin, 0, nullptr,
nullptr);
GrMipMapped::kNo, texture_info);
sk_surface_ = SkSurface::MakeFromBackendTexture(
gr_context, backend_texture, kTopLeft_GrSurfaceOrigin, 0,
kBGRA_8888_SkColorType, nullptr, nullptr);
if (!sk_surface_) {
LOG(ERROR) << "Failed to create skia surface";
return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment