Skip to content

Commit

Permalink
SharedImageAHB: create SkSurface with right color space.
Browse files Browse the repository at this point in the history
Bug: 1012401
Change-Id: I579ae08f993073049b9677e90efc42239cd76490
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1948521
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#721047}
  • Loading branch information
phuang authored and Commit Bot committed Dec 3, 2019
1 parent 0dc1ad1 commit ae290fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ class SharedImageRepresentationSkiaVkAHB
/*gpu_compositing=*/true, format());
auto surface = SkSurface::MakeFromBackendTextureAsRenderTarget(
context_state_->gr_context(), promise_texture_->backendTexture(),
kTopLeft_GrSurfaceOrigin, final_msaa_count, sk_color_type, nullptr,
&surface_props);
kTopLeft_GrSurfaceOrigin, final_msaa_count, sk_color_type,
color_space().ToSkColorSpace(), &surface_props);
DCHECK(surface);
surface_ = surface.get();
return surface;
Expand Down

0 comments on commit ae290fc

Please sign in to comment.