msarett | fc0b6d1 | 2016-03-17 13:50:17 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #include "SkTypes.h" |
| 9 | |
| 10 | #if defined(SK_BUILD_FOR_WIN) |
| 11 | |
| 12 | #include "SkData.h" |
| 13 | #include "SkImageGenerator.h" |
msarett | fc0b6d1 | 2016-03-17 13:50:17 -0700 | [diff] [blame] | 14 | |
Hal Canary | 912cd3d | 2018-09-19 15:54:36 -0400 | [diff] [blame] | 15 | #include <memory> |
msarett | fc0b6d1 | 2016-03-17 13:50:17 -0700 | [diff] [blame] | 16 | |
| 17 | /* |
| 18 | * Any Windows program that uses COM must initialize the COM library by calling |
| 19 | * the CoInitializeEx function. In addition, each thread that uses a COM |
| 20 | * interface must make a separate call to this function. |
| 21 | * |
| 22 | * For every successful call to CoInitializeEx, the thread must call |
| 23 | * CoUninitialize before it exits. |
| 24 | * |
| 25 | * SkImageGeneratorWIC requires the COM library and leaves it to the client to |
| 26 | * initialize COM for their application. |
| 27 | * |
| 28 | * For more information on initializing COM, please see: |
| 29 | * https://msdn.microsoft.com/en-us/library/windows/desktop/ff485844.aspx |
| 30 | */ |
Hal Canary | 912cd3d | 2018-09-19 15:54:36 -0400 | [diff] [blame] | 31 | namespace SkImageGeneratorWIC { |
| 32 | SK_API std::unique_ptr<SkImageGenerator> MakeFromEncodedWIC(sk_sp<SkData>); |
| 33 | } |
msarett | fc0b6d1 | 2016-03-17 13:50:17 -0700 | [diff] [blame] | 34 | |
| 35 | #endif // SK_BUILD_FOR_WIN |