summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorGeorge Mount <mount@google.com>2012-10-01 18:26:38 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-01 18:26:38 -0700
commit1823ad1a21cdc7327389a27c499453e942955847 (patch)
treefbb09cd30ba8ed12c0bb1fc9f5ac93e16179bb84 /src/com
parent81416668746d1a8e4ade633be97403683ef75803 (diff)
parent3a31228c9a80723e3146f3e37150c3d99eada197 (diff)
downloadandroid_packages_apps_Snap-1823ad1a21cdc7327389a27c499453e942955847.tar.gz
android_packages_apps_Snap-1823ad1a21cdc7327389a27c499453e942955847.tar.bz2
android_packages_apps_Snap-1823ad1a21cdc7327389a27c499453e942955847.zip
Merge "Revert "Enable swiping from LightCycle to Gallery"" into gb-ub-photos-arches
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/gallery3d/ui/ExtTexture.java5
-rw-r--r--src/com/android/gallery3d/util/TextureBuffer.java49
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;
- }
-}