• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2010 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.gallery3d.ui;
18 
19 import android.graphics.RectF;
20 
21 import javax.microedition.khronos.opengles.GL11;
22 
23 public class GLCanvasStub implements GLCanvas {
setSize(int width, int height)24     public void setSize(int width, int height) {}
clearBuffer()25     public void clearBuffer() {}
setCurrentAnimationTimeMillis(long time)26     public void setCurrentAnimationTimeMillis(long time) {}
currentAnimationTimeMillis()27     public long currentAnimationTimeMillis() {
28         throw new UnsupportedOperationException();
29     }
setAlpha(float alpha)30     public void setAlpha(float alpha) {}
getAlpha()31     public float getAlpha() {
32         throw new UnsupportedOperationException();
33     }
multiplyAlpha(float alpha)34     public void multiplyAlpha(float alpha) {}
translate(float x, float y, float z)35     public void translate(float x, float y, float z) {}
translate(float x, float y)36     public void translate(float x, float y) {}
scale(float sx, float sy, float sz)37     public void scale(float sx, float sy, float sz) {}
rotate(float angle, float x, float y, float z)38     public void rotate(float angle, float x, float y, float z) {}
clipRect(int left, int top, int right, int bottom)39     public boolean clipRect(int left, int top, int right, int bottom) {
40         throw new UnsupportedOperationException();
41     }
save()42     public void save() {
43         throw new UnsupportedOperationException();
44     }
save(int saveFlags)45     public void save(int saveFlags) {
46         throw new UnsupportedOperationException();
47     }
setBlendEnabled(boolean enabled)48     public void setBlendEnabled(boolean enabled) {}
restore()49     public void restore() {}
drawLine(float x1, float y1, float x2, float y2, GLPaint paint)50     public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) {}
drawRect(float x1, float y1, float x2, float y2, GLPaint paint)51     public void drawRect(float x1, float y1, float x2, float y2, GLPaint paint) {}
fillRect(float x, float y, float width, float height, int color)52     public void fillRect(float x, float y, float width, float height, int color) {}
drawTexture( BasicTexture texture, int x, int y, int width, int height)53     public void drawTexture(
54             BasicTexture texture, int x, int y, int width, int height) {}
drawMesh(BasicTexture tex, int x, int y, int xyBuffer, int uvBuffer, int indexBuffer, int indexCount)55     public void drawMesh(BasicTexture tex, int x, int y, int xyBuffer,
56             int uvBuffer, int indexBuffer, int indexCount) {}
drawTexture(BasicTexture texture, int x, int y, int width, int height, float alpha)57     public void drawTexture(BasicTexture texture,
58             int x, int y, int width, int height, float alpha) {}
drawTexture(BasicTexture texture, RectF source, RectF target)59     public void drawTexture(BasicTexture texture, RectF source, RectF target) {}
drawTexture(BasicTexture texture, float[] mTextureTransform, int x, int y, int w, int h)60     public void drawTexture(BasicTexture texture, float[] mTextureTransform,
61             int x, int y, int w, int h) {}
drawMixed(BasicTexture from, BasicTexture to, float ratio, int x, int y, int w, int h)62     public void drawMixed(BasicTexture from, BasicTexture to,
63             float ratio, int x, int y, int w, int h) {}
drawMixed(BasicTexture from, int to, float ratio, int x, int y, int w, int h)64     public void drawMixed(BasicTexture from, int to,
65             float ratio, int x, int y, int w, int h) {}
drawMixed(BasicTexture from, BasicTexture to, float ratio, int x, int y, int width, int height, float alpha)66     public void drawMixed(BasicTexture from, BasicTexture to,
67             float ratio, int x, int y, int width, int height, float alpha) {}
copyTexture(int x, int y, int width, int height)68     public BasicTexture copyTexture(int x, int y, int width, int height) {
69         throw new UnsupportedOperationException();
70     }
getGLInstance()71     public GL11 getGLInstance() {
72         throw new UnsupportedOperationException();
73     }
unloadTexture(BasicTexture texture)74     public boolean unloadTexture(BasicTexture texture) {
75         throw new UnsupportedOperationException();
76     }
deleteBuffer(int bufferId)77     public void deleteBuffer(int bufferId) {
78         throw new UnsupportedOperationException();
79     }
deleteRecycledResources()80     public void deleteRecycledResources() {}
multiplyMatrix(float[] mMatrix, int offset)81     public void multiplyMatrix(float[] mMatrix, int offset) {}
dumpStatisticsAndClear()82     public void dumpStatisticsAndClear() {}
beginRenderTarget(RawTexture texture)83     public void beginRenderTarget(RawTexture texture) {}
endRenderTarget()84     public void endRenderTarget() {}
85 }
86