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

Side by Side Diff: cc/proto/cc_conversions.h

Issue 1460503004: Add support for converting cc::Region to and from protobuf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-more-conversions
Patch Set: Sad missing brackets Created 5 years, 1 month 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
OLDNEW
(Empty)
1 // Copyright 2015 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_CC_CONVERSIONS_H_
6 #define CC_PROTO_CC_CONVERSIONS_H_
7
8 #include "cc/base/cc_export.h"
9
10 namespace cc {
11 class Region;
12
13 namespace proto {
14 class Region;
15 } // namespace proto
16
17 // TODO(dtrainor): Move these to a class and make them static
18 // (crbug.com/548432).
19 CC_EXPORT void RegionToProto(const Region& region, proto::Region* proto);
20 CC_EXPORT Region RegionFromProto(const proto::Region& proto);
21
22 } // namespace cc
23
24 #endif // CC_PROTO_CC_CONVERSIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698