Commit a586e644 authored by victorhsieh's avatar victorhsieh Committed by Commit bot

Fix build error when USE_OZONE is undefined

Not sure this is correct behavior, but this should make the build green.

BUG=b/27779397,574241
TEST=ninja

Review URL: https://codereview.chromium.org/1907593003

Cr-Commit-Position: refs/heads/master@{#388627}
parent a0037979
......@@ -1667,14 +1667,14 @@ void V4L2SliceVideoDecodeAccelerator::ImportBufferForPicture(
DCHECK(child_task_runner_->BelongsToCurrentThread());
auto passed_dmabuf_fds(base::WrapUnique(new std::vector<base::ScopedFD>()));
#if defined(USE_OZONE)
for (const auto& handle : gpu_memory_buffer_handles) {
int fd = -1;
#if defined(USE_OZONE)
fd = handle.native_pixmap_handle.fd.fd;
#endif
DCHECK_NE(fd, -1);
passed_dmabuf_fds->push_back(base::ScopedFD(fd));
}
#endif
if (output_mode_ != Config::OutputMode::IMPORT) {
LOGF(ERROR) << "Cannot import in non-import mode";
......
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