123456789101112131415161718192021222324 |
- // Copyright 2017 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- #include "media/gpu/vaapi/va_surface.h"
- namespace media {
- VASurface::VASurface(VASurfaceID va_surface_id,
- const gfx::Size& size,
- unsigned int format,
- ReleaseCB release_cb)
- : va_surface_id_(va_surface_id),
- size_(size),
- format_(format),
- release_cb_(std::move(release_cb)) {
- DCHECK(release_cb_);
- }
- VASurface::~VASurface() {
- std::move(release_cb_).Run(va_surface_id_);
- }
- } // namespace media
|