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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2841263002: [VSync Queue] Flush input in CommitComplete() (Closed)
Patch Set: Test Patch: VsyncAlignedInput Enabled Created 3 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: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 6965594181cb0a4dd868f89b7894ae6e36d2fdfa..e640020d75f46740c7ac6fe0a7f6bde3d1f53dda 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1910,9 +1910,12 @@ void LayerTreeHostImpl::WillBeginImplFrame(const BeginFrameArgs& args) {
for (auto* it : video_frame_controllers_)
it->OnBeginFrame(args);
+
+ input_handler_state_ = InputHandlerState::INSIDE_IMPL_FRAME;
}
void LayerTreeHostImpl::DidFinishImplFrame() {
+ input_handler_state_ = InputHandlerState::IDLE;
chongz 2017/04/27 16:19:47 Is this the right place, or should I put it in the
current_begin_frame_tracker_.Finish();
decoded_image_tracker_.NotifyFrameFinished();
}
@@ -2538,6 +2541,11 @@ void LayerTreeHostImpl::BindToClient(InputHandlerClient* client,
touchpad_and_wheel_scroll_latching_enabled_ = wheel_scroll_latching_enabled;
}
+InputHandler::InputHandlerState LayerTreeHostImpl::GetInputHandlerState()
+ const {
+ return input_handler_state_;
+};
+
InputHandler::ScrollStatus LayerTreeHostImpl::TryScroll(
const gfx::PointF& screen_space_point,
InputHandler::ScrollInputType type,

Powered by Google App Engine
This is Rietveld 408576698