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 |
11 #define SkIStream_DEFINED | 11 #define SkIStream_DEFINED |
12 | 12 |
13 #include "SkTypes.h" | 13 #include "SkTypes.h" |
14 | 14 |
15 #ifdef SK_BUILD_FOR_WIN | 15 #ifdef SK_BUILD_FOR_WIN |
16 | 16 |
17 #define WIN32_LEAN_AND_MEAN | |
18 #include <windows.h> | |
19 #include <ole2.h> | 17 #include <ole2.h> |
bungeman-skia
2016/06/06 18:45:56
I think we still need SkLeanWindows here because H
hal.canary
2016/06/06 19:38:28
Done.
| |
20 | 18 |
21 class SkStream; | 19 class SkStream; |
22 class SkWStream; | 20 class SkWStream; |
23 | 21 |
24 /** | 22 /** |
25 * A bare IStream implementation which properly reference counts | 23 * A bare IStream implementation which properly reference counts |
26 * but returns E_NOTIMPL for all ISequentialStream and IStream methods. | 24 * but returns E_NOTIMPL for all ISequentialStream and IStream methods. |
27 */ | 25 */ |
28 class SkBaseIStream : public IStream { | 26 class SkBaseIStream : public IStream { |
29 private: | 27 private: |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
127 , ULONG* pcbWritten); | 125 , ULONG* pcbWritten); |
128 | 126 |
129 virtual HRESULT STDMETHODCALLTYPE Commit(DWORD); | 127 virtual HRESULT STDMETHODCALLTYPE Commit(DWORD); |
130 | 128 |
131 virtual HRESULT STDMETHODCALLTYPE Stat(STATSTG* pStatstg | 129 virtual HRESULT STDMETHODCALLTYPE Stat(STATSTG* pStatstg |
132 , DWORD grfStatFlag); | 130 , DWORD grfStatFlag); |
133 }; | 131 }; |
134 | 132 |
135 #endif // SK_BUILD_FOR_WIN | 133 #endif // SK_BUILD_FOR_WIN |
136 #endif // SkIStream_DEFINED | 134 #endif // SkIStream_DEFINED |
OLD | NEW |