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

Unified Diff: include/utils/win/SkTScopedComPtr.h

Issue 14314008: Add FontMgr to DirectWrite. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Add matcher, fix GrGLCaps. Created 7 years, 8 months 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 side-by-side diff with in-line comments
Download patch
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:
« no previous file with comments | « include/core/SkTemplates.h ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | src/gpu/gl/GrGLCaps.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698