Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(694)

Unified Diff: ui/android/java/src/org/chromium/ui/gfx/SurfaceTexturePlatformWrapper.java

Issue 70843003: ui: Android changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dom_distiller fixes Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/android/java/src/org/chromium/ui/gfx/SurfaceTexturePlatformWrapper.java
diff --git a/ui/android/java/src/org/chromium/ui/gfx/SurfaceTexturePlatformWrapper.java b/ui/android/java/src/org/chromium/ui/gfx/SurfaceTexturePlatformWrapper.java
deleted file mode 100644
index 1e77f383bb2c5e75463c6b66c57f684991c12b59..0000000000000000000000000000000000000000
--- a/ui/android/java/src/org/chromium/ui/gfx/SurfaceTexturePlatformWrapper.java
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.ui.gfx;
-
-import android.graphics.SurfaceTexture;
-import android.os.Build;
-
-import org.chromium.base.CalledByNative;
-import org.chromium.base.JNINamespace;
-
-/**
- * Wrapper class for the underlying platform's SurfaceTexture in order to
- * provide a stable JNI API.
- */
-@JNINamespace("gfx")
-class SurfaceTexturePlatformWrapper {
- @CalledByNative
- private static SurfaceTexture create(int textureId) {
- return new SurfaceTexture(textureId);
- }
-
- @CalledByNative
- private static void destroy(SurfaceTexture surfaceTexture) {
- surfaceTexture.setOnFrameAvailableListener(null);
- surfaceTexture.release();
- }
-
- @CalledByNative
- private static void setFrameAvailableCallback(SurfaceTexture surfaceTexture,
- long nativeSurfaceTextureListener) {
- surfaceTexture.setOnFrameAvailableListener(
- new SurfaceTextureListener(nativeSurfaceTextureListener));
- }
-
- @CalledByNative
- private static void updateTexImage(SurfaceTexture surfaceTexture) {
- surfaceTexture.updateTexImage();
- }
-
- @CalledByNative
- private static void setDefaultBufferSize(SurfaceTexture surfaceTexture, int width,
- int height) {
- surfaceTexture.setDefaultBufferSize(width, height);
- }
-
- @CalledByNative
- private static void getTransformMatrix(SurfaceTexture surfaceTexture, float[] matrix) {
- surfaceTexture.getTransformMatrix(matrix);
- }
-
- @CalledByNative
- private static void attachToGLContext(SurfaceTexture surfaceTexture, int texName) {
- assert Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN;
- surfaceTexture.attachToGLContext(texName);
- }
-
- @CalledByNative
- private static void detachFromGLContext(SurfaceTexture surfaceTexture) {
- assert Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN;
- surfaceTexture.detachFromGLContext();
- }
-}

Powered by Google App Engine
This is Rietveld 408576698