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

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

Issue 1939143002: Remove all uses of skia::RefPtr and stale includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bad rebase Created 4 years, 7 months 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
« no previous file with comments | « cc/proto/image_serialization_processor.h ('k') | cc/quads/render_pass.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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_PROTO_SKIA_CONVERSIONS_H_ 5 #ifndef CC_PROTO_SKIA_CONVERSIONS_H_
6 #define CC_PROTO_SKIA_CONVERSIONS_H_ 6 #define CC_PROTO_SKIA_CONVERSIONS_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/proto/skregion.pb.h" 9 #include "cc/proto/skregion.pb.h"
10 #include "cc/proto/skxfermode.pb.h" 10 #include "cc/proto/skxfermode.pb.h"
11 #include "third_party/skia/include/core/SkRegion.h" 11 #include "third_party/skia/include/core/SkRegion.h"
12 #include "third_party/skia/include/core/SkXfermode.h" 12 #include "third_party/skia/include/core/SkXfermode.h"
13 13
14 class SkRegion; 14 class SkRegion;
15 class SkRRect; 15 class SkRRect;
16 class SkXferMode;
17 16
18 namespace cc { 17 namespace cc {
19 18
20 namespace proto { 19 namespace proto {
21 class SkRRect; 20 class SkRRect;
22 } 21 }
23 22
24 // TODO(dtrainor): Move these to a class and make them static 23 // TODO(dtrainor): Move these to a class and make them static
25 // (crbug.com/548432). 24 // (crbug.com/548432).
26 CC_EXPORT SkRegion::Op SkRegionOpFromProto(proto::SkRegion::Op op); 25 CC_EXPORT SkRegion::Op SkRegionOpFromProto(proto::SkRegion::Op op);
27 CC_EXPORT proto::SkRegion::Op SkRegionOpToProto(SkRegion::Op op); 26 CC_EXPORT proto::SkRegion::Op SkRegionOpToProto(SkRegion::Op op);
28 27
29 CC_EXPORT SkXfermode::Mode SkXfermodeModeFromProto( 28 CC_EXPORT SkXfermode::Mode SkXfermodeModeFromProto(
30 proto::SkXfermode::Mode mode); 29 proto::SkXfermode::Mode mode);
31 CC_EXPORT proto::SkXfermode::Mode SkXfermodeModeToProto(SkXfermode::Mode mode); 30 CC_EXPORT proto::SkXfermode::Mode SkXfermodeModeToProto(SkXfermode::Mode mode);
32 31
33 CC_EXPORT void SkRRectToProto(const SkRRect& rect, proto::SkRRect* proto); 32 CC_EXPORT void SkRRectToProto(const SkRRect& rect, proto::SkRRect* proto);
34 CC_EXPORT SkRRect ProtoToSkRRect(const proto::SkRRect& proto); 33 CC_EXPORT SkRRect ProtoToSkRRect(const proto::SkRRect& proto);
35 34
36 } // namespace cc 35 } // namespace cc
37 36
38 #endif // CC_PROTO_SKIA_CONVERSIONS_H_ 37 #endif // CC_PROTO_SKIA_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « cc/proto/image_serialization_processor.h ('k') | cc/quads/render_pass.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698