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

Unified Diff: android_webview/browser/shared_renderer_state.cc

Issue 654403006: aw: Ensure invalidation when pipeline is stalled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: fallback tick interaction 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/browser/shared_renderer_state.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/shared_renderer_state.cc
diff --git a/android_webview/browser/shared_renderer_state.cc b/android_webview/browser/shared_renderer_state.cc
index 5450da63c83ba901b54f786dc2411667fff3fb63..2ed6667a6fcbdcb98ae954f7031fc6a37a6a5deb 100644
--- a/android_webview/browser/shared_renderer_state.cc
+++ b/android_webview/browser/shared_renderer_state.cc
@@ -186,6 +186,18 @@ void SharedRendererState::PostExternalDrawConstraintsToChildCompositor(
}
}
+void SharedRendererState::DidSkipCommitFrame() {
+ ui_loop_->PostTask(
+ FROM_HERE,
+ base::Bind(&SharedRendererState::DidSkipCommitFrameOnUIThread,
+ ui_thread_weak_ptr_));
+}
+
+void SharedRendererState::DidSkipCommitFrameOnUIThread() {
+ // TODO(boliu): Ugly hack.
+ client_on_ui_->PostInvalidate();
boliu 2014/10/20 17:36:09 This is horrible. Any brilliant ideas how to make
+}
+
const ParentCompositorDrawConstraints
SharedRendererState::ParentDrawConstraints() const {
base::AutoLock lock(lock_);
« no previous file with comments | « android_webview/browser/shared_renderer_state.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698