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

Unified Diff: android_webview/browser/browser_view_renderer.h

Issue 2418383002: sync compositor: Signal async frame on IO thread (Closed)
Patch Set: typo Created 4 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 | « no previous file | android_webview/browser/browser_view_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/browser_view_renderer.h
diff --git a/android_webview/browser/browser_view_renderer.h b/android_webview/browser/browser_view_renderer.h
index cc3177b4bd43907694345bf75832001318767063..a10dbc66802f3698414ecfb98f6a6c9ac1f18674 100644
--- a/android_webview/browser/browser_view_renderer.h
+++ b/android_webview/browser/browser_view_renderer.h
@@ -130,9 +130,6 @@ class BrowserViewRenderer : public content::SynchronousCompositorClient,
const gfx::Vector2dF& latest_overscroll_delta,
const gfx::Vector2dF& current_fling_velocity) override;
ui::TouchHandleDrawable* CreateDrawable() override;
- void OnDrawHardwareProcessFrameFuture(
- const scoped_refptr<content::SynchronousCompositor::FrameFuture>&
- frame_future) override;
// CompositorFrameProducer overrides
void OnParentDrawConstraintsUpdated(
@@ -204,6 +201,10 @@ class BrowserViewRenderer : public content::SynchronousCompositorClient,
bool offscreen_pre_raster_;
+ // Must do a synchronous draw first to ensure GL bindings are initialized.
+ // TODO(boliu): Wait on render thread and remove this.
+ bool allow_async_draw_;
+
gfx::Vector2d last_on_draw_scroll_offset_;
gfx::Rect last_on_draw_global_visible_rect_;
« no previous file with comments | « no previous file | android_webview/browser/browser_view_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698