summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/support/ui/ScreenNail.java
blob: 67b2f58c5e43ad7f5317ca98ad1cc7df5e2a3d85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
}