Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6318)

Unified Diff: chrome/gpu/gpu_arc_video_service.cc

Issue 1953683002: Add stride for imported Dmabuf in ArcVideoAccelerator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address posciak's comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/gpu/arc_video_accelerator.h ('k') | components/arc/common/video.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/gpu/gpu_arc_video_service.cc
diff --git a/chrome/gpu/gpu_arc_video_service.cc b/chrome/gpu/gpu_arc_video_service.cc
index 510ee2e147f578fb1d9908ada9d51246edb57b9d..3a40d40d5bf903fdaf93e638fcc95c37073c3732 100644
--- a/chrome/gpu/gpu_arc_video_service.cc
+++ b/chrome/gpu/gpu_arc_video_service.cc
@@ -190,7 +190,8 @@ class GpuArcVideoService::AcceleratorStub
void BindDmabuf(::arc::mojom::PortType port,
uint32_t index,
- mojo::ScopedHandle dmabuf_handle) override {
+ mojo::ScopedHandle dmabuf_handle,
+ int32_t stride) override {
DVLOG(2) << "BindDmabuf port=" << port << ", index=" << index;
mojo::edk::ScopedPlatformHandle scoped_platform_handle;
MojoResult mojo_result = mojo::edk::PassWrappedPlatformHandle(
@@ -198,7 +199,8 @@ class GpuArcVideoService::AcceleratorStub
DCHECK_EQ(mojo_result, MOJO_RESULT_OK);
auto fd = base::ScopedFD(scoped_platform_handle.release().handle);
- accelerator_->BindDmabuf(static_cast<PortType>(port), index, std::move(fd));
+ accelerator_->BindDmabuf(static_cast<PortType>(port), index, std::move(fd),
+ stride);
}
void UseBuffer(::arc::mojom::PortType port,
« no previous file with comments | « chrome/gpu/arc_video_accelerator.h ('k') | components/arc/common/video.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698