blob: d653c3a1d3224745bf68db9f850063cd9ee7fb8b [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.
#ifndef MEDIA_BASE_OUTPUT_WITH_RELEASE_MAILBOX_CB_H_
#define MEDIA_BASE_OUTPUT_WITH_RELEASE_MAILBOX_CB_H_
#include "base/callback.h"
#include "base/memory/ref_counted.h"
#include "media/base/video_frame.h"
namespace media {
// This is soon to be deprecated in favor of VideoFrame destruction CBs.
// Please do not use this.
namespace deprecated {
// Similar to VideoFrame::ReleaseMailboxCB for now.
using ReleaseMailboxCB = base::OnceCallback<void(const gpu::SyncToken&)>;
using OutputWithReleaseMailboxCB =
base::RepeatingCallback<void(ReleaseMailboxCB, scoped_refptr<VideoFrame>)>;
} // namespace deprecated
} // namespace media
#endif // MEDIA_BASE_OUTPUT_WITH_RELEASE_MAILBOX_CB_H_