gfx/skia/trunk/include/utils/win/SkAutoCoInitialize.h

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

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

mercurial