Index: src/gpu/GrSurface.cpp |
diff --git a/src/gpu/GrSurface.cpp b/src/gpu/GrSurface.cpp |
index 382550e41fc43f512600a844758002984ab76fbf..c6e28fbd2ada0caef9aa15573c0deab9b061cc31 100644 |
--- a/src/gpu/GrSurface.cpp |
+++ b/src/gpu/GrSurface.cpp |
@@ -210,3 +210,7 @@ void GrSurface::onAbandon() { |
this->invokeReleaseProc(); |
this->INHERITED::onAbandon(); |
} |
+ |
+bool GrSurface::reuseable() const { |
+ return fDesc.fTextureStorageAllocator.fAllocateTextureStorage == nullptr; |
+} |