diff options
Diffstat (limited to 'src/com/android/camera/support/ui/ScreenNail.java')
-rw-r--r-- | src/com/android/camera/support/ui/ScreenNail.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/com/android/camera/support/ui/ScreenNail.java b/src/com/android/camera/support/ui/ScreenNail.java new file mode 100644 index 000000000..67b2f58c5 --- /dev/null +++ b/src/com/android/camera/support/ui/ScreenNail.java @@ -0,0 +1,21 @@ +package com.android.camera.support.ui; + + +import android.graphics.RectF; + +import com.android.camera.support.glrenderer.GLCanvas; + +public interface ScreenNail { + public int getWidth(); + public int getHeight(); + public void draw(GLCanvas canvas, int x, int y, int width, int height); + + // We do not need to draw this ScreenNail in this frame. + public void noDraw(); + + // This ScreenNail will not be used anymore. Release related resources. + public void recycle(); + + // This is only used by TileImageView to back up the tiles not yet loaded. + public void draw(GLCanvas canvas, RectF source, RectF dest); +} |