Commit 0ad21a98 authored by Michael Spang's avatar Michael Spang Committed by Commit Bot

ozone: Remove rvalue references except in move ctor/assignment

These are not supposed to be widely used per the style guide, and aren't
necessary where we're using them. Also const&& makes no sense.

Bug: none
Test: compile
Change-Id: Id16a193d6dfbeee109a1bd6ade61800afbe07574
Reviewed-on: https://chromium-review.googlesource.com/1118976
Commit-Queue: Michael Spang <spang@chromium.org>
Reviewed-by: default avatarDaniel Nicoara <dnicoara@chromium.org>
Cr-Commit-Position: refs/heads/master@{#572245}
parent 9ef3909f
...@@ -186,7 +186,7 @@ void DrmThread::CreateBufferFromFds( ...@@ -186,7 +186,7 @@ void DrmThread::CreateBufferFromFds(
gfx::AcceleratedWidget widget, gfx::AcceleratedWidget widget,
const gfx::Size& size, const gfx::Size& size,
gfx::BufferFormat format, gfx::BufferFormat format,
std::vector<base::ScopedFD>&& fds, std::vector<base::ScopedFD> fds,
const std::vector<gfx::NativePixmapPlane>& planes, const std::vector<gfx::NativePixmapPlane>& planes,
scoped_refptr<GbmBuffer>* buffer) { scoped_refptr<GbmBuffer>* buffer) {
scoped_refptr<GbmDevice> gbm = scoped_refptr<GbmDevice> gbm =
......
...@@ -75,7 +75,7 @@ class DrmThread : public base::Thread, ...@@ -75,7 +75,7 @@ class DrmThread : public base::Thread,
void CreateBufferFromFds(gfx::AcceleratedWidget widget, void CreateBufferFromFds(gfx::AcceleratedWidget widget,
const gfx::Size& size, const gfx::Size& size,
gfx::BufferFormat format, gfx::BufferFormat format,
std::vector<base::ScopedFD>&& fds, std::vector<base::ScopedFD> fds,
const std::vector<gfx::NativePixmapPlane>& planes, const std::vector<gfx::NativePixmapPlane>& planes,
scoped_refptr<GbmBuffer>* buffer); scoped_refptr<GbmBuffer>* buffer);
void GetScanoutFormats(gfx::AcceleratedWidget widget, void GetScanoutFormats(gfx::AcceleratedWidget widget,
......
...@@ -53,7 +53,7 @@ scoped_refptr<GbmBuffer> DrmThreadProxy::CreateBufferFromFds( ...@@ -53,7 +53,7 @@ scoped_refptr<GbmBuffer> DrmThreadProxy::CreateBufferFromFds(
gfx::AcceleratedWidget widget, gfx::AcceleratedWidget widget,
const gfx::Size& size, const gfx::Size& size,
gfx::BufferFormat format, gfx::BufferFormat format,
std::vector<base::ScopedFD>&& fds, std::vector<base::ScopedFD> fds,
const std::vector<gfx::NativePixmapPlane>& planes) { const std::vector<gfx::NativePixmapPlane>& planes) {
scoped_refptr<GbmBuffer> buffer; scoped_refptr<GbmBuffer> buffer;
PostSyncTask( PostSyncTask(
......
...@@ -42,7 +42,7 @@ class DrmThreadProxy { ...@@ -42,7 +42,7 @@ class DrmThreadProxy {
gfx::AcceleratedWidget widget, gfx::AcceleratedWidget widget,
const gfx::Size& size, const gfx::Size& size,
gfx::BufferFormat format, gfx::BufferFormat format,
std::vector<base::ScopedFD>&& fds, std::vector<base::ScopedFD> fds,
const std::vector<gfx::NativePixmapPlane>& planes); const std::vector<gfx::NativePixmapPlane>& planes);
void GetScanoutFormats(gfx::AcceleratedWidget widget, void GetScanoutFormats(gfx::AcceleratedWidget widget,
......
...@@ -36,10 +36,9 @@ GbmBuffer::GbmBuffer(const scoped_refptr<GbmDevice>& gbm, ...@@ -36,10 +36,9 @@ GbmBuffer::GbmBuffer(const scoped_refptr<GbmDevice>& gbm,
uint32_t format, uint32_t format,
uint32_t flags, uint32_t flags,
uint64_t modifier, uint64_t modifier,
std::vector<base::ScopedFD>&& fds, std::vector<base::ScopedFD> fds,
const gfx::Size& size, const gfx::Size& size,
std::vector<gfx::NativePixmapPlane> planes)
const std::vector<gfx::NativePixmapPlane>&& planes)
: drm_(gbm), : drm_(gbm),
bo_(bo), bo_(bo),
format_modifier_(modifier), format_modifier_(modifier),
...@@ -254,7 +253,7 @@ scoped_refptr<GbmBuffer> GbmBuffer::CreateBufferFromFds( ...@@ -254,7 +253,7 @@ scoped_refptr<GbmBuffer> GbmBuffer::CreateBufferFromFds(
const scoped_refptr<GbmDevice>& gbm, const scoped_refptr<GbmDevice>& gbm,
uint32_t format, uint32_t format,
const gfx::Size& size, const gfx::Size& size,
std::vector<base::ScopedFD>&& fds, std::vector<base::ScopedFD> fds,
const std::vector<gfx::NativePixmapPlane>& planes) { const std::vector<gfx::NativePixmapPlane>& planes) {
TRACE_EVENT2("drm", "GbmBuffer::CreateBufferFromFD", "device", TRACE_EVENT2("drm", "GbmBuffer::CreateBufferFromFD", "device",
gbm->device_path().value(), "size", size.ToString()); gbm->device_path().value(), "size", size.ToString());
......
...@@ -40,7 +40,7 @@ class GbmBuffer : public ScanoutBuffer { ...@@ -40,7 +40,7 @@ class GbmBuffer : public ScanoutBuffer {
const scoped_refptr<GbmDevice>& gbm, const scoped_refptr<GbmDevice>& gbm,
uint32_t format, uint32_t format,
const gfx::Size& size, const gfx::Size& size,
std::vector<base::ScopedFD>&& fds, std::vector<base::ScopedFD> fds,
const std::vector<gfx::NativePixmapPlane>& planes); const std::vector<gfx::NativePixmapPlane>& planes);
uint32_t GetFormat() const { return format_; } uint32_t GetFormat() const { return format_; }
uint32_t GetFlags() const { return flags_; } uint32_t GetFlags() const { return flags_; }
...@@ -71,9 +71,9 @@ class GbmBuffer : public ScanoutBuffer { ...@@ -71,9 +71,9 @@ class GbmBuffer : public ScanoutBuffer {
uint32_t format, uint32_t format,
uint32_t flags, uint32_t flags,
uint64_t modifier, uint64_t modifier,
std::vector<base::ScopedFD>&& fds, std::vector<base::ScopedFD> fds,
const gfx::Size& size, const gfx::Size& size,
const std::vector<gfx::NativePixmapPlane>&& planes); std::vector<gfx::NativePixmapPlane> planes);
~GbmBuffer() override; ~GbmBuffer() override;
static scoped_refptr<GbmBuffer> CreateBufferForBO( static scoped_refptr<GbmBuffer> CreateBufferForBO(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment