diff options
author | 2013-05-01 14:21:20 +0000 | |
---|---|---|
committer | 2013-05-01 14:21:20 +0000 | |
commit | 7103344b64f3f0df88e76857c16edc8eedb58366 (patch) | |
tree | 187c7d75cf31251d763ff94b5506028c2250c227 /include/utils/win | |
parent | a0eca26ac0b051cf88ae831b38464ba2466fac54 (diff) |
Add FontMgr to DirectWrite.
https://codereview.chromium.org/14314008/
git-svn-id: http://skia.googlecode.com/svn/trunk@8934 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/utils/win')
-rw-r--r-- | include/utils/win/SkTScopedComPtr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/utils/win/SkTScopedComPtr.h b/include/utils/win/SkTScopedComPtr.h index 85c314a97a..fa64ac4803 100644 --- a/include/utils/win/SkTScopedComPtr.h +++ b/include/utils/win/SkTScopedComPtr.h @@ -19,6 +19,11 @@ private: virtual ULONG STDMETHODCALLTYPE Release(void) = 0; }; +template<typename T> T* SkRefComPtr(T* ptr) { + ptr->AddRef(); + return ptr; +} + template<typename T> class SkTScopedComPtr : SkNoncopyable { private: |