| 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 | 17 #include "../../private/SkLeanWindows.h" |
| 18 #include <windows.h> | |
| 19 #include <ole2.h> | 18 #include <ole2.h> |
| 20 | 19 |
| 21 class SkStream; | 20 class SkStream; |
| 22 class SkWStream; | 21 class SkWStream; |
| 23 | 22 |
| 24 /** | 23 /** |
| 25 * A bare IStream implementation which properly reference counts | 24 * A bare IStream implementation which properly reference counts |
| 26 * but returns E_NOTIMPL for all ISequentialStream and IStream methods. | 25 * but returns E_NOTIMPL for all ISequentialStream and IStream methods. |
| 27 */ | 26 */ |
| 28 class SkBaseIStream : public IStream { | 27 class SkBaseIStream : public IStream { |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 , ULONG* pcbWritten); | 126 , ULONG* pcbWritten); |
| 128 | 127 |
| 129 virtual HRESULT STDMETHODCALLTYPE Commit(DWORD); | 128 virtual HRESULT STDMETHODCALLTYPE Commit(DWORD); |
| 130 | 129 |
| 131 virtual HRESULT STDMETHODCALLTYPE Stat(STATSTG* pStatstg | 130 virtual HRESULT STDMETHODCALLTYPE Stat(STATSTG* pStatstg |
| 132 , DWORD grfStatFlag); | 131 , DWORD grfStatFlag); |
| 133 }; | 132 }; |
| 134 | 133 |
| 135 #endif // SK_BUILD_FOR_WIN | 134 #endif // SK_BUILD_FOR_WIN |
| 136 #endif // SkIStream_DEFINED | 135 #endif // SkIStream_DEFINED |
| OLD | NEW |