Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: cc/output/latency_info_swap_promise.h

Issue 1871233002: Move LatencyInfo to ui/latency_info (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix some more gyp issues Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/output/compositor_frame_metadata.h ('k') | cc/surfaces/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/events/latency_info.h" 12 #include "ui/latency_info/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_
OLDNEW
« no previous file with comments | « cc/output/compositor_frame_metadata.h ('k') | cc/surfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698