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

Side by Side Diff: skia/ext/skia_utils_base.h

Issue 825353003: Revert of Remove deprecated methods from Pickle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 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 | « sandbox/linux/syscall_broker/broker_host.cc ('k') | skia/ext/skia_utils_base.cc » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 SKIA_EXT_SKIA_UTILS_BASE_H_ 5 #ifndef SKIA_EXT_SKIA_UTILS_BASE_H_
6 #define SKIA_EXT_SKIA_UTILS_BASE_H_ 6 #define SKIA_EXT_SKIA_UTILS_BASE_H_
7 7
8 #include "base/pickle.h" 8 #include "base/pickle.h"
9 #include "third_party/skia/include/ports/SkFontConfigInterface.h" 9 #include "third_party/skia/include/ports/SkFontConfigInterface.h"
10 10
11 namespace skia { 11 namespace skia {
12 12
13 // Return true if the pickle/iterator contains a string. If so, and if str 13 // Return true if the pickle/iterator contains a string. If so, and if str
14 // is not null, copy that string into str. 14 // is not null, copy that string into str.
15 SK_API bool ReadSkString(PickleIterator* iter, SkString* str); 15 SK_API bool ReadSkString(const Pickle& pickle, PickleIterator* iter,
16 SkString* str);
16 17
17 // Return true if the pickle/iterator contains a FontIdentity. If so, and if 18 // Return true if the pickle/iterator contains a FontIdentity. If so, and if
18 // identity is not null, copy it into identity. 19 // identity is not null, copy it into identity.
19 SK_API bool ReadSkFontIdentity(PickleIterator* iter, 20 SK_API bool ReadSkFontIdentity(const Pickle& pickle, PickleIterator* iter,
20 SkFontConfigInterface::FontIdentity* identity); 21 SkFontConfigInterface::FontIdentity* identity);
21 22
22 // Return true if str can be written into the request pickle. 23 // Return true if str can be written into the request pickle.
23 SK_API bool WriteSkString(Pickle* pickle, const SkString& str); 24 SK_API bool WriteSkString(Pickle* pickle, const SkString& str);
24 25
25 // Return true if identity can be written into the request pickle. 26 // Return true if identity can be written into the request pickle.
26 SK_API bool WriteSkFontIdentity( 27 SK_API bool WriteSkFontIdentity(Pickle* pickle,
27 Pickle* pickle, 28 const SkFontConfigInterface::FontIdentity& identity);
28 const SkFontConfigInterface::FontIdentity& identity);
29 29
30 } // namespace skia 30 } // namespace skia
31 31
32 #endif // SKIA_EXT_SKIA_UTILS_BASE_H_ 32 #endif // SKIA_EXT_SKIA_UTILS_BASE_H_
33 33
OLDNEW
« no previous file with comments | « sandbox/linux/syscall_broker/broker_host.cc ('k') | skia/ext/skia_utils_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698