summaryrefslogtreecommitdiffstats
path: root/cc/proto/base_conversions.h
blob: b862e3a78225df908e732903d8fcc5708af40967 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CC_PROTO_BASE_CONVERSIONS_H_
#define CC_PROTO_BASE_CONVERSIONS_H_

#include "base/time/time.h"
#include "cc/base/cc_export.h"

namespace cc {

// TODO(dtrainor): Move these to a class and make them static
// (crbug.com/548432).
// We should probably have a better way for sending these.
CC_EXPORT int64_t TimeTicksToProto(base::TimeTicks ticks);
CC_EXPORT base::TimeTicks ProtoToTimeTicks(int64_t ticks);

}  // namespace cc

#endif  // CC_PROTO_BASE_CONVERSIONS_H_