OLD | NEW |
| (Empty) |
1 // Copyright 2016 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_PROTO_BASE_CONVERSIONS_H_ | |
6 #define CC_PROTO_BASE_CONVERSIONS_H_ | |
7 | |
8 #include "base/time/time.h" | |
9 #include "cc/base/cc_export.h" | |
10 | |
11 namespace cc { | |
12 | |
13 // TODO(dtrainor): Move these to a class and make them static | |
14 // (crbug.com/548432). | |
15 // We should probably have a better way for sending these. | |
16 CC_EXPORT int64_t TimeTicksToProto(base::TimeTicks ticks); | |
17 CC_EXPORT base::TimeTicks ProtoToTimeTicks(int64_t ticks); | |
18 | |
19 } // namespace cc | |
20 | |
21 #endif // CC_PROTO_BASE_CONVERSIONS_H_ | |
OLD | NEW |