Commit 8f26d159 authored by Vasiliy Telezhnikov's avatar Vasiliy Telezhnikov Committed by Commit Bot

Plumb ColorSpace to overlay with SharedImage AHB

Currently SurfaceControl takes color space of overlay from GLImage.
This CL fixes missed setting color space from SharedImageBackingAHB
to OverlayImage.

Change-Id: If0c53160a1bfdfb99d8dc40a2e44e1ba04962018
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2037311
Commit-Queue: Vasiliy Telezhnikov <vasilyt@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
Auto-Submit: Vasiliy Telezhnikov <vasilyt@chromium.org>
Reviewed-by: default avatarPeng Huang <penghuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#738190}
parent d54e56e1
......@@ -777,6 +777,7 @@ gl::GLImage* SharedImageBackingAHB::BeginOverlayAccess() {
if (!overlay_image_) {
overlay_image_ =
base::MakeRefCounted<OverlayImage>(hardware_buffer_handle_.get());
overlay_image_->SetColorSpace(color_space());
}
if (write_sync_fd_.is_valid()) {
......
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