chromium/media/renderers/resource_sync_token_client.h

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef MEDIA_RENDERERS_RESOURCE_SYNC_TOKEN_CLIENT_H_
#define MEDIA_RENDERERS_RESOURCE_SYNC_TOKEN_CLIENT_H_

#include "gpu/command_buffer/common/sync_token.h"
#include "media/base/media_export.h"
#include "media/base/video_frame.h"

namespace gpu {
class InterfaceBase;
}

namespace media {

// A SyncTokenClient specialized in handling SyncTokens provided for resource
// return during a viz::ReleaseCallback. It attempts to minimize the number of
// waits and new sync tokens generated.
class MEDIA_EXPORT ResourceSyncTokenClient
    : public VideoFrame::SyncTokenClient {};

}  // namespace media

#endif  // MEDIA_RENDERERS_RESOURCE_SYNC_TOKEN_CLIENT_H_