chromium/third_party/blink/renderer/platform/widget/compositing/queue_report_time_swap_promise.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_QUEUE_REPORT_TIME_SWAP_PROMISE_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_WIDGET_COMPOSITING_QUEUE_REPORT_TIME_SWAP_PROMISE_H_

#include "base/memory/scoped_refptr.h"
#include "base/task/single_thread_task_runner.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "cc/trees/swap_promise.h"

namespace blink {

// This class invokes DrainCallback to drain queued callbacks for frame numbers
// lower or equal to |source_frame_number| when the commit results in a
// successful activation of the pending layer tree in swap promise.
//
// This class doesn't have the reporting callback of the swap time.
class QueueReportTimeSwapPromise : public cc::SwapPromise {};

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_PLATFORM_WIDGET_COMPOSITING_QUEUE_REPORT_TIME_SWAP_PROMISE_H_