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

Unified Diff: android_webview/native/aw_contents.h

Issue 255023004: Add synchronous requestDrawGL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DCHECK Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/native/aw_contents.h
diff --git a/android_webview/native/aw_contents.h b/android_webview/native/aw_contents.h
index 24e430f2d90b8aa098ff241281ba65808bd52bf7..6c7d46758b1ebe9e1d9a27bdc93bb21384481421 100644
--- a/android_webview/native/aw_contents.h
+++ b/android_webview/native/aw_contents.h
@@ -100,7 +100,6 @@ class AwContents : public FindHelper::Listener,
void SetIsPaused(JNIEnv* env, jobject obj, bool paused);
void OnAttachedToWindow(JNIEnv* env, jobject obj, int w, int h);
void OnDetachedFromWindow(JNIEnv* env, jobject obj);
- void ReleaseHardwareDrawOnRenderThread(JNIEnv* env, jobject obj);
base::android::ScopedJavaLocalRef<jbyteArray> GetOpaqueState(
JNIEnv* env, jobject obj);
jboolean RestoreFromOpaqueState(JNIEnv* env, jobject obj, jbyteArray state);
@@ -163,8 +162,8 @@ class AwContents : public FindHelper::Listener,
virtual void OnWebLayoutContentsSizeChanged(
const gfx::Size& contents_size) OVERRIDE;
- // BrowserViewRenderer::Client implementation.
- virtual bool RequestDrawGL(jobject canvas) OVERRIDE;
+ // BrowserViewRendererClient implementation.
+ virtual bool RequestDrawGL(jobject canvas, bool wait_for_completion) OVERRIDE;
virtual void PostInvalidate() OVERRIDE;
virtual void OnNewPicture() OVERRIDE;
virtual gfx::Point GetLocationOnScreen() OVERRIDE;
@@ -197,16 +196,17 @@ class AwContents : public FindHelper::Listener,
void SetAwAutofillManagerDelegate(jobject delegate);
void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up);
- void TrimMemoryOnRenderThread(JNIEnv* env,
- jobject obj,
- jint level,
- jboolean visible);
+ void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible);
private:
void InitAutofillIfNecessary(bool enabled);
void DidDrawGL(const DrawGLResult& result);
void ForceFakeComposite();
+ void InitializeHardwareDrawOnRenderThread();
+ void ReleaseHardwareDrawOnRenderThread();
+ void TrimMemoryOnRenderThread(int level, bool visible);
+
base::WeakPtrFactory<AwContents> weak_factory_on_ui_thread_;
base::WeakPtr<AwContents> ui_thread_weak_ptr_;
« no previous file with comments | « android_webview/java/src/org/chromium/android_webview/AwContents.java ('k') | android_webview/native/aw_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698