Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: include/utils/win/SkAutoCoInitialize.h

Issue 1488813002: CMake, include/: changes to make fiddle 2.0 better (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * 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
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkAutoCo_DEFINED 8 #ifndef SkAutoCo_DEFINED
9 #define SkAutoCo_DEFINED 9 #define SkAutoCo_DEFINED
10 10
11 #include "SkTypes.h" 11 #include "SkTypes.h"
12 #ifdef SK_BUILD_FOR_WIN
reed1 2015/12/01 14:42:23 nit: whitespace between these two?
hal.canary 2015/12/01 16:43:03 Done.
12 13
13 /** 14 /**
14 * An instance of this class initializes COM on creation 15 * An instance of this class initializes COM on creation
15 * and closes the COM library on destruction. 16 * and closes the COM library on destruction.
16 */ 17 */
17 class SkAutoCoInitialize : SkNoncopyable { 18 class SkAutoCoInitialize : SkNoncopyable {
18 private: 19 private:
19 HRESULT fHR; 20 HRESULT fHR;
20 public: 21 public:
21 SkAutoCoInitialize(); 22 SkAutoCoInitialize();
22 ~SkAutoCoInitialize(); 23 ~SkAutoCoInitialize();
23 bool succeeded(); 24 bool succeeded();
24 }; 25 };
25 26
26 #endif 27 #endif // SK_BUILD_FOR_WIN
28 #endif // SkAutoCo_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698