Index: src/gpu/GrTextureProvider.cpp |
diff --git a/src/gpu/GrTextureProvider.cpp b/src/gpu/GrTextureProvider.cpp |
index 01c8a8e7a2bbe5a185bdc3ffee02bfd5496bc174..7d720eb1212dd0455953892c75e550155975fe03 100644 |
--- a/src/gpu/GrTextureProvider.cpp |
+++ b/src/gpu/GrTextureProvider.cpp |
@@ -29,7 +29,7 @@ |
{ |
} |
-GrTexture* GrTextureProvider::createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, |
+GrTexture* GrTextureProvider::createTexture(const GrSurfaceDesc& desc, bool budgeted, |
const void* srcData, size_t rowBytes) { |
ASSERT_SINGLE_OWNER |
if (this->isAbandoned()) { |
@@ -46,7 +46,7 @@ |
if (GrTexture* texture = this->refScratchTexture(desc, kFlags)) { |
if (!srcData || texture->writePixels(0, 0, desc.fWidth, desc.fHeight, desc.fConfig, |
srcData, rowBytes)) { |
- if (SkBudgeted::kNo == budgeted) { |
+ if (!budgeted) { |
texture->resourcePriv().makeUnbudgeted(); |
} |
return texture; |
@@ -117,7 +117,7 @@ |
} |
if (!(kNoCreate_ScratchTextureFlag & flags)) { |
- return fGpu->createTexture(*desc, SkBudgeted::kYes, nullptr, 0); |
+ return fGpu->createTexture(*desc, true, nullptr, 0); |
} |
return nullptr; |