chromium/third_party/blink/renderer/platform/widget/compositing/widget_swap_queue.h

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

#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_WIDGET_COMPOSITING_WIDGET_SWAP_QUEUE_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_WIDGET_COMPOSITING_WIDGET_SWAP_QUEUE_H_

#include <map>
#include "base/synchronization/lock.h"
#include "third_party/blink/public/mojom/widget/platform_widget.mojom-blink.h"
#include "third_party/blink/renderer/platform/allow_discouraged_type.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"

namespace blink {

// Queue used to keep track of which VisualStateRequestCallback should be
// invoked after a particular compositor frame swap. The callbacks are
// guaranteed to be processed after the frame is processed, but there is no
// guarantee that nothing else happens between processing the frame and
// processing the callback.
class WidgetSwapQueue {};

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_PLATFORM_WIDGET_COMPOSITING_WIDGET_SWAP_QUEUE_H_