• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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"
14 
15 #include <memory>
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  */
31 namespace SkImageGeneratorWIC {
32 SK_API std::unique_ptr<SkImageGenerator> MakeFromEncodedWIC(sk_sp<SkData>);
33 }
34 
35 #endif // SK_BUILD_FOR_WIN
36