blob: 66006daf492d312176ca7c76f39f39e5dcca86da [file] [log] [blame]
// 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,
const ReleaseCB& release_cb)
: va_surface_id_(va_surface_id),
size_(size),
format_(format),
release_cb_(release_cb) {
DCHECK(release_cb_);
}
VASurface::~VASurface() {
release_cb_.Run(va_surface_id_);
}
} // namespace media