| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/common/font_config_ipc_linux.h" | 5 #include "content/common/font_config_ipc_linux.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <fcntl.h> | 8 #include <fcntl.h> |
| 9 #include <sys/mman.h> | 9 #include <sys/mman.h> |
| 10 #include <sys/socket.h> | 10 #include <sys/socket.h> |
| 11 #include <sys/stat.h> | 11 #include <sys/stat.h> |
| 12 #include <sys/uio.h> | 12 #include <sys/uio.h> |
| 13 #include <unistd.h> | 13 #include <unistd.h> |
| 14 | 14 |
| 15 #include "base/debug/trace_event.h" | |
| 16 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
| 17 #include "base/pickle.h" | 16 #include "base/pickle.h" |
| 18 #include "base/posix/unix_domain_socket_linux.h" | 17 #include "base/posix/unix_domain_socket_linux.h" |
| 18 #include "base/trace_event/trace_event.h" |
| 19 #include "skia/ext/refptr.h" | 19 #include "skia/ext/refptr.h" |
| 20 #include "skia/ext/skia_utils_base.h" | 20 #include "skia/ext/skia_utils_base.h" |
| 21 #include "third_party/skia/include/core/SkData.h" | 21 #include "third_party/skia/include/core/SkData.h" |
| 22 #include "third_party/skia/include/core/SkStream.h" | 22 #include "third_party/skia/include/core/SkStream.h" |
| 23 #include "third_party/skia/include/core/SkTypeface.h" | 23 #include "third_party/skia/include/core/SkTypeface.h" |
| 24 | 24 |
| 25 namespace content { | 25 namespace content { |
| 26 | 26 |
| 27 // Return a stream from the file descriptor, or NULL on failure. | 27 // Return a stream from the file descriptor, or NULL on failure. |
| 28 SkStreamAsset* StreamFromFD(int fd) { | 28 SkStreamAsset* StreamFromFD(int fd) { |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 return NULL; | 119 return NULL; |
| 120 } | 120 } |
| 121 | 121 |
| 122 SkStreamAsset* stream = StreamFromFD(result_fd); | 122 SkStreamAsset* stream = StreamFromFD(result_fd); |
| 123 CloseFD(result_fd); | 123 CloseFD(result_fd); |
| 124 return stream; | 124 return stream; |
| 125 } | 125 } |
| 126 | 126 |
| 127 } // namespace content | 127 } // namespace content |
| 128 | 128 |
| OLD | NEW |