commit | 05364bf39d1ee63caa9d28c1b7a707db670407c9 | [log] [tgz] |
---|---|---|
author | Maggie Chen <[email protected]> | Wed Jun 03 08:34:06 2020 |
committer | Commit Bot <[email protected]> | Wed Jun 03 08:34:06 2020 |
tree | 2856d5336dc6ceb1264eb9b27a723a5db5b80ded | |
parent | e5eb7354c9f7d58badc047d6750edec30e3c1909 [diff] [blame] |
Add support for updating the browser with the latest HDR and Overlay status Add an info-update callback function to DirectCompositionSurfaceWin so the status change of HDR, direct composition or overlay can be propagated to the browser. The status change could be a result of swap chain creation failure. Bug:1089998 Change-Id: If3ca647cf73edbb776b35775dcc7df46ea8b5ba4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2225144 Reviewed-by: Bo <[email protected]> Reviewed-by: Daniel Cheng <[email protected]> Reviewed-by: Zhenyao Mo <[email protected]> Reviewed-by: ccameron <[email protected]> Commit-Queue: Maggie Chen <[email protected]> Cr-Commit-Position: refs/heads/master@{#774541}
diff --git a/components/viz/host/gpu_host_impl.cc b/components/viz/host/gpu_host_impl.cc index 414ba48b..fc1ab7b 100644 --- a/components/viz/host/gpu_host_impl.cc +++ b/components/viz/host/gpu_host_impl.cc
@@ -512,6 +512,10 @@ delegate_->DidUpdateOverlayInfo(overlay_info); } +void GpuHostImpl::DidUpdateHDRStatus(bool hdr_enabled) { + delegate_->DidUpdateHDRStatus(hdr_enabled); +} + void GpuHostImpl::SetChildSurface(gpu::SurfaceHandle parent, gpu::SurfaceHandle child) { if (pid_ != base::kNullProcessId) {