OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_BASE_LATENCY_INFO_SWAP_PROMISE_H_ | 5 #ifndef CC_BASE_LATENCY_INFO_SWAP_PROMISE_H_ |
6 #define CC_BASE_LATENCY_INFO_SWAP_PROMISE_H_ | 6 #define CC_BASE_LATENCY_INFO_SWAP_PROMISE_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "cc/base/swap_promise.h" | 9 #include "cc/base/swap_promise.h" |
10 #include "ui/events/latency_info.h" | 10 #include "ui/events/latency_info.h" |
11 | 11 |
12 namespace cc { | 12 namespace cc { |
13 | 13 |
14 class CC_EXPORT LatencyInfoSwapPromise : public SwapPromise { | 14 class CC_EXPORT LatencyInfoSwapPromise : public SwapPromise { |
15 public: | 15 public: |
16 explicit LatencyInfoSwapPromise(const ui::LatencyInfo& latency_info); | 16 explicit LatencyInfoSwapPromise(const ui::LatencyInfo& latency_info); |
17 virtual ~LatencyInfoSwapPromise(); | 17 virtual ~LatencyInfoSwapPromise(); |
18 | 18 |
19 virtual void DidSwap(CompositorFrameMetadata* metadata) OVERRIDE; | 19 virtual void DidSwap(CompositorFrameMetadata* metadata) OVERRIDE; |
20 virtual void DidNotSwap(DidNotSwapReason reason) OVERRIDE; | 20 virtual void DidNotSwap(DidNotSwapReason reason) OVERRIDE; |
21 | 21 |
22 private: | 22 private: |
23 ui::LatencyInfo latency_; | 23 ui::LatencyInfo latency_; |
24 }; | 24 }; |
25 | 25 |
26 } // namespace cc | 26 } // namespace cc |
27 | 27 |
28 #endif // CC_BASE_LATENCY_INFO_SWAP_PROMISE_H_ | 28 #endif // CC_BASE_LATENCY_INFO_SWAP_PROMISE_H_ |
OLD | NEW |