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

Unified Diff: ui/gl/android/surface_texture.cc

Issue 973403002: Address NewApi warnings in src/ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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
« no previous file with comments | « ui/android/java/src/org/chromium/ui/widget/TextViewWithClickableSpans.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/android/surface_texture.cc
diff --git a/ui/gl/android/surface_texture.cc b/ui/gl/android/surface_texture.cc
index bf9012adeb048a507c008ba1d60d0d640a9ff6df..a9f52dc5630e7cb439d9c9ca3bcb0fdb79cd8ecb 100644
--- a/ui/gl/android/surface_texture.cc
+++ b/ui/gl/android/surface_texture.cc
@@ -87,19 +87,6 @@ void SurfaceTexture::GetTransformMatrix(float mtx[16]) {
env->ReleaseFloatArrayElements(jmatrix.obj(), elements, JNI_ABORT);
}
-void SurfaceTexture::SetDefaultBufferSize(int width, int height) {
newt (away) 2015/03/04 01:41:02 This method hasn't been used since October 2013
no sievers 2015/03/04 17:54:04 Can you remove the declaration from the header fil
newt (away) 2015/03/04 23:25:06 Whoops. Done.
- JNIEnv* env = base::android::AttachCurrentThread();
-
- if (width > 0 && height > 0) {
- Java_SurfaceTexturePlatformWrapper_setDefaultBufferSize(
- env, j_surface_texture_.obj(), static_cast<jint>(width),
- static_cast<jint>(height));
- } else {
- LOG(WARNING) << "Not setting surface texture buffer size - "
- "width or height is 0";
- }
-}
-
void SurfaceTexture::AttachToGLContext() {
if (GlContextMethodsAvailable()) {
int texture_id;
« no previous file with comments | « ui/android/java/src/org/chromium/ui/widget/TextViewWithClickableSpans.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698