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

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

Issue 2863233002: [WebView] Move files from native to browser (Closed)
Patch Set: Created 3 years, 7 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_GL_FUNCTOR_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_GL_FUNCTOR_H_
7
8 #include <jni.h>
9
10 #include "android_webview/browser/compositor_frame_consumer.h"
11 #include "android_webview/browser/render_thread_manager.h"
12 #include "android_webview/browser/render_thread_manager_client.h"
13 #include "base/android/jni_weak_ref.h"
14
15 namespace android_webview {
16
17 class AwGLFunctor : public RenderThreadManagerClient {
18 public:
19 bool RequestInvokeGL(bool wait_for_completion) override;
20 void DetachFunctorFromView() override;
21
22 AwGLFunctor(const JavaObjectWeakGlobalRef& java_ref);
23 ~AwGLFunctor() override;
24
25 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
26 void DeleteHardwareRenderer(JNIEnv* env,
27 const base::android::JavaParamRef<jobject>& obj);
28 jlong GetAwDrawGLViewContext(JNIEnv* env,
29 const base::android::JavaParamRef<jobject>& obj);
30 jlong GetAwDrawGLFunction(JNIEnv* env,
31 const base::android::JavaParamRef<jobject>& obj);
32
33 CompositorFrameConsumer* GetCompositorFrameConsumer() {
34 return &render_thread_manager_;
35 }
36
37 private:
38 JavaObjectWeakGlobalRef java_ref_;
39 RenderThreadManager render_thread_manager_;
40 };
41
42 bool RegisterAwGLFunctor(JNIEnv* env);
43
44 } // namespace android_webview
45
46 #endif // ANDROID_WEBVIEW_NATIVE_AW_GL_FUNCTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698