Commit 51357dc1 authored by Julien Isorce's avatar Julien Isorce Committed by Commit Bot

Allow RGBX for VaapiTFPPicture

Fixes regression on non-ozone platforms and introduced by
  73d609f3
  https://chromium-review.googlesource.com/787290

Note that the format is only used for sanity check. All the logic is
done automatically in the vaapi driver's implementation of vaPutSurface.

Bug: 785201
Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: Idc0bdf184874bf2c238e28da6f42f4e3572e9743
Reviewed-on: https://chromium-review.googlesource.com/807928Reviewed-by: default avatarDan Sanders <sandersd@chromium.org>
Commit-Queue: Julien Isorce <julien.isorce@chromium.org>
Cr-Commit-Position: refs/heads/master@{#521897}
parent beda5267
......@@ -72,7 +72,8 @@ bool VaapiTFPPicture::Initialize() {
bool VaapiTFPPicture::Allocate(gfx::BufferFormat format) {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
if (format != gfx::BufferFormat::BGRX_8888 &&
format != gfx::BufferFormat::BGRA_8888) {
format != gfx::BufferFormat::BGRA_8888 &&
format != gfx::BufferFormat::RGBX_8888) {
DLOG(ERROR) << "Unsupported format";
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