Skip to content

Commit

Permalink
Fixed slow GIF animations #3575
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy-budiyev committed Aug 2, 2019
1 parent 85bf0c3 commit ac4aa53
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public static GlideExecutor newUnlimitedSourceExecutor() {
}

/**
* Returns a new cached thread pool that defaults to either one or two threads depending on the
* Returns a new fixed thread pool that defaults to either one or two threads depending on the
* number of available cores to use when loading frames of animations.
*/
public static GlideExecutor newAnimationExecutor() {
Expand All @@ -231,7 +231,7 @@ public static GlideExecutor newAnimationExecutor() {
}

/**
* Returns a new cached thread pool with the given thread count and {@link
* Returns a new fixed thread pool with the given thread count and {@link
* UncaughtThrowableStrategy} to use when loading frames of animations.
*/
// Public API.
Expand All @@ -240,9 +240,9 @@ public static GlideExecutor newAnimationExecutor(
int threadCount, UncaughtThrowableStrategy uncaughtThrowableStrategy) {
return new GlideExecutor(
new ThreadPoolExecutor(
0 /* corePoolSize */,
threadCount,
KEEP_ALIVE_TIME_MS,
threadCount,
0,
TimeUnit.MILLISECONDS,
new PriorityBlockingQueue<Runnable>(),
new DefaultThreadFactory(ANIMATION_EXECUTOR_NAME, uncaughtThrowableStrategy, true)));
Expand Down

0 comments on commit ac4aa53

Please sign in to comment.