OLD | NEW |
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/browser/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; | 12 using base::android::JavaParamRef; |
13 using base::android::ScopedJavaLocalRef; | 13 using base::android::ScopedJavaLocalRef; |
14 using content::BrowserThread; | 14 using content::BrowserThread; |
15 | 15 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 98 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
99 return reinterpret_cast<intptr_t>( | 99 return reinterpret_cast<intptr_t>( |
100 new AwGLFunctor(JavaObjectWeakGlobalRef(env, obj))); | 100 new AwGLFunctor(JavaObjectWeakGlobalRef(env, obj))); |
101 } | 101 } |
102 | 102 |
103 bool RegisterAwGLFunctor(JNIEnv* env) { | 103 bool RegisterAwGLFunctor(JNIEnv* env) { |
104 return RegisterNativesImpl(env); | 104 return RegisterNativesImpl(env); |
105 } | 105 } |
106 | 106 |
107 } // namespace android_webview | 107 } // namespace android_webview |
OLD | NEW |