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

Unified Diff: content/common/font_config_ipc_linux.cc

Issue 870133002: Move to SkStreamAsset for SkTypeface streams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Covariance requires proof. Created 5 years, 11 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 | « content/common/font_config_ipc_linux.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/font_config_ipc_linux.cc
diff --git a/content/common/font_config_ipc_linux.cc b/content/common/font_config_ipc_linux.cc
index c64aebf66a57fa3c432646d1906e5a15bf12b2ef..8de951b6f53d3b0a08f7c0a246183e7f650a56bc 100644
--- a/content/common/font_config_ipc_linux.cc
+++ b/content/common/font_config_ipc_linux.cc
@@ -20,11 +20,12 @@
#include "skia/ext/skia_utils_base.h"
#include "third_party/skia/include/core/SkData.h"
#include "third_party/skia/include/core/SkStream.h"
+#include "third_party/skia/include/core/SkTypeface.h"
namespace content {
// Return a stream from the file descriptor, or NULL on failure.
-SkStream* StreamFromFD(int fd) {
+SkStreamAsset* StreamFromFD(int fd) {
skia::RefPtr<SkData> data = skia::AdoptRef(SkData::NewFromFD(fd));
if (!data) {
return NULL;
@@ -94,7 +95,7 @@ bool FontConfigIPC::matchFamilyName(const char familyName[],
return true;
}
-SkStream* FontConfigIPC::openStream(const FontIdentity& identity) {
+SkStreamAsset* FontConfigIPC::openStream(const FontIdentity& identity) {
TRACE_EVENT0("sandbox_ipc", "FontConfigIPC::openStream");
Pickle request;
request.WriteInt(METHOD_OPEN);
@@ -118,7 +119,7 @@ SkStream* FontConfigIPC::openStream(const FontIdentity& identity) {
return NULL;
}
- SkStream* stream = StreamFromFD(result_fd);
+ SkStreamAsset* stream = StreamFromFD(result_fd);
CloseFD(result_fd);
return stream;
}
« no previous file with comments | « content/common/font_config_ipc_linux.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698