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

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 dcheng's review 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
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 0ab69c736c3dbaebe6a5650be310538dacd0cb11..d7f666837c33916699c94a79ba3898fb8baa40fe 100644
--- a/chrome/gpu/gpu_arc_video_service.cc
+++ b/chrome/gpu/gpu_arc_video_service.cc
@@ -187,7 +187,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(
@@ -195,7 +196,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,

Powered by Google App Engine
This is Rietveld 408576698