OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkDWriteFontFileStream_DEFINED | 8 #ifndef SkDWriteFontFileStream_DEFINED |
9 #define SkDWriteFontFileStream_DEFINED | 9 #define SkDWriteFontFileStream_DEFINED |
10 | 10 |
11 #include "SkTypes.h" | 11 #include "SkTypes.h" |
12 | 12 |
| 13 #include "SkMutex.h" |
13 #include "SkStream.h" | 14 #include "SkStream.h" |
14 #include "SkTScopedComPtr.h" | 15 #include "SkTScopedComPtr.h" |
15 | 16 |
16 #include <dwrite.h> | 17 #include <dwrite.h> |
17 | 18 |
18 /** | 19 /** |
19 * An SkStream backed by an IDWriteFontFileStream. | 20 * An SkStream backed by an IDWriteFontFileStream. |
20 * This allows Skia code to read an IDWriteFontFileStream. | 21 * This allows Skia code to read an IDWriteFontFileStream. |
21 */ | 22 */ |
22 class SkDWriteFontFileStream : public SkStreamMemory { | 23 class SkDWriteFontFileStream : public SkStreamMemory { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 69 |
69 private: | 70 private: |
70 explicit SkDWriteFontFileStreamWrapper(SkStream* stream); | 71 explicit SkDWriteFontFileStreamWrapper(SkStream* stream); |
71 virtual ~SkDWriteFontFileStreamWrapper() { } | 72 virtual ~SkDWriteFontFileStreamWrapper() { } |
72 | 73 |
73 ULONG fRefCount; | 74 ULONG fRefCount; |
74 SkAutoTDelete<SkStream> fStream; | 75 SkAutoTDelete<SkStream> fStream; |
75 SkMutex fStreamMutex; | 76 SkMutex fStreamMutex; |
76 }; | 77 }; |
77 #endif | 78 #endif |
OLD | NEW |