Skip to content

Commit

Permalink
fbandroid/libraries/fresco/drawee-backends/drawee-pipeline/src/main/j…
Browse files Browse the repository at this point in the history
…ava/com/facebook/drawee/backends/pipeline/PipelineDraweeController.java

Differential Revision: D66547001

fbshipit-source-id: 8095bcb306e76e583f9ac195a4563f614cf96fde
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Nov 27, 2024
1 parent fb19695 commit e410755
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import com.facebook.imagepipeline.listener.RequestListener;
import com.facebook.imagepipeline.request.ImageRequest;
import com.facebook.imagepipeline.systrace.FrescoSystrace;
import com.facebook.infer.annotation.Nullsafe;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
Expand All @@ -60,6 +61,7 @@
* <p>The hierarchy's actual image is set to the image(s) obtained by the provided data source. The
* data source is automatically obtained and closed based on attach / detach calls.
*/
@Nullsafe(Nullsafe.Mode.LOCAL)
public class PipelineDraweeController
extends AbstractDraweeController<CloseableReference<CloseableImage>, ImageInfo> {

Expand All @@ -73,9 +75,11 @@ public class PipelineDraweeController

private final @Nullable MemoryCache<CacheKey, CloseableImage> mMemoryCache;

// NULLSAFE_FIXME[Field Not Initialized]
private CacheKey mCacheKey;

// Constant state (non-final because controllers can be reused)
// NULLSAFE_FIXME[Field Not Initialized]
private Supplier<DataSource<CloseableReference<CloseableImage>>> mDataSourceSupplier;

private boolean mDrawDebugOverlay;
Expand Down Expand Up @@ -104,6 +108,7 @@ public PipelineDraweeController(
Executor uiThreadExecutor,
@Nullable MemoryCache<CacheKey, CloseableImage> memoryCache,
@Nullable ImmutableList<DrawableFactory> globalDrawableFactories) {
// NULLSAFE_FIXME[Parameter Not Nullable]
super(deferredReleaser, uiThreadExecutor, null, null);
mResources = resources;
mDefaultDrawableFactory = new DefaultDrawableFactory(resources, animatedDrawableFactory);
Expand Down

0 comments on commit e410755

Please sign in to comment.