| Index: src/gpu/GrGpu.cpp
|
| diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp
|
| index f3f00f172893706e5bfac7359da20ca2e877a7f2..2ee79fc8d6982a5b07b45cc336ba41b9f0d1fcc0 100644
|
| --- a/src/gpu/GrGpu.cpp
|
| +++ b/src/gpu/GrGpu.cpp
|
| @@ -152,10 +152,6 @@ GrTexture* GrGpu::createTexture(const GrSurfaceDesc& origDesc, SkBudgeted budget
|
| desc.fOrigin = resolve_origin(desc.fOrigin, isRT);
|
|
|
| GrTexture* tex = nullptr;
|
| - GrGpuResource::LifeCycle lifeCycle = SkBudgeted::kYes == budgeted ?
|
| - GrGpuResource::kCached_LifeCycle :
|
| - GrGpuResource::kUncached_LifeCycle;
|
| -
|
| if (GrPixelConfigIsCompressed(desc.fConfig)) {
|
| // We shouldn't be rendering into this
|
| SkASSERT(!isRT);
|
| @@ -167,10 +163,10 @@ GrTexture* GrGpu::createTexture(const GrSurfaceDesc& origDesc, SkBudgeted budget
|
| }
|
|
|
| this->handleDirtyContext();
|
| - tex = this->onCreateCompressedTexture(desc, lifeCycle, texels);
|
| + tex = this->onCreateCompressedTexture(desc, budgeted, texels);
|
| } else {
|
| this->handleDirtyContext();
|
| - tex = this->onCreateTexture(desc, lifeCycle, texels);
|
| + tex = this->onCreateTexture(desc, budgeted, texels);
|
| }
|
| if (tex) {
|
| if (!caps->reuseScratchTextures() && !isRT) {
|
|
|