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