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

Unified Diff: skia/ext/skia_utils_base.h

Issue 12764009: re-land 187283 -- switch to skia's version of SkFontHost_fontconfig (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/ext/SkFontHost_fontconfig_impl.h ('k') | skia/ext/skia_utils_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/skia_utils_base.h
===================================================================
--- skia/ext/skia_utils_base.h (revision 0)
+++ skia/ext/skia_utils_base.h (revision 0)
@@ -0,0 +1,33 @@
+// Copyright (c) 2013 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 SKIA_EXT_SKIA_UTILS_BASE_H_
+#define SKIA_EXT_SKIA_UTILS_BASE_H_
+
+#include "base/pickle.h"
+#include "third_party/skia/include/ports/SkFontConfigInterface.h"
+
+namespace skia {
+
+// Return true if the pickle/iterator contains a string. If so, and if str
+// is not null, copy that string into str.
+SK_API bool ReadSkString(const Pickle& pickle, PickleIterator* iter,
+ SkString* str);
+
+// Return true if the pickle/iterator contains a FontIdentity. If so, and if
+// identity is not null, copy it into identity.
+SK_API bool ReadSkFontIdentity(const Pickle& pickle, PickleIterator* iter,
+ SkFontConfigInterface::FontIdentity* identity);
+
+// Return true if str can be written into the request pickle.
+SK_API bool WriteSkString(Pickle* pickle, const SkString& str);
+
+// Return true if identity can be written into the request pickle.
+SK_API bool WriteSkFontIdentity(Pickle* pickle,
+ const SkFontConfigInterface::FontIdentity& identity);
+
+} // namespace skia
+
+#endif // SKIA_EXT_SKIA_UTILS_BASE_H_
+
« no previous file with comments | « skia/ext/SkFontHost_fontconfig_impl.h ('k') | skia/ext/skia_utils_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698