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

Unified Diff: chrome/gpu/arc_video_accelerator.h

Issue 2513973002: Use mojo typemap to simplify the code using DmabufPlane (Closed)
Patch Set: Addressed comments Created 4 years 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_gpu_video_decode_accelerator.cc ('k') | chrome/gpu/gpu_arc_video_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/gpu/arc_video_accelerator.h
diff --git a/chrome/gpu/arc_video_accelerator.h b/chrome/gpu/arc_video_accelerator.h
index f19fe3f8647acc8e30bd2d00e333e2e3f2e99144..46b3420de00fbf5b16eaa670eb71b4cef199461a 100644
--- a/chrome/gpu/arc_video_accelerator.h
+++ b/chrome/gpu/arc_video_accelerator.h
@@ -8,6 +8,7 @@
#include <vector>
#include "base/files/scoped_file.h"
+#include "components/arc/video_accelerator/video_accelerator.h"
namespace chromeos {
namespace arc {
@@ -81,13 +82,6 @@ class ArcVideoAccelerator {
// format of each VDA on Chromium is supported.
};
- struct DmabufPlane {
- DmabufPlane(int32_t offset, int32_t stride)
- : offset(offset), stride(stride) {}
- int32_t offset; // in bytes
- int32_t stride; // in bytes
- };
-
// The callbacks of the ArcVideoAccelerator. The user of this class should
// implement this interface.
class Client {
@@ -137,10 +131,12 @@ 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,
- base::ScopedFD dmabuf_fd,
- const std::vector<DmabufPlane>& dmabuf_planes) = 0;
+ virtual void BindDmabuf(
+ PortType port,
+ uint32_t index,
+ base::ScopedFD dmabuf_fd,
+ const std::vector<::arc::ArcVideoAcceleratorDmabufPlane>&
+ dmabuf_planes) = 0;
// Passes a buffer to the accelerator. For input buffer, the accelerator
// will process it. For output buffer, the accelerator will output content
« no previous file with comments | « chrome/gpu/arc_gpu_video_decode_accelerator.cc ('k') | chrome/gpu/gpu_arc_video_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698