summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui/GLCanvasImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/gallery3d/ui/GLCanvasImpl.java')
-rw-r--r--src/com/android/gallery3d/ui/GLCanvasImpl.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/ui/GLCanvasImpl.java b/src/com/android/gallery3d/ui/GLCanvasImpl.java
index 7b7a31773..a254bcce4 100644
--- a/src/com/android/gallery3d/ui/GLCanvasImpl.java
+++ b/src/com/android/gallery3d/ui/GLCanvasImpl.java
@@ -649,10 +649,17 @@ public class GLCanvasImpl implements GLCanvas {
}
@Override
- public void clearBuffer() {
+ public void clearBuffer(float r, float g, float b, float a) {
+ mGL.glClearColor(r, g, b, a);
mGL.glClear(GL10.GL_COLOR_BUFFER_BIT);
}
+ @Override
+ public void clearBuffer() {
+ // TODO: Make this grey background color constant
+ clearBuffer(0.93f, 0.93f, 0.93f, 1);
+ }
+
private void setTextureCoords(RectF source) {
setTextureCoords(source.left, source.top, source.right, source.bottom);
}