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
17package com.android.gallery3d.ui;
18
19import android.graphics.RectF;
20
21import javax.microedition.khronos.opengles.GL11;
22
23public class GLCanvasStub implements GLCanvas {
24    public void setSize(int width, int height) {}
25    public void clearBuffer() {}
26    public void clearBuffer(float[] argb) {}
27    public void setCurrentAnimationTimeMillis(long time) {}
28    public long currentAnimationTimeMillis() {
29        throw new UnsupportedOperationException();
30    }
31    public void setAlpha(float alpha) {}
32    public float getAlpha() {
33        throw new UnsupportedOperationException();
34    }
35    public void multiplyAlpha(float alpha) {}
36    public void translate(float x, float y, float z) {}
37    public void translate(float x, float y) {}
38    public void scale(float sx, float sy, float sz) {}
39    public void rotate(float angle, float x, float y, float z) {}
40    public boolean clipRect(int left, int top, int right, int bottom) {
41        throw new UnsupportedOperationException();
42    }
43    public void save() {
44        throw new UnsupportedOperationException();
45    }
46    public void save(int saveFlags) {
47        throw new UnsupportedOperationException();
48    }
49    public void setBlendEnabled(boolean enabled) {}
50    public void restore() {}
51    public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) {}
52    public void drawRect(float x1, float y1, float x2, float y2, GLPaint paint) {}
53    public void fillRect(float x, float y, float width, float height, int color) {}
54    public void drawTexture(
55            BasicTexture texture, int x, int y, int width, int height) {}
56    public void drawMesh(BasicTexture tex, int x, int y, int xyBuffer,
57            int uvBuffer, int indexBuffer, int indexCount) {}
58    public void drawTexture(BasicTexture texture,
59            int x, int y, int width, int height, float alpha) {}
60    public void drawTexture(BasicTexture texture, RectF source, RectF target) {}
61    public void drawTexture(BasicTexture texture, float[] mTextureTransform,
62            int x, int y, int w, int h) {}
63    public void drawMixed(BasicTexture from, BasicTexture to,
64            float ratio, int x, int y, int w, int h) {}
65    public void drawMixed(BasicTexture from, int to,
66            float ratio, int x, int y, int w, int h) {}
67    public void drawMixed(BasicTexture from, BasicTexture to,
68            float ratio, int x, int y, int width, int height, float alpha) {}
69    public BasicTexture copyTexture(int x, int y, int width, int height) {
70        throw new UnsupportedOperationException();
71    }
72    public GL11 getGLInstance() {
73        throw new UnsupportedOperationException();
74    }
75    public boolean unloadTexture(BasicTexture texture) {
76        throw new UnsupportedOperationException();
77    }
78    public void deleteBuffer(int bufferId) {
79        throw new UnsupportedOperationException();
80    }
81    public void deleteRecycledResources() {}
82    public void multiplyMatrix(float[] mMatrix, int offset) {}
83    public void dumpStatisticsAndClear() {}
84    public void beginRenderTarget(RawTexture texture) {}
85    public void endRenderTarget() {}
86    public void drawMixed(BasicTexture from, int toColor,
87            float ratio, RectF src, RectF target) {}
88}
89