diff options
Diffstat (limited to 'src/com/android/gallery3d')
-rw-r--r-- | src/com/android/gallery3d/ui/ExtTexture.java | 5 | ||||
-rw-r--r-- | src/com/android/gallery3d/util/TextureBuffer.java | 49 |
2 files changed, 0 insertions, 54 deletions
diff --git a/src/com/android/gallery3d/ui/ExtTexture.java b/src/com/android/gallery3d/ui/ExtTexture.java index 72b214ff4..eac504fe5 100644 --- a/src/com/android/gallery3d/ui/ExtTexture.java +++ b/src/com/android/gallery3d/ui/ExtTexture.java @@ -33,11 +33,6 @@ public class ExtTexture extends BasicTexture { mTarget = target; } - public ExtTexture(int target, int width, int height) { - this(target); - setSize(width, height); - } - private void uploadToCanvas(GLCanvas canvas) { GL11 gl = canvas.getGLInstance(); diff --git a/src/com/android/gallery3d/util/TextureBuffer.java b/src/com/android/gallery3d/util/TextureBuffer.java deleted file mode 100644 index 509433b53..000000000 --- a/src/com/android/gallery3d/util/TextureBuffer.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2012 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.android.gallery3d.util; - -import java.nio.ByteBuffer; -import java.nio.ByteOrder; - -/** - * Keeps a buffer of data as read from a frame buffer. This can be used with - * glTexSubImage2D to write to a texture. - */ -public class TextureBuffer { - private int mWidth; - private int mHeight; - private ByteBuffer mBuffer; - - public TextureBuffer(int width, int height) { - mWidth = width; - mHeight = height; - - mBuffer = ByteBuffer.allocateDirect(width * height * 4).order(ByteOrder.nativeOrder()); - } - - public int getWidth() { - return mWidth; - } - - public int getHeight() { - return mHeight; - } - - public ByteBuffer getBuffer() { - return mBuffer; - } -} |