| OLD | NEW | 
|   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 SkTScopedComPtr_DEFINED |   8 #ifndef SkTScopedComPtr_DEFINED | 
|   9 #define SkTScopedComPtr_DEFINED |   9 #define SkTScopedComPtr_DEFINED | 
|  10  |  10  | 
|  11 #include "SkTypes.h" |  11 #include "../../private/SkLeanWindows.h" | 
|  12  |  12  | 
|  13 #ifdef SK_BUILD_FOR_WIN |  13 #ifdef SK_BUILD_FOR_WIN | 
|  14  |  14  | 
|  15 template<typename T> |  15 template<typename T> | 
|  16 class SkBlockComRef : public T { |  16 class SkBlockComRef : public T { | 
|  17 private: |  17 private: | 
|  18     virtual ULONG STDMETHODCALLTYPE AddRef(void) = 0; |  18     virtual ULONG STDMETHODCALLTYPE AddRef(void) = 0; | 
|  19     virtual ULONG STDMETHODCALLTYPE Release(void) = 0; |  19     virtual ULONG STDMETHODCALLTYPE Release(void) = 0; | 
|  20 }; |  20 }; | 
|  21  |  21  | 
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  68  |  68  | 
|  69     T* release() { |  69     T* release() { | 
|  70         T* temp = this->fPtr; |  70         T* temp = this->fPtr; | 
|  71         this->fPtr = NULL; |  71         this->fPtr = NULL; | 
|  72         return temp; |  72         return temp; | 
|  73     } |  73     } | 
|  74 }; |  74 }; | 
|  75  |  75  | 
|  76 #endif  // SK_BUILD_FOR_WIN |  76 #endif  // SK_BUILD_FOR_WIN | 
|  77 #endif  // SkTScopedComPtr_DEFINED |  77 #endif  // SkTScopedComPtr_DEFINED | 
| OLD | NEW |