chromium/third_party/blink/renderer/platform/widget/compositing/queue_report_time_swap_promise.cc

// 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.

#include "third_party/blink/renderer/platform/widget/compositing/queue_report_time_swap_promise.h"

#include "base/functional/callback_helpers.h"
#include "base/task/single_thread_task_runner.h"
#include "base/time/time.h"
#include "build/build_config.h"

#if BUILDFLAG(IS_ANDROID)
#include "third_party/blink/public/platform/platform.h"
#endif

namespace blink {
namespace {

void RunDrainAndSwapCallbacksOnCompositorThread(
    scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner,
    QueueReportTimeSwapPromise::DrainCallback drain_callback,
    int source_frame_number,
    base::OnceClosure swap_callback) {}

}  // namespace

QueueReportTimeSwapPromise::QueueReportTimeSwapPromise(
    int source_frame_number,
    DrainCallback drain_callback,
    base::OnceClosure swap_callback,
    scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner)
    :{}

QueueReportTimeSwapPromise::~QueueReportTimeSwapPromise() {}

void QueueReportTimeSwapPromise::WillSwap(
    viz::CompositorFrameMetadata* metadata) {}

void QueueReportTimeSwapPromise::DidSwap() {}

cc::SwapPromise::DidNotSwapAction QueueReportTimeSwapPromise::DidNotSwap(
    DidNotSwapReason reason,
    base::TimeTicks ts) {}

void QueueReportTimeSwapPromise::DidActivate() {}

}  // namespace blink