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

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

Issue 81533002: Use LatencyInfoSwapPromise to track LatencyInfo through compositor (Closed) Base URL: http://git.chromium.org/chromium/src.git@swap_promise_2
Patch Set: reupload Created 7 years 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/base/latency_info_swap_promise.cc » ('j') | cc/base/swap_promise.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_BASE_LATENCY_INFO_SWAP_PROMISE_H_
6 #define CC_BASE_LATENCY_INFO_SWAP_PROMISE_H_
7
8 #include "base/compiler_specific.h"
9 #include "cc/base/swap_promise.h"
10 #include "ui/events/latency_info.h"
11
12 namespace cc {
13
14 class LatencyInfoSwapPromise : public SwapPromise {
15 public:
16 explicit LatencyInfoSwapPromise(const ui::LatencyInfo& latency_info);
17 virtual ~LatencyInfoSwapPromise();
18
19 virtual void DidSwap(CompositorFrameMetadata* metadata) OVERRIDE;
20 virtual void DidNotSwap(DidNotSwapReason reason) OVERRIDE;
21
22 const ui::LatencyInfo& GetLatencyInfo();
danakj 2013/11/27 20:11:42 This is no longer used, remove it.
Yufeng Shen (Slow to review) 2013/11/27 20:18:52 Done.
23
24 private:
25 ui::LatencyInfo latency_;
26 };
27
28 } // namespace cc
29
30 #endif // CC_BASE_LATENCY_INFO_SWAP_PROMISE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/base/latency_info_swap_promise.cc » ('j') | cc/base/swap_promise.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698