Index: src/gpu/gl/GrGLGpu.cpp |
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp |
index 3a3b833a8f6f741067913f245f4e7848df2bb308..2afda5f19df266c31e928668122bdae64ce90954 100644 |
--- a/src/gpu/gl/GrGLGpu.cpp |
+++ b/src/gpu/gl/GrGLGpu.cpp |
@@ -610,7 +610,7 @@ bool GrGLGpu::uploadTexData(const GrSurfaceDesc& desc, |
size_t trimRowBytes = width * bpp; |
// in case we need a temporary, trimmed copy of the src pixels |
- GrAutoMalloc<128 * 128> tempStorage; |
+ SkAutoSMalloc<128 * 128> tempStorage; |
// We currently lazily create MIPMAPs when the we see a draw with |
// GrTextureParams::kMipMap_FilterMode. Using texture storage requires that the |
@@ -1773,7 +1773,7 @@ bool GrGLGpu::onReadPixels(GrRenderTarget* target, |
// determine if GL can read using the passed rowBytes or if we need |
// a scratch buffer. |
- GrAutoMalloc<32 * sizeof(GrColor)> scratch; |
+ SkAutoSMalloc<32 * sizeof(GrColor)> scratch; |
if (rowBytes != tightRowBytes) { |
if (this->glCaps().packRowLengthSupport()) { |
SkASSERT(!(rowBytes % sizeof(GrColor))); |