| 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> | |
| 14 #include "SkIStream.h" | 11 #include "SkIStream.h" |
| 15 #include "SkStream.h" | 12 #include "SkStream.h" |
| 16 | 13 |
| 17 /** | 14 /** |
| 18 * SkBaseIStream | 15 * SkBaseIStream |
| 19 */ | 16 */ |
| 20 SkBaseIStream::SkBaseIStream() : _refcount(1) { } | 17 SkBaseIStream::SkBaseIStream() : _refcount(1) { } |
| 21 SkBaseIStream::~SkBaseIStream() { } | 18 SkBaseIStream::~SkBaseIStream() { } |
| 22 | 19 |
| 23 HRESULT STDMETHODCALLTYPE SkBaseIStream::QueryInterface(REFIID iid | 20 HRESULT STDMETHODCALLTYPE SkBaseIStream::QueryInterface(REFIID iid |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 return STG_E_INVALIDFLAG; | 267 return STG_E_INVALIDFLAG; |
| 271 } | 268 } |
| 272 pStatstg->pwcsName = nullptr; | 269 pStatstg->pwcsName = nullptr; |
| 273 pStatstg->cbSize.QuadPart = 0; | 270 pStatstg->cbSize.QuadPart = 0; |
| 274 pStatstg->clsid = CLSID_NULL; | 271 pStatstg->clsid = CLSID_NULL; |
| 275 pStatstg->type = STGTY_STREAM; | 272 pStatstg->type = STGTY_STREAM; |
| 276 pStatstg->grfMode = STGM_WRITE; | 273 pStatstg->grfMode = STGM_WRITE; |
| 277 return S_OK; | 274 return S_OK; |
| 278 } | 275 } |
| 279 #endif//defined(SK_BUILD_FOR_WIN32) | 276 #endif//defined(SK_BUILD_FOR_WIN32) |
| OLD | NEW |