blob: 5f749d8fc6e97cdd082c20ad695a99d25e2bc450 [file] [log] [blame]
Owen Linf9a0a432011-08-17 22:07:43 +08001/*
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) {}
Chih-Chung Chang174cac82012-02-16 07:27:03 +080036 public void translate(float x, float y) {}
Owen Linf9a0a432011-08-17 22:07:43 +080037 public void scale(float sx, float sy, float sz) {}
38 public void rotate(float angle, float x, float y, float z) {}
39 public boolean clipRect(int left, int top, int right, int bottom) {
40 throw new UnsupportedOperationException();
41 }
Chih-Chung Changcfa105d2012-02-18 06:17:18 +080042 public void save() {
Owen Linf9a0a432011-08-17 22:07:43 +080043 throw new UnsupportedOperationException();
44 }
Chih-Chung Changcfa105d2012-02-18 06:17:18 +080045 public void save(int saveFlags) {
Owen Linf9a0a432011-08-17 22:07:43 +080046 throw new UnsupportedOperationException();
47 }
48 public void setBlendEnabled(boolean enabled) {}
49 public void restore() {}
50 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) {}
51 public void drawRect(float x1, float y1, float x2, float y2, GLPaint paint) {}
52 public void fillRect(float x, float y, float width, float height, int color) {}
53 public void drawTexture(
54 BasicTexture texture, int x, int y, int width, int height) {}
55 public void drawMesh(BasicTexture tex, int x, int y, int xyBuffer,
56 int uvBuffer, int indexBuffer, int indexCount) {}
57 public void drawTexture(BasicTexture texture,
58 int x, int y, int width, int height, float alpha) {}
59 public void drawTexture(BasicTexture texture, RectF source, RectF target) {}
Chih-Chung Changb29a27f2012-03-22 17:42:33 +080060 public void drawTexture(BasicTexture texture, float[] mTextureTransform,
61 int x, int y, int w, int h) {}
Owen Linf9a0a432011-08-17 22:07:43 +080062 public void drawMixed(BasicTexture from, BasicTexture to,
63 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) {}
66 public void drawMixed(BasicTexture from, BasicTexture to,
67 float ratio, int x, int y, int width, int height, float alpha) {}
68 public BasicTexture copyTexture(int x, int y, int width, int height) {
69 throw new UnsupportedOperationException();
70 }
71 public GL11 getGLInstance() {
72 throw new UnsupportedOperationException();
73 }
74 public boolean unloadTexture(BasicTexture texture) {
75 throw new UnsupportedOperationException();
76 }
77 public void deleteBuffer(int bufferId) {
78 throw new UnsupportedOperationException();
79 }
80 public void deleteRecycledResources() {}
81 public void multiplyMatrix(float[] mMatrix, int offset) {}
Chih-Chung Chang7b83fb82012-02-22 08:00:31 +080082 public void dumpStatisticsAndClear() {}
Owen Lin8ac2e862012-04-24 14:08:44 +080083 public void beginRenderTarget(RawTexture texture) {}
84 public void endRenderTarget() {}
Owen Linf9a0a432011-08-17 22:07:43 +080085}