Search in sources :

Example 1 with TiledTexture

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);
    }
}
Also used : MediaItem(com.android.gallery3d.data.MediaItem) LocalMediaItem(com.android.gallery3d.data.LocalMediaItem) TiledTexture(com.android.gallery3d.glrenderer.TiledTexture) TiledScreenNail(com.android.gallery3d.ui.TiledScreenNail) BitmapScreenNail(com.android.gallery3d.ui.BitmapScreenNail) ScreenNail(com.android.gallery3d.ui.ScreenNail) TiledScreenNail(com.android.gallery3d.ui.TiledScreenNail)

Aggregations

LocalMediaItem (com.android.gallery3d.data.LocalMediaItem)1 MediaItem (com.android.gallery3d.data.MediaItem)1 TiledTexture (com.android.gallery3d.glrenderer.TiledTexture)1 BitmapScreenNail (com.android.gallery3d.ui.BitmapScreenNail)1 ScreenNail (com.android.gallery3d.ui.ScreenNail)1 TiledScreenNail (com.android.gallery3d.ui.TiledScreenNail)1