Add ICU message format support
[chromium-blink-merge.git] / cc / output / latency_info_swap_promise.h
blob9a4deb6e9c6ec2dd5ed924424c229e29102d33de
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CC_OUTPUT_LATENCY_INFO_SWAP_PROMISE_H_
6 #define CC_OUTPUT_LATENCY_INFO_SWAP_PROMISE_H_
8 #include "base/compiler_specific.h"
9 #include "cc/output/swap_promise.h"
10 #include "ui/events/latency_info.h"
12 namespace cc {
14 class CC_EXPORT LatencyInfoSwapPromise : public SwapPromise {
15 public:
16 explicit LatencyInfoSwapPromise(const ui::LatencyInfo& latency_info);
17 ~LatencyInfoSwapPromise() override;
19 void DidActivate() override {}
20 void DidSwap(CompositorFrameMetadata* metadata) override;
21 void DidNotSwap(DidNotSwapReason reason) override;
22 void OnCommit() override;
24 int64 TraceId() const override;
26 private:
27 ui::LatencyInfo latency_;
30 } // namespace cc
32 #endif // CC_OUTPUT_LATENCY_INFO_SWAP_PROMISE_H_