| 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 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 void** fragmentContext); | 61 void** fragmentContext); |
| 62 | 62 |
| 63 virtual void STDMETHODCALLTYPE ReleaseFileFragment(void* fragmentContext); | 63 virtual void STDMETHODCALLTYPE ReleaseFileFragment(void* fragmentContext); |
| 64 virtual HRESULT STDMETHODCALLTYPE GetFileSize(UINT64* fileSize); | 64 virtual HRESULT STDMETHODCALLTYPE GetFileSize(UINT64* fileSize); |
| 65 virtual HRESULT STDMETHODCALLTYPE GetLastWriteTime(UINT64* lastWriteTime); | 65 virtual HRESULT STDMETHODCALLTYPE GetLastWriteTime(UINT64* lastWriteTime); |
| 66 | 66 |
| 67 static HRESULT Create(SkStream* stream, SkDWriteFontFileStreamWrapper** stre
amFontFileStream); | 67 static HRESULT Create(SkStream* stream, SkDWriteFontFileStreamWrapper** stre
amFontFileStream); |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 explicit SkDWriteFontFileStreamWrapper(SkStream* stream); | 70 explicit SkDWriteFontFileStreamWrapper(SkStream* stream); |
| 71 virtual ~SkDWriteFontFileStreamWrapper() { } |
| 71 | 72 |
| 72 ULONG fRefCount; | 73 ULONG fRefCount; |
| 73 SkAutoTUnref<SkStream> fStream; | 74 SkAutoTUnref<SkStream> fStream; |
| 74 SkMutex fStreamMutex; | 75 SkMutex fStreamMutex; |
| 75 }; | 76 }; |
| 76 #endif | 77 #endif |
| OLD | NEW |