Index: include/utils/win/SkTScopedComPtr.h |
=================================================================== |
--- include/utils/win/SkTScopedComPtr.h (revision 8915) |
+++ include/utils/win/SkTScopedComPtr.h (working copy) |
@@ -19,6 +19,11 @@ |
virtual ULONG STDMETHODCALLTYPE Release(void) = 0; |
}; |
+template<typename T> T* SkRefComPtr(T* ptr) { |
+ ptr->AddRef(); |
+ return ptr; |
+} |
+ |
template<typename T> |
class SkTScopedComPtr : SkNoncopyable { |
private: |