Chromium Code Reviews| Index: src/gpu/GrTextureProvider.cpp |
| diff --git a/src/gpu/GrTextureProvider.cpp b/src/gpu/GrTextureProvider.cpp |
| index 1c2f36535a0166ce143d66ca34936f9874ec1cb8..84226dbf4731f1ec01c5e1938c7a4bfb5f62223c 100644 |
| --- a/src/gpu/GrTextureProvider.cpp |
| +++ b/src/gpu/GrTextureProvider.cpp |
| @@ -40,7 +40,8 @@ GrTexture* GrTextureProvider::createTexture(const GrSurfaceDesc& desc, bool budg |
| !fGpu->caps()->isConfigRenderable(desc.fConfig, desc.fSampleCnt > 0)) { |
| return nullptr; |
| } |
| - if (!GrPixelConfigIsCompressed(desc.fConfig)) { |
| + if (!GrPixelConfigIsCompressed(desc.fConfig) && |
| + !desc.fTextureStorageAllocator.fAllocateTextureStorage) { |
|
bsalomon
2016/02/04 16:27:08
nit, style aligns this ! with the one above (not c
erikchen
2016/02/04 18:44:07
Done.
|
| static const uint32_t kFlags = kExact_ScratchTextureFlag | |
| kNoCreate_ScratchTextureFlag; |
| if (GrTexture* texture = this->refScratchTexture(desc, kFlags)) { |