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

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

Issue 1178963003: Trace main thread commit in flow events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make OnCommitForSwapPromises protected and be called from WillCommit. Created 5 years, 6 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 | « no previous file | cc/output/latency_info_swap_promise.cc » ('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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "cc/output/swap_promise.h" 9 #include "cc/output/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 ~LatencyInfoSwapPromise() override; 17 ~LatencyInfoSwapPromise() override;
18 18
19 void DidActivate() override {} 19 void DidActivate() override {}
20 void DidSwap(CompositorFrameMetadata* metadata) override; 20 void DidSwap(CompositorFrameMetadata* metadata) override;
21 void DidNotSwap(DidNotSwapReason reason) override; 21 void DidNotSwap(DidNotSwapReason reason) override;
22 void OnCommit() override;
22 23
23 int64 TraceId() const override; 24 int64 TraceId() const override;
24 25
25 private: 26 private:
26 ui::LatencyInfo latency_; 27 ui::LatencyInfo latency_;
27 }; 28 };
28 29
29 } // namespace cc 30 } // namespace cc
30 31
31 #endif // CC_OUTPUT_LATENCY_INFO_SWAP_PROMISE_H_ 32 #endif // CC_OUTPUT_LATENCY_INFO_SWAP_PROMISE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/latency_info_swap_promise.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698