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