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

Unified Diff: chrome/gpu/arc_video_accelerator.h

Issue 1641353003: GpuArcVideoService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@arc-4-owen-ArcGpuVideoDecodeAccelerator
Patch Set: update video_accelerator.mojom Created 4 years, 8 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/arc_video_accelerator.h
diff --git a/chrome/gpu/arc_video_accelerator.h b/chrome/gpu/arc_video_accelerator.h
index afc5dc7630148640c28bf4ed379f3a7d1ddbc774..2cd3ef36ed4900cac7fa039d1efe6d296bf59d39 100644
--- a/chrome/gpu/arc_video_accelerator.h
+++ b/chrome/gpu/arc_video_accelerator.h
@@ -5,6 +5,8 @@
#ifndef CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_
#define CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_
+#include "base/files/scoped_file.h"
+
namespace chromeos {
namespace arc {
@@ -113,7 +115,7 @@ class ArcVideoAccelerator {
// multiple times without additional bindings.
virtual void BindSharedMemory(PortType port,
uint32_t index,
- int ashmem_fd,
+ base::ScopedFD ashmem_fd,
off_t offset,
size_t length) = 0;
@@ -121,7 +123,9 @@ class ArcVideoAccelerator {
// port and index. A buffer must be successfully bound before it can be
// passed to the accelerator via UseBuffer(). Already bound buffers may be
// reused multiple times without additional bindings.
- virtual void BindDmabuf(PortType port, uint32_t index, int dmabuf_fd) = 0;
+ virtual void BindDmabuf(PortType port,
+ uint32_t index,
+ base::ScopedFD dmabuf_fd) = 0;
// Passes a buffer to the accelerator. For input buffer, the accelerator
// will process it. For output buffer, the accelerator will output content

Powered by Google App Engine
This is Rietveld 408576698