Index: src/gpu/GrGpu.cpp |
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp |
index 8548e54a17121588eaddef0d57a0abe1796ed1e7..4fcd4d57af0a23b7f7c316c813fd7c25b942db38 100644 |
--- a/src/gpu/GrGpu.cpp |
+++ b/src/gpu/GrGpu.cpp |
@@ -88,7 +88,7 @@ |
} |
} |
-GrTexture* GrGpu::createTexture(const GrSurfaceDesc& origDesc, SkBudgeted budgeted, |
+GrTexture* GrGpu::createTexture(const GrSurfaceDesc& origDesc, bool budgeted, |
const void* srcData, size_t rowBytes) { |
GrSurfaceDesc desc = origDesc; |
@@ -120,9 +120,8 @@ |
} |
} |
- GrGpuResource::LifeCycle lifeCycle = SkBudgeted::kYes == budgeted ? |
- GrGpuResource::kCached_LifeCycle : |
- GrGpuResource::kUncached_LifeCycle; |
+ GrGpuResource::LifeCycle lifeCycle = budgeted ? GrGpuResource::kCached_LifeCycle : |
+ GrGpuResource::kUncached_LifeCycle; |
desc.fSampleCnt = SkTMin(desc.fSampleCnt, this->caps()->maxSampleCount()); |
// Attempt to catch un- or wrongly initialized sample counts; |