Lots of random cleanups, mostly for native_theme_win.cc:
[chromium-blink-merge.git] / cc / base / latency_info_swap_promise.h
bloba210a3f1ea949b42c56804102e8e9a8b6e8483e6
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_BASE_LATENCY_INFO_SWAP_PROMISE_H_
6 #define CC_BASE_LATENCY_INFO_SWAP_PROMISE_H_
8 #include "base/compiler_specific.h"
9 #include "cc/base/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 virtual ~LatencyInfoSwapPromise();
19 virtual void DidSwap(CompositorFrameMetadata* metadata) OVERRIDE;
20 virtual void DidNotSwap(DidNotSwapReason reason) OVERRIDE;
22 virtual int64 TraceId() const OVERRIDE;
24 private:
25 ui::LatencyInfo latency_;
28 } // namespace cc
30 #endif // CC_BASE_LATENCY_INFO_SWAP_PROMISE_H_