OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkIStream_DEFINED | 10 #ifndef SkIStream_DEFINED |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 virtual HRESULT STDMETHODCALLTYPE Seek(LARGE_INTEGER liDistanceToMove | 69 virtual HRESULT STDMETHODCALLTYPE Seek(LARGE_INTEGER liDistanceToMove |
70 , DWORD dwOrigin | 70 , DWORD dwOrigin |
71 , ULARGE_INTEGER* lpNewFilePointer); | 71 , ULARGE_INTEGER* lpNewFilePointer); |
72 | 72 |
73 virtual HRESULT STDMETHODCALLTYPE Stat(STATSTG* pStatstg | 73 virtual HRESULT STDMETHODCALLTYPE Stat(STATSTG* pStatstg |
74 , DWORD grfStatFlag); | 74 , DWORD grfStatFlag); |
75 }; | 75 }; |
76 | 76 |
77 /** | 77 /** |
78 * A minimal read-only IStream implementation which wraps an SkIStream. | 78 * A minimal read-only IStream implementation which wraps an SkStream. |
79 */ | 79 */ |
80 class SkIStream : public SkBaseIStream { | 80 class SkIStream : public SkBaseIStream { |
81 private: | 81 private: |
82 SkStream *fSkStream; | 82 SkStream *fSkStream; |
83 bool fDeleteOnRelease; | 83 const bool fDeleteOnRelease; |
84 ULARGE_INTEGER fLocation; | 84 ULARGE_INTEGER fLocation; |
85 | 85 |
86 SkIStream(SkStream* stream, bool fDeleteOnRelease); | 86 SkIStream(SkStream* stream, bool fDeleteOnRelease); |
87 virtual ~SkIStream(); | 87 virtual ~SkIStream(); |
88 | 88 |
89 public: | 89 public: |
90 HRESULT static CreateFromSkStream(SkStream* stream | 90 HRESULT static CreateFromSkStream(SkStream* stream |
91 , bool fDeleteOnRelease | 91 , bool fDeleteOnRelease |
92 , IStream ** ppStream); | 92 , IStream ** ppStream); |
93 | 93 |
(...skipping 28 matching lines...) Expand all Loading... |
122 , ULONG cb | 122 , ULONG cb |
123 , ULONG* pcbWritten); | 123 , ULONG* pcbWritten); |
124 | 124 |
125 virtual HRESULT STDMETHODCALLTYPE Commit(DWORD); | 125 virtual HRESULT STDMETHODCALLTYPE Commit(DWORD); |
126 | 126 |
127 virtual HRESULT STDMETHODCALLTYPE Stat(STATSTG* pStatstg | 127 virtual HRESULT STDMETHODCALLTYPE Stat(STATSTG* pStatstg |
128 , DWORD grfStatFlag); | 128 , DWORD grfStatFlag); |
129 }; | 129 }; |
130 | 130 |
131 #endif | 131 #endif |
OLD | NEW |