| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SkAutoCo_DEFINED | 10 #ifndef SkAutoCo_DEFINED |
| 11 #define SkAutoCo_DEFINED | 11 #define SkAutoCo_DEFINED |
| 12 | 12 |
| 13 #define WIN32_LEAN_AND_MEAN | 13 #define WIN32_LEAN_AND_MEAN |
| 14 #include <Windows.h> | 14 #include <windows.h> |
| 15 #include "SkTemplates.h" | 15 #include "SkTemplates.h" |
| 16 | 16 |
| 17 /** | 17 /** |
| 18 * An instance of this class initializes COM on creation | 18 * An instance of this class initializes COM on creation |
| 19 * and closes the COM library on destruction. | 19 * and closes the COM library on destruction. |
| 20 */ | 20 */ |
| 21 class SkAutoCoInitialize : SkNoncopyable { | 21 class SkAutoCoInitialize : SkNoncopyable { |
| 22 private: | 22 private: |
| 23 HRESULT fHR; | 23 HRESULT fHR; |
| 24 public: | 24 public: |
| 25 SkAutoCoInitialize(); | 25 SkAutoCoInitialize(); |
| 26 ~SkAutoCoInitialize(); | 26 ~SkAutoCoInitialize(); |
| 27 bool succeeded(); | 27 bool succeeded(); |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 #endif | 30 #endif |
| OLD | NEW |