summaryrefslogtreecommitdiff
path: root/chromium/media/gpu/vaapi/va_surface.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/media/gpu/vaapi/va_surface.h')
-rw-r--r--chromium/media/gpu/vaapi/va_surface.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/chromium/media/gpu/vaapi/va_surface.h b/chromium/media/gpu/vaapi/va_surface.h
index 79f8cbe020d..a6f4ac5ea2f 100644
--- a/chromium/media/gpu/vaapi/va_surface.h
+++ b/chromium/media/gpu/vaapi/va_surface.h
@@ -85,15 +85,12 @@ namespace media {
//
class VASurface : public base::RefCountedThreadSafe<VASurface> {
public:
- // Provided by user, will be called when all references to the surface
- // are released.
- // TODO(mcasas): make this a OnceCallback, https://crbug.com/822346.
- using ReleaseCB = base::Callback<void(VASurfaceID)>;
+ using ReleaseCB = base::OnceCallback<void(VASurfaceID)>;
VASurface(VASurfaceID va_surface_id,
const gfx::Size& size,
unsigned int format,
- const ReleaseCB& release_cb);
+ ReleaseCB release_cb);
VASurfaceID id() const { return va_surface_id_; }
const gfx::Size& size() const { return size_; }
@@ -106,7 +103,7 @@ class VASurface : public base::RefCountedThreadSafe<VASurface> {
const VASurfaceID va_surface_id_;
const gfx::Size size_;
const unsigned int format_;
- const ReleaseCB release_cb_;
+ ReleaseCB release_cb_;
DISALLOW_COPY_AND_ASSIGN(VASurface);
};