-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
//fbandroid/libraries/fresco/drawee-backends/drawee-pipeline/src/main…
…/java/com/facebook/drawee/backends/pipeline:imageintdefs Reviewed By: oprisnik Differential Revision: D65497407 fbshipit-source-id: 93b05aa91d7f78deaeb8f063a29938ef3683b9db
- Loading branch information
1 parent
3ea6d5f
commit 9b6ad0b
Showing
2 changed files
with
34 additions
and
44 deletions.
There are no files selected for viewing
44 changes: 0 additions & 44 deletions
44
...drawee-pipeline/src/main/java/com/facebook/drawee/backends/pipeline/info/ImageOrigin.java
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
...s/drawee-pipeline/src/main/java/com/facebook/drawee/backends/pipeline/info/ImageOrigin.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
package com.facebook.drawee.backends.pipeline.info | ||
|
||
import androidx.annotation.IntDef | ||
|
||
/** | ||
* Image origin that indicates whether an image has been loaded from cache, network or other source. | ||
*/ | ||
@Retention(AnnotationRetention.SOURCE) | ||
@IntDef( | ||
ImageOrigin.UNKNOWN, | ||
ImageOrigin.NETWORK, | ||
ImageOrigin.DISK, | ||
ImageOrigin.MEMORY_ENCODED, | ||
ImageOrigin.MEMORY_BITMAP, | ||
ImageOrigin.MEMORY_BITMAP_SHORTCUT, | ||
ImageOrigin.LOCAL) | ||
annotation class ImageOrigin { | ||
companion object { | ||
const val UNKNOWN: Int = 1 | ||
const val NETWORK: Int = 2 | ||
const val DISK: Int = 3 | ||
const val MEMORY_ENCODED: Int = 4 | ||
const val MEMORY_BITMAP: Int = 5 | ||
const val MEMORY_BITMAP_SHORTCUT: Int = 6 | ||
const val LOCAL: Int = 7 | ||
} | ||
} |