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

Unified Diff: skia/ext/skia_utils_base.cc

Issue 2011713003: Roll skia to 8cc209111876b7c78b5ec577c9221d8ed5e21024 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/ext/skia_utils_base.h ('k') | skia/ext/skia_utils_ios.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/skia_utils_base.cc
diff --git a/skia/ext/skia_utils_base.cc b/skia/ext/skia_utils_base.cc
deleted file mode 100644
index 6643b499d1bbea41ee554fec82b1c7b75b42b655..0000000000000000000000000000000000000000
--- a/skia/ext/skia_utils_base.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// 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.
-
-#include "skia/ext/skia_utils_base.h"
-
-namespace skia {
-
-bool ReadSkString(base::PickleIterator* iter, SkString* str) {
- int reply_length;
- const char* reply_text;
-
- if (!iter->ReadData(&reply_text, &reply_length))
- return false;
-
- if (str)
- str->set(reply_text, reply_length);
- return true;
-}
-
-bool ReadSkFontIdentity(base::PickleIterator* iter,
- SkFontConfigInterface::FontIdentity* identity) {
- uint32_t reply_id;
- uint32_t reply_ttcIndex;
- int reply_length;
- const char* reply_text;
-
- if (!iter->ReadUInt32(&reply_id) ||
- !iter->ReadUInt32(&reply_ttcIndex) ||
- !iter->ReadData(&reply_text, &reply_length))
- return false;
-
- if (identity) {
- identity->fID = reply_id;
- identity->fTTCIndex = reply_ttcIndex;
- identity->fString.set(reply_text, reply_length);
- }
- return true;
-}
-
-bool WriteSkString(base::Pickle* pickle, const SkString& str) {
- return pickle->WriteData(str.c_str(), str.size());
-}
-
-bool WriteSkFontIdentity(base::Pickle* pickle,
- const SkFontConfigInterface::FontIdentity& identity) {
- return pickle->WriteUInt32(identity.fID) &&
- pickle->WriteUInt32(identity.fTTCIndex) &&
- WriteSkString(pickle, identity.fString);
-}
-
-} // namespace skia
-
« no previous file with comments | « skia/ext/skia_utils_base.h ('k') | skia/ext/skia_utils_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698