29 lines
566 B
C++
29 lines
566 B
C++
/*
|
|
* Copyright 2011 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef SkAutoCo_DEFINED
|
|
#define SkAutoCo_DEFINED
|
|
|
|
#include "SkTypes.h"
|
|
|
|
#ifdef SK_BUILD_FOR_WIN
|
|
|
|
/**
|
|
* An instance of this class initializes COM on creation
|
|
* and closes the COM library on destruction.
|
|
*/
|
|
class SkAutoCoInitialize : SkNoncopyable {
|
|
private:
|
|
HRESULT fHR;
|
|
public:
|
|
SkAutoCoInitialize();
|
|
~SkAutoCoInitialize();
|
|
bool succeeded();
|
|
};
|
|
|
|
#endif // SK_BUILD_FOR_WIN
|
|
#endif // SkAutoCo_DEFINED
|