summaryrefslogtreecommitdiffstats
path: root/android_webview/browser/browser_view_renderer.cc
diff options
context:
space:
mode:
authorboliu <boliu@chromium.org>2015-10-01 13:43:55 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-01 20:45:00 +0000
commit7193f016b6690ff20901da162d3b445748cf1b6f (patch)
tree95f596e8cc846e91ffbaf7b3b228d5fdf1093c8c /android_webview/browser/browser_view_renderer.cc
parent7c04ca6d03f4f4df96e93c24fa591eac1965a6f2 (diff)
downloadchromium_src-7193f016b6690ff20901da162d3b445748cf1b6f.zip
chromium_src-7193f016b6690ff20901da162d3b445748cf1b6f.tar.gz
chromium_src-7193f016b6690ff20901da162d3b445748cf1b6f.tar.bz2
aw: Handle skipped hardware frame correctly
Render thread is still holding the previous frame, which can still be used to draw in the functor. Update the android_webview bits of code to handle this correctly. Return true from OnHardwareDraw when render thread already has a previous frame. BUG=526842 Review URL: https://codereview.chromium.org/1372193003 Cr-Commit-Position: refs/heads/master@{#351879}
Diffstat (limited to 'android_webview/browser/browser_view_renderer.cc')
-rw-r--r--android_webview/browser/browser_view_renderer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/android_webview/browser/browser_view_renderer.cc b/android_webview/browser/browser_view_renderer.cc
index 556feef..e9602d1 100644
--- a/android_webview/browser/browser_view_renderer.cc
+++ b/android_webview/browser/browser_view_renderer.cc
@@ -262,7 +262,7 @@ bool BrowserViewRenderer::CompositeHw() {
if (!frame.get()) {
TRACE_EVENT_INSTANT0("android_webview", "NoNewFrame",
TRACE_EVENT_SCOPE_THREAD);
- return false;
+ return shared_renderer_state_.HasFrameOnUI();
}
scoped_ptr<ChildFrame> child_frame = make_scoped_ptr(