| 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" |
| 14 |
| 15 #ifdef SK_BUILD_FOR_WIN |
| 16 |
| 13 #define WIN32_LEAN_AND_MEAN | 17 #define WIN32_LEAN_AND_MEAN |
| 14 #include <windows.h> | 18 #include <windows.h> |
| 15 #include <ole2.h> | 19 #include <ole2.h> |
| 16 | 20 |
| 17 class SkStream; | 21 class SkStream; |
| 18 class SkWStream; | 22 class SkWStream; |
| 19 | 23 |
| 20 /** | 24 /** |
| 21 * A bare IStream implementation which properly reference counts | 25 * A bare IStream implementation which properly reference counts |
| 22 * but returns E_NOTIMPL for all ISequentialStream and IStream methods. | 26 * but returns E_NOTIMPL for all ISequentialStream and IStream methods. |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 virtual HRESULT STDMETHODCALLTYPE Write(void const* pv | 125 virtual HRESULT STDMETHODCALLTYPE Write(void const* pv |
| 122 , ULONG cb | 126 , ULONG cb |
| 123 , ULONG* pcbWritten); | 127 , ULONG* pcbWritten); |
| 124 | 128 |
| 125 virtual HRESULT STDMETHODCALLTYPE Commit(DWORD); | 129 virtual HRESULT STDMETHODCALLTYPE Commit(DWORD); |
| 126 | 130 |
| 127 virtual HRESULT STDMETHODCALLTYPE Stat(STATSTG* pStatstg | 131 virtual HRESULT STDMETHODCALLTYPE Stat(STATSTG* pStatstg |
| 128 , DWORD grfStatFlag); | 132 , DWORD grfStatFlag); |
| 129 }; | 133 }; |
| 130 | 134 |
| 131 #endif | 135 #endif // SK_BUILD_FOR_WIN |
| 136 #endif // SkIStream_DEFINED |
| OLD | NEW |