Revert "Suppress addition of changeListeners during DDL recording"
This should no longer be required with the addition of https://skia-review.googlesource.com/c/skia/+/154861/ (Make atomic lists list for bitmaps and paths)
Bug: skia:8324
Change-Id: I2177fe16ea8b049f36c5d3d5a17ea2c69ce42eca
Reviewed-on: https://skia-review.googlesource.com/154980
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrBitmapTextureMaker.cpp b/src/gpu/GrBitmapTextureMaker.cpp
index 9de4d2c..19ba702 100644
--- a/src/gpu/GrBitmapTextureMaker.cpp
+++ b/src/gpu/GrBitmapTextureMaker.cpp
@@ -60,9 +60,7 @@
}
if (!willBeMipped || GrMipMapped::kYes == proxy->mipMapped()) {
SkASSERT(proxy->origin() == kTopLeft_GrSurfaceOrigin);
- if (fOriginalKey.isValid() && !proxyProvider->recordingDDL()) {
- // If we're recording a DDL we cannot add genID change listeners because
- // that process isn't thread safe
+ if (fOriginalKey.isValid()) {
GrInstallBitmapUniqueKeyInvalidator(
fOriginalKey, proxyProvider->contextUniqueID(), fBitmap.pixelRef());
}
@@ -88,14 +86,8 @@
// time it too will be deleted or recycled.
proxyProvider->removeUniqueKeyFromProxy(fOriginalKey, proxy.get());
proxyProvider->assignUniqueKeyToProxy(fOriginalKey, mippedProxy.get());
-
- if (!proxyProvider->recordingDDL()) {
- // If we're recording a DDL we cannot add genID change listeners because
- // that process isn't thread safe
- GrInstallBitmapUniqueKeyInvalidator(fOriginalKey,
- proxyProvider->contextUniqueID(),
- fBitmap.pixelRef());
- }
+ GrInstallBitmapUniqueKeyInvalidator(fOriginalKey, proxyProvider->contextUniqueID(),
+ fBitmap.pixelRef());
}
return mippedProxy;
}