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

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

Issue 2783973002: Moving LatencyInfo into a separate component. (Closed)
Patch Set: Rebase again Created 3 years, 8 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/gl_renderer_unittest.cc ('k') | cc/output/output_surface_frame.h » ('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/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 WillSwap(CompositorFrameMetadata* metadata) override; 22 void WillSwap(CompositorFrameMetadata* metadata) override;
23 void DidSwap() override; 23 void DidSwap() override;
24 DidNotSwapAction DidNotSwap(DidNotSwapReason reason) override; 24 DidNotSwapAction DidNotSwap(DidNotSwapReason reason) override;
25 void OnCommit() override; 25 void OnCommit() override;
26 26
27 int64_t TraceId() const override; 27 int64_t TraceId() const override;
28 28
29 private: 29 private:
30 ui::LatencyInfo latency_; 30 ui::LatencyInfo latency_;
31 }; 31 };
32 32
33 } // namespace cc 33 } // namespace cc
34 34
35 #endif // CC_OUTPUT_LATENCY_INFO_SWAP_PROMISE_H_ 35 #endif // CC_OUTPUT_LATENCY_INFO_SWAP_PROMISE_H_
OLDNEW
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/output_surface_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698