Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index 1695f5d681e86f49a04978843c0fdbf7c0576d76..8912851d8f369c88a9b36aeb7d281c8b2490c690 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -197,13 +197,7 @@ SkGpuDevice* SkGpuDevice::Create(GrContext* context, SkSurface::Budgeted budgete |
desc.fConfig = SkImageInfo2GrPixelConfig(info); |
desc.fSampleCnt = sampleCount; |
- SkAutoTUnref<GrTexture> texture; |
- if (SkSurface::kYes_Budgeted == budgeted) { |
- texture.reset(context->refScratchTexture(desc, GrContext::kExact_ScratchTexMatch)); |
- } else { |
- texture.reset(context->createUncachedTexture(desc, NULL, 0)); |
- } |
- |
+ SkAutoTUnref<GrTexture> texture(context->createTexture(desc, SkToBool(budgeted), NULL, 0)); |
if (!texture) { |
return NULL; |
} |