blob: a7941f1ae5cbc8c2d945889a78a9f82f9c7b5164 [file] [log] [blame]
// Copyright 2013 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 CC_BASE_LATENCY_INFO_SWAP_PROMISE_H_
#define CC_BASE_LATENCY_INFO_SWAP_PROMISE_H_
#include "base/compiler_specific.h"
#include "cc/base/swap_promise.h"
#include "ui/events/latency_info.h"
namespace cc {
class CC_EXPORT LatencyInfoSwapPromise : public SwapPromise {
public:
explicit LatencyInfoSwapPromise(const ui::LatencyInfo& latency_info);
~LatencyInfoSwapPromise() override;
void DidSwap(CompositorFrameMetadata* metadata) override;
void DidNotSwap(DidNotSwapReason reason) override;
int64 TraceId() const override;
private:
ui::LatencyInfo latency_;
};
} // namespace cc
#endif // CC_BASE_LATENCY_INFO_SWAP_PROMISE_H_