Allow non-atlasable layer to still be hoisted
The PlausiblyAtlasable check was preventing large layers from ever being hoisted in the FindLayersToHoist path.
Review URL: https://codereview.chromium.org/844613002
diff --git a/src/gpu/GrLayerCache.cpp b/src/gpu/GrLayerCache.cpp
index e521b3e..8f6a69b 100644
--- a/src/gpu/GrLayerCache.cpp
+++ b/src/gpu/GrLayerCache.cpp
@@ -253,9 +253,7 @@
usage = GrContext::kExact_ScratchTexMatch;
}
- SkAutoTUnref<GrTexture> tex(
- fContext->refScratchTexture(desc, usage));
-
+ SkAutoTUnref<GrTexture> tex(fContext->refScratchTexture(desc, usage));
if (!tex) {
return false;
}