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

Side by Side Diff: content/browser/android/content_view_render_view.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/android/content_view_render_view.h" 5 #include "content/browser/android/content_view_render_view.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 #include <android/native_window_jni.h> 8 #include <android/native_window_jni.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 compositor_->SetNeedsComposite(); 105 compositor_->SetNeedsComposite();
106 } 106 }
107 107
108 void ContentViewRenderView::UpdateLayerTreeHost() { 108 void ContentViewRenderView::UpdateLayerTreeHost() {
109 // TODO(wkorman): Rename Layout to UpdateLayerTreeHost in all Android 109 // TODO(wkorman): Rename Layout to UpdateLayerTreeHost in all Android
110 // Compositor related classes. 110 // Compositor related classes.
111 } 111 }
112 112
113 void ContentViewRenderView::OnSwapBuffersCompleted(int pending_swap_buffers) { 113 void ContentViewRenderView::OnSwapBuffersCompleted(int pending_swap_buffers) {
114 JNIEnv* env = base::android::AttachCurrentThread(); 114 JNIEnv* env = base::android::AttachCurrentThread();
115 Java_ContentViewRenderView_onSwapBuffersCompleted(env, java_obj_.obj()); 115 Java_ContentViewRenderView_onSwapBuffersCompleted(env, java_obj_);
116 } 116 }
117 117
118 void ContentViewRenderView::InitCompositor() { 118 void ContentViewRenderView::InitCompositor() {
119 if (!compositor_) 119 if (!compositor_)
120 compositor_.reset(Compositor::Create(this, root_window_)); 120 compositor_.reset(Compositor::Create(this, root_window_));
121 } 121 }
122 122
123 } // namespace content 123 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/android/date_time_chooser_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698