summaryrefslogtreecommitdiff
path: root/chromium/media/gpu/windows/output_with_release_mailbox_cb.h
blob: 499d6e5a352871ef2c678330e0e570d92b6c58f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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,
                                 const scoped_refptr<VideoFrame>&)>;
}  // namespace deprecated

}  // namespace media

#endif  // MEDIA_BASE_OUTPUT_WITH_RELEASE_MAILBOX_CB_H_