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_BASE_SWAP_PROMISE_H_ | 5 #ifndef CC_BASE_SWAP_PROMISE_H_ |
6 #define CC_BASE_SWAP_PROMISE_H_ | 6 #define CC_BASE_SWAP_PROMISE_H_ |
7 | 7 |
8 #include "cc/output/compositor_frame_metadata.h" | 8 #include "cc/output/compositor_frame_metadata.h" |
9 | 9 |
10 namespace cc { | 10 namespace cc { |
(...skipping 25 matching lines...) Expand all Loading... | |
36 SWAP_FAILS, | 36 SWAP_FAILS, |
37 COMMIT_FAILS, | 37 COMMIT_FAILS, |
38 SWAP_PROMISE_LIST_OVERFLOW, | 38 SWAP_PROMISE_LIST_OVERFLOW, |
39 }; | 39 }; |
40 | 40 |
41 SwapPromise() {} | 41 SwapPromise() {} |
42 virtual ~SwapPromise() {} | 42 virtual ~SwapPromise() {} |
43 | 43 |
44 virtual void DidSwap(CompositorFrameMetadata* metadata) = 0; | 44 virtual void DidSwap(CompositorFrameMetadata* metadata) = 0; |
45 virtual void DidNotSwap(DidNotSwapReason reason) = 0; | 45 virtual void DidNotSwap(DidNotSwapReason reason) = 0; |
46 | |
47 virtual int64 TraceId() const = 0; | |
danakj
2014/07/09 16:58:19
Can you add a comment saying what this is for?
| |
46 }; | 48 }; |
47 | 49 |
48 } // namespace cc | 50 } // namespace cc |
49 | 51 |
50 #endif // CC_BASE_SWAP_PROMISE_H_ | 52 #endif // CC_BASE_SWAP_PROMISE_H_ |
OLD | NEW |