Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Orxan Babayev
VLC-Android
Commits
9268a12a
Commit
9268a12a
authored
9 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
no bitmap reuse before HoneyComb
parent
05158b4a
No related branches found
Branches containing commit
Tags
1.5.90
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/util/BitmapCache.java
+2
-2
2 additions, 2 deletions
vlc-android/src/org/videolan/vlc/util/BitmapCache.java
with
2 additions
and
2 deletions
vlc-android/src/org/videolan/vlc/util/BitmapCache.java
+
2
−
2
View file @
9268a12a
...
...
@@ -84,7 +84,7 @@ public class BitmapCache {
protected
void
entryRemoved
(
boolean
evicted
,
String
key
,
CacheableBitmap
oldValue
,
CacheableBitmap
newValue
)
{
if
(
evicted
)
{
mCachedBitmaps
.
remove
(
oldValue
.
getReference
());
if
(
oldValue
.
get
()
!=
null
&&
!
TextUtils
.
equals
(
key
,
CONE_KEY
)
&&
!
TextUtils
.
equals
(
key
,
CONE_O_KEY
))
if
(
mReusableBitmaps
!=
null
&&
oldValue
.
get
()
!=
null
&&
!
TextUtils
.
equals
(
key
,
CONE_KEY
)
&&
!
TextUtils
.
equals
(
key
,
CONE_O_KEY
))
addReusableBitmapRef
(
oldValue
.
getReference
());
}
}
...
...
@@ -152,7 +152,7 @@ public class BitmapCache {
return
bitmap
;
}
p
ublic
synchronized
void
addReusableBitmapRef
(
SoftReference
<
Bitmap
>
ref
){
p
rivate
synchronized
void
addReusableBitmapRef
(
SoftReference
<
Bitmap
>
ref
){
mReusableBitmaps
.
add
(
ref
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment