Revert of Roll src/third_party/WebKit e0eac24:489c548 (svn 193311:193320) (patchset...
[chromium-blink-merge.git] / skia / ext / skia_utils_base.h
blob01cf8edd11f0af7eef981e7b6003f1f3c7aa96f5
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
3 // found in the LICENSE file.
5 #ifndef SKIA_EXT_SKIA_UTILS_BASE_H_
6 #define SKIA_EXT_SKIA_UTILS_BASE_H_
8 #include "base/pickle.h"
9 #include "third_party/skia/include/ports/SkFontConfigInterface.h"
11 namespace skia {
13 // Return true if the pickle/iterator contains a string. If so, and if str
14 // is not null, copy that string into str.
15 SK_API bool ReadSkString(PickleIterator* iter, SkString* str);
17 // Return true if the pickle/iterator contains a FontIdentity. If so, and if
18 // identity is not null, copy it into identity.
19 SK_API bool ReadSkFontIdentity(PickleIterator* iter,
20 SkFontConfigInterface::FontIdentity* identity);
22 // Return true if str can be written into the request pickle.
23 SK_API bool WriteSkString(Pickle* pickle, const SkString& str);
25 // Return true if identity can be written into the request pickle.
26 SK_API bool WriteSkFontIdentity(
27 Pickle* pickle,
28 const SkFontConfigInterface::FontIdentity& identity);
30 } // namespace skia
32 #endif // SKIA_EXT_SKIA_UTILS_BASE_H_