blob: 751045576984bfc8ea96adde1c7a43020b0a6e23 [file] [log] [blame]
msarettfc0b6d12016-03-17 13:50:17 -07001/*
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"
msarettfc0b6d12016-03-17 13:50:17 -070014
Hal Canary912cd3d2018-09-19 15:54:36 -040015#include <memory>
msarettfc0b6d12016-03-17 13:50:17 -070016
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 Canary912cd3d2018-09-19 15:54:36 -040031namespace SkImageGeneratorWIC {
32SK_API std::unique_ptr<SkImageGenerator> MakeFromEncodedWIC(sk_sp<SkData>);
33}
msarettfc0b6d12016-03-17 13:50:17 -070034
35#endif // SK_BUILD_FOR_WIN