Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / android_webview / browser / browser_view_renderer_client.h
index ebf5b7b..17d0dc4 100644 (file)
@@ -14,12 +14,11 @@ namespace android_webview {
 
 class BrowserViewRendererClient {
  public:
-  // Request DrawGL be called. Passing null |canvas| implies the request
-  // will be of AwDrawGLInfo::kModeProcess type. |wait_for_completion|
-  // will cause the call to block until DrawGL has happened; it does not
-  // work when |canvas| is not NULL. The callback may never be made, and
-  // the mode may be promoted to kModeDraw.
-  virtual bool RequestDrawGL(jobject canvas, bool wait_for_completion) = 0;
+  // Request DrawGL to be in called AwDrawGLInfo::kModeProcess type.
+  // |wait_for_completion| will cause the call to block until DrawGL has
+  // happened. The callback may never be made, and the mode may be promoted to
+  // kModeDraw.
+  virtual bool RequestDrawGL(bool wait_for_completion) = 0;
 
   // Called when a new Picture is available. Needs to be enabled
   // via the EnableOnNewPicture method.
@@ -28,6 +27,10 @@ class BrowserViewRendererClient {
   // Called to trigger view invalidations.
   virtual void PostInvalidate() = 0;
 
+  // Call postInvalidateOnAnimation for invalidations. This is only used to
+  // synchronize draw functor destruction.
+  virtual void InvalidateOnFunctorDestroy() = 0;
+
   // Called to update the parent draw constraints in browser view renderer.
   virtual void UpdateParentDrawConstraints() = 0;