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

Side by Side Diff: android_webview/native/aw_gl_functor.cc

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "android_webview/native/aw_gl_functor.h" 5 #include "android_webview/native/aw_gl_functor.h"
6 6
7 #include "android_webview/public/browser/draw_gl.h" 7 #include "android_webview/public/browser/draw_gl.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 #include "jni/AwGLFunctor_jni.h" 9 #include "jni/AwGLFunctor_jni.h"
10 10
11 using base::android::AttachCurrentThread; 11 using base::android::AttachCurrentThread;
12 using base::android::JavaParamRef;
13 using base::android::ScopedJavaLocalRef;
12 using content::BrowserThread; 14 using content::BrowserThread;
13 15
14 extern "C" { 16 extern "C" {
15 static AwDrawGLFunction DrawGLFunction; 17 static AwDrawGLFunction DrawGLFunction;
16 static void DrawGLFunction(long view_context, 18 static void DrawGLFunction(long view_context,
17 AwDrawGLInfo* draw_info, 19 AwDrawGLInfo* draw_info,
18 void* spare) { 20 void* spare) {
19 // |view_context| is the value that was returned from the java 21 // |view_context| is the value that was returned from the java
20 // AwContents.onPrepareDrawGL; this cast must match the code there. 22 // AwContents.onPrepareDrawGL; this cast must match the code there.
21 reinterpret_cast<android_webview::RenderThreadManager*>(view_context) 23 reinterpret_cast<android_webview::RenderThreadManager*>(view_context)
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 DCHECK_CURRENTLY_ON(BrowserThread::UI); 98 DCHECK_CURRENTLY_ON(BrowserThread::UI);
97 return reinterpret_cast<intptr_t>( 99 return reinterpret_cast<intptr_t>(
98 new AwGLFunctor(JavaObjectWeakGlobalRef(env, obj))); 100 new AwGLFunctor(JavaObjectWeakGlobalRef(env, obj)));
99 } 101 }
100 102
101 bool RegisterAwGLFunctor(JNIEnv* env) { 103 bool RegisterAwGLFunctor(JNIEnv* env) {
102 return RegisterNativesImpl(env); 104 return RegisterNativesImpl(env);
103 } 105 }
104 106
105 } // namespace android_webview 107 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/native/aw_form_database.cc ('k') | android_webview/native/aw_http_auth_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698