SkImageGeneratorWIC.h 988 B

1234567891011121314151617181920212223242526272829303132333435
  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. #include "SkTypes.h"
  8. #if defined(SK_BUILD_FOR_WIN)
  9. #include "SkData.h"
  10. #include "SkImageGenerator.h"
  11. #include <memory>
  12. /*
  13. * Any Windows program that uses COM must initialize the COM library by calling
  14. * the CoInitializeEx function. In addition, each thread that uses a COM
  15. * interface must make a separate call to this function.
  16. *
  17. * For every successful call to CoInitializeEx, the thread must call
  18. * CoUninitialize before it exits.
  19. *
  20. * SkImageGeneratorWIC requires the COM library and leaves it to the client to
  21. * initialize COM for their application.
  22. *
  23. * For more information on initializing COM, please see:
  24. * https://msdn.microsoft.com/en-us/library/windows/desktop/ff485844.aspx
  25. */
  26. namespace SkImageGeneratorWIC {
  27. SK_API std::unique_ptr<SkImageGenerator> MakeFromEncodedWIC(sk_sp<SkData>);
  28. }
  29. #endif // SK_BUILD_FOR_WIN