Index: ui/ozone/platform/drm/gpu/gbm_buffer.cc |
diff --git a/ui/ozone/platform/drm/gpu/gbm_buffer.cc b/ui/ozone/platform/drm/gpu/gbm_buffer.cc |
index 34570f0e9ea358bae9ecfdacdbc4f31e5ffb6732..ea69a1ea249f45bed029bdfe1b60bdb1f90baa4b 100644 |
--- a/ui/ozone/platform/drm/gpu/gbm_buffer.cc |
+++ b/ui/ozone/platform/drm/gpu/gbm_buffer.cc |
@@ -69,7 +69,7 @@ GbmPixmap::GbmPixmap(GbmSurfaceFactory* surface_manager) |
: surface_manager_(surface_manager) {} |
void GbmPixmap::Initialize(base::ScopedFD dma_buf, int dma_buf_pitch) { |
- dma_buf_ = dma_buf.Pass(); |
+ dma_buf_ = std::move(dma_buf); |
dma_buf_pitch_ = dma_buf_pitch; |
} |
@@ -82,7 +82,7 @@ bool GbmPixmap::InitializeFromBuffer(const scoped_refptr<GbmBuffer>& buffer) { |
PLOG(ERROR) << "Failed to export buffer to dma_buf"; |
return false; |
} |
- Initialize(dma_buf.Pass(), gbm_bo_get_stride(buffer->bo())); |
+ Initialize(std::move(dma_buf), gbm_bo_get_stride(buffer->bo())); |
buffer_ = buffer; |
return true; |
} |