| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 #include "SkTypes.h" | 8 #include "SkTypes.h" |
| 9 #if defined(SK_BUILD_FOR_WIN32) | 9 #if defined(SK_BUILD_FOR_WIN32) |
| 10 | 10 |
| 11 #define WIN32_LEAN_AND_MEAN | |
| 12 #include <windows.h> | |
| 13 #include <ole2.h> | 11 #include <ole2.h> |
| 14 #include "SkIStream.h" | 12 #include "SkIStream.h" |
| 15 #include "SkStream.h" | 13 #include "SkStream.h" |
| 16 | 14 |
| 17 /** | 15 /** |
| 18 * SkBaseIStream | 16 * SkBaseIStream |
| 19 */ | 17 */ |
| 20 SkBaseIStream::SkBaseIStream() : _refcount(1) { } | 18 SkBaseIStream::SkBaseIStream() : _refcount(1) { } |
| 21 SkBaseIStream::~SkBaseIStream() { } | 19 SkBaseIStream::~SkBaseIStream() { } |
| 22 | 20 |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 return STG_E_INVALIDFLAG; | 268 return STG_E_INVALIDFLAG; |
| 271 } | 269 } |
| 272 pStatstg->pwcsName = nullptr; | 270 pStatstg->pwcsName = nullptr; |
| 273 pStatstg->cbSize.QuadPart = 0; | 271 pStatstg->cbSize.QuadPart = 0; |
| 274 pStatstg->clsid = CLSID_NULL; | 272 pStatstg->clsid = CLSID_NULL; |
| 275 pStatstg->type = STGTY_STREAM; | 273 pStatstg->type = STGTY_STREAM; |
| 276 pStatstg->grfMode = STGM_WRITE; | 274 pStatstg->grfMode = STGM_WRITE; |
| 277 return S_OK; | 275 return S_OK; |
| 278 } | 276 } |
| 279 #endif//defined(SK_BUILD_FOR_WIN32) | 277 #endif//defined(SK_BUILD_FOR_WIN32) |
| OLD | NEW |