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 setCurrentAnimationTimeMillis(long time) {}
27    public long currentAnimationTimeMillis() {
28        throw new UnsupportedOperationException();
29    }
30    public void setAlpha(float alpha) {}
31    public float getAlpha() {
32        throw new UnsupportedOperationException();
33    }
34    public void multiplyAlpha(float alpha) {}
35    public void translate(float x, float y, float z) {}
36    public void scale(float sx, float sy, float sz) {}
37    public void rotate(float angle, float x, float y, float z) {}
38    public boolean clipRect(int left, int top, int right, int bottom) {
39        throw new UnsupportedOperationException();
40    }
41    public int save() {
42        throw new UnsupportedOperationException();
43    }
44    public int save(int saveFlags) {
45        throw new UnsupportedOperationException();
46    }
47    public void setBlendEnabled(boolean enabled) {}
48    public void restore() {}
49    public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) {}
50    public void drawRect(float x1, float y1, float x2, float y2, GLPaint paint) {}
51    public void fillRect(float x, float y, float width, float height, int color) {}
52    public void drawTexture(
53            BasicTexture texture, int x, int y, int width, int height) {}
54    public void drawMesh(BasicTexture tex, int x, int y, int xyBuffer,
55            int uvBuffer, int indexBuffer, int indexCount) {}
56    public void drawTexture(BasicTexture texture,
57            int x, int y, int width, int height, float alpha) {}
58    public void drawTexture(BasicTexture texture, RectF source, RectF target) {}
59    public void drawMixed(BasicTexture from, BasicTexture to,
60            float ratio, int x, int y, int w, int h) {}
61    public void drawMixed(BasicTexture from, int to,
62            float ratio, int x, int y, int w, int h) {}
63    public void drawMixed(BasicTexture from, BasicTexture to,
64            float ratio, int x, int y, int width, int height, float alpha) {}
65    public BasicTexture copyTexture(int x, int y, int width, int height) {
66        throw new UnsupportedOperationException();
67    }
68    public GL11 getGLInstance() {
69        throw new UnsupportedOperationException();
70    }
71    public boolean unloadTexture(BasicTexture texture) {
72        throw new UnsupportedOperationException();
73    }
74    public void deleteBuffer(int bufferId) {
75        throw new UnsupportedOperationException();
76    }
77    public void deleteRecycledResources() {}
78    public void multiplyMatrix(float[] mMatrix, int offset) {}
79}
80