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_OUTPUT_LATENCY_INFO_SWAP_PROMISE_H_ | 5 #ifndef CC_OUTPUT_LATENCY_INFO_SWAP_PROMISE_H_ |
6 #define CC_OUTPUT_LATENCY_INFO_SWAP_PROMISE_H_ | 6 #define CC_OUTPUT_LATENCY_INFO_SWAP_PROMISE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "cc/output/swap_promise.h" | 11 #include "cc/output/swap_promise.h" |
12 #include "ui/latency_info/latency_info.h" | 12 #include "ui/events/latency_info.h" |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 | 15 |
16 class CC_EXPORT LatencyInfoSwapPromise : public SwapPromise { | 16 class CC_EXPORT LatencyInfoSwapPromise : public SwapPromise { |
17 public: | 17 public: |
18 explicit LatencyInfoSwapPromise(const ui::LatencyInfo& latency_info); | 18 explicit LatencyInfoSwapPromise(const ui::LatencyInfo& latency_info); |
19 ~LatencyInfoSwapPromise() override; | 19 ~LatencyInfoSwapPromise() override; |
20 | 20 |
21 void DidActivate() override {} | 21 void DidActivate() override {} |
22 void DidSwap(CompositorFrameMetadata* metadata) override; | 22 void DidSwap(CompositorFrameMetadata* metadata) override; |
23 void DidNotSwap(DidNotSwapReason reason) override; | 23 void DidNotSwap(DidNotSwapReason reason) override; |
24 void OnCommit() override; | 24 void OnCommit() override; |
25 | 25 |
26 int64_t TraceId() const override; | 26 int64_t TraceId() const override; |
27 | 27 |
28 private: | 28 private: |
29 ui::LatencyInfo latency_; | 29 ui::LatencyInfo latency_; |
30 }; | 30 }; |
31 | 31 |
32 } // namespace cc | 32 } // namespace cc |
33 | 33 |
34 #endif // CC_OUTPUT_LATENCY_INFO_SWAP_PROMISE_H_ | 34 #endif // CC_OUTPUT_LATENCY_INFO_SWAP_PROMISE_H_ |
OLD | NEW |