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

Side by Side Diff: android_webview/browser/aw_gl_methods.h

Issue 655813004: Part 1: Refactor Android WebView graphics code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor
Patch Set: rebase Created 6 years, 2 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 2014 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_BROWSER_AW_GL_METHODS_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_GL_METHODS_H_
7
8 #include <jni.h>
9
10 namespace android_webview {
11
12 /*
13 * An interface that defines GL related methods on the webview.
14 */
15 class AwGLMethods {
boliu 2014/10/23 16:40:05 virtual destructor
hush (inactive) 2014/10/24 21:31:33 No AwGLMethods anymore in the next patch...
16 public:
17 // Request DrawGL be called. Passing null |canvas| implies the request
18 // will be of AwDrawGLInfo::kModeProcess type. |wait_for_completion|
19 // will cause the call to block until DrawGL has happened; it does not
20 // work when |canvas| is not NULL. The callback may never be made, and
21 // the mode may be promoted to kModeDraw.
22 virtual bool RequestDrawGL(jobject canvas, bool wait_for_completion) = 0;
23
24 // Immediately calls invalidate when the functor is destroyed so that
25 // the destroyed functor is cleared from the displaylist kept by Android.
26 virtual void InvalidateOnFunctorDestroy() = 0;
boliu 2014/10/23 16:40:05 Nothing calls this yet, right? Move it to the foll
hush (inactive) 2014/10/24 21:31:33 No AwGLMethods anymore in the next patch...
27 };
28 }
boliu 2014/10/23 16:40:05 nit: space above and comment on closing brace
hush (inactive) 2014/10/24 21:31:33 No AwGLMethods anymore in the next patch...
29
30 #endif // ANDROID_WEBVIEW_BROWSER_AW_GL_METHODS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698