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

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

Issue 2237943002: Remove now-unnecessary .obj() in Java method calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@switch-context
Patch Set: Rebase *again* :( Created 4 years, 4 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/gfx/android/shared_device_display_info.cc ('k') | ui/gl/android/surface_texture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/android/scoped_java_surface.cc
diff --git a/ui/gl/android/scoped_java_surface.cc b/ui/gl/android/scoped_java_surface.cc
index 62746cca75b3bcb671484238843b67a65c255318..73fd856cda149442d30cc17018f858e8fb0f1a5b 100644
--- a/ui/gl/android/scoped_java_surface.cc
+++ b/ui/gl/android/scoped_java_surface.cc
@@ -30,7 +30,7 @@ ScopedJavaSurface::ScopedJavaSurface(
is_protected_(false) {
JNIEnv* env = base::android::AttachCurrentThread();
ScopedJavaLocalRef<jobject> tmp(JNI_Surface::Java_Surface_Constructor(
- env, surface_texture->j_surface_texture().obj()));
+ env, surface_texture->j_surface_texture()));
DCHECK(!tmp.is_null());
j_surface_.Reset(tmp);
}
@@ -47,7 +47,7 @@ ScopedJavaSurface& ScopedJavaSurface::operator=(ScopedJavaSurface&& rhs) {
ScopedJavaSurface::~ScopedJavaSurface() {
if (auto_release_ && !j_surface_.is_null()) {
JNIEnv* env = base::android::AttachCurrentThread();
- JNI_Surface::Java_Surface_release(env, j_surface_.obj());
+ JNI_Surface::Java_Surface_release(env, j_surface_);
}
}
« no previous file with comments | « ui/gfx/android/shared_device_display_info.cc ('k') | ui/gl/android/surface_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698