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

Unified Diff: include/gpu/GrTypes.h

Issue 1161993003: Removing GrAutoMalloc (Closed) Base URL: https://skia.googlesource.com/skia.git@morecleanup
Patch Set: Created 5 years, 7 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
« no previous file with comments | « include/gpu/GrConfig.h ('k') | src/gpu/GrBatchFontCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrTypes.h
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h
index b38608e66696f5caaa6661e7662941fb9101974d..fc233ea0cdf60646c49261f3c326b58e2d40d7aa 100644
--- a/include/gpu/GrTypes.h
+++ b/include/gpu/GrTypes.h
@@ -616,22 +616,4 @@ static inline size_t GrCompressedFormatDataSize(GrPixelConfig config,
*/
static const uint32_t kAll_GrBackendState = 0xffffffff;
-///////////////////////////////////////////////////////////////////////////////
-
-#if GR_ALWAYS_ALLOCATE_ON_HEAP
- #define GrAutoMallocBaseType SkAutoMalloc
-#else
- #define GrAutoMallocBaseType SkAutoSMalloc<S>
-#endif
-
-template <size_t S> class GrAutoMalloc : public GrAutoMallocBaseType {
-public:
- GrAutoMalloc() : INHERITED() {}
- explicit GrAutoMalloc(size_t size) : INHERITED(size) {}
- virtual ~GrAutoMalloc() {}
-private:
- typedef GrAutoMallocBaseType INHERITED;
-};
-
-#undef GrAutoMallocBaseType
#endif
« no previous file with comments | « include/gpu/GrConfig.h ('k') | src/gpu/GrBatchFontCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698