use of com.android.gallery3d.glrenderer.TiledTexture in project android_packages_apps_Gallery2 by LineageOS.
the class PhotoDataAdapter method uploadScreenNail.
private void uploadScreenNail(int offset) {
int index = mCurrentIndex + offset;
if (index < mActiveStart || index >= mActiveEnd)
return;
MediaItem item = getItem(index);
if (item == null)
return;
ImageEntry e = mImageCache.get(item.getPath());
if (e == null)
return;
ScreenNail s = e.screenNail;
if (s instanceof TiledScreenNail) {
TiledTexture t = ((TiledScreenNail) s).getTexture();
if (t != null && !t.isReady())
mUploader.addTexture(t);
}
}
Aggregations