summaryrefslogtreecommitdiffstats
path: root/cc/proto/cc_conversions.h
blob: 4060e6f5a0fc3edb057184f07d7304f245a3b18e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2015 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_CC_CONVERSIONS_H_
#define CC_PROTO_CC_CONVERSIONS_H_

#include "cc/base/cc_export.h"

namespace cc {
class Region;

namespace proto {
class Region;
}  // namespace proto

// TODO(dtrainor): Move these to a class and make them static
// (crbug.com/548432).
CC_EXPORT void RegionToProto(const Region& region, proto::Region* proto);
CC_EXPORT Region RegionFromProto(const proto::Region& proto);

}  // namespace cc

#endif  // CC_PROTO_CC_CONVERSIONS_H_