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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 479083006: Revert of [Android] Consolidate vsync request logic in RWHVAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_android.h
diff --git a/content/browser/renderer_host/render_widget_host_view_android.h b/content/browser/renderer_host/render_widget_host_view_android.h
index 6041afc03502f32298f04d076942a58db53c35b3..cd502d162ee328dd34ced8427a99d01d2d23f580 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.h
+++ b/content/browser/renderer_host/render_widget_host_view_android.h
@@ -332,15 +332,6 @@
void InternalSwapCompositorFrame(uint32 output_surface_id,
scoped_ptr<cc::CompositorFrame> frame);
- enum VSyncRequestType {
- FLUSH_INPUT = 1 << 0,
- BEGIN_FRAME = 1 << 1,
- PERSISTENT_BEGIN_FRAME = 1 << 2
- };
- void RequestVSyncUpdate(uint32 requests);
- void StartObservingRootWindow();
- void StopObservingRootWindow();
- void SendBeginFrame(base::TimeTicks frame_time, base::TimeDelta vsync_period);
bool Animate(base::TimeTicks frame_time);
void OnContentScrollingChange();
@@ -354,8 +345,8 @@
// The model object.
RenderWidgetHostImpl* host_;
- // Used to control action dispatch at the next |OnVSync()| call.
- uint32 outstanding_vsync_requests_;
+ // Used to track whether this render widget needs a BeginFrame.
+ bool needs_begin_frame_;
bool is_showing_;
@@ -400,6 +391,8 @@
scoped_ptr<TouchSelectionController> selection_controller_;
bool touch_scrolling_;
size_t potentially_active_fling_count_;
+
+ bool flush_input_requested_;
int accelerated_surface_route_id_;
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698