Commit 75d163e9 authored by Jiajia Qin's avatar Jiajia Qin Committed by Commit Bot

Fix that unable to find the NativePixmap error

When enable passthrough cmd decoder in CrOS, below errow are
printed repeatedly when accessing aquarium demo.
ERROR:overlay_processor_ozone.cc(212)] Unable to find the
NativePixmap corresponding to the overlay candidate

It seems that it will always return a nullptr when it's passthrough.
This change will remove this limitation.

Bug: chromium:1096442
Change-Id: I54faeedcc5ffe4bafae1f7a2a57ecd21c766ceb4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2311899
Commit-Queue: Jiajia Qin <jiajia.qin@intel.com>
Reviewed-by: default avatarccameron <ccameron@chromium.org>
Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791129}
parent c6bc1f2d
...@@ -358,9 +358,6 @@ GLuint SharedImageBackingGLImage::GetGLServiceId() const { ...@@ -358,9 +358,6 @@ GLuint SharedImageBackingGLImage::GetGLServiceId() const {
} }
scoped_refptr<gfx::NativePixmap> SharedImageBackingGLImage::GetNativePixmap() { scoped_refptr<gfx::NativePixmap> SharedImageBackingGLImage::GetNativePixmap() {
if (IsPassthrough())
return nullptr;
return image_->GetNativePixmap(); return image_->GetNativePixmap();
} }
......
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