Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkAutoCoInitialize.h
Go to the documentation of this file.
1/*
2 * Copyright 2011 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#ifndef SkAutoCo_DEFINED
9#define SkAutoCo_DEFINED
10
12
13#ifdef SK_BUILD_FOR_WIN
14
17
18/**
19 * An instance of this class initializes COM on creation
20 * and closes the COM library on destruction.
21 */
22class SkAutoCoInitialize : SkNoncopyable {
23private:
24 HRESULT fHR;
25public:
26 SkAutoCoInitialize();
27 ~SkAutoCoInitialize();
28 bool succeeded();
29};
30
31#endif // SK_BUILD_FOR_WIN
32#endif // SkAutoCo_DEFINED