OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
4 * | 3 * |
5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 #include "SkTypes.h" | 8 #include "SkTypes.h" |
10 #if defined(SK_BUILD_FOR_WIN32) | 9 #if defined(SK_BUILD_FOR_WIN32) |
11 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
25 if (SUCCEEDED(this->fHR)) { | 24 if (SUCCEEDED(this->fHR)) { |
26 CoUninitialize(); | 25 CoUninitialize(); |
27 } | 26 } |
28 } | 27 } |
29 | 28 |
30 bool SkAutoCoInitialize::succeeded() { | 29 bool SkAutoCoInitialize::succeeded() { |
31 return SUCCEEDED(this->fHR) || RPC_E_CHANGED_MODE == this->fHR; | 30 return SUCCEEDED(this->fHR) || RPC_E_CHANGED_MODE == this->fHR; |
32 } | 31 } |
33 | 32 |
34 #endif//defined(SK_BUILD_FOR_WIN32) | 33 #endif//defined(SK_BUILD_FOR_WIN32) |
OLD | NEW |