Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |