| 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
|
|
|