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

Side by Side Diff: cc/input/input_handler.h

Issue 2429953002: Implement compositor thread VSync aligned event queue (Closed)
Patch Set: dtapuska&enne's review: Call |Now()| once per loop; Chromium style; Remove parameterized test Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_INPUT_INPUT_HANDLER_H_ 5 #ifndef CC_INPUT_INPUT_HANDLER_H_
6 #define CC_INPUT_INPUT_HANDLER_H_ 6 #define CC_INPUT_INPUT_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual void Animate(base::TimeTicks time) = 0; 56 virtual void Animate(base::TimeTicks time) = 0;
57 virtual void MainThreadHasStoppedFlinging() = 0; 57 virtual void MainThreadHasStoppedFlinging() = 0;
58 virtual void ReconcileElasticOverscrollAndRootScroll() = 0; 58 virtual void ReconcileElasticOverscrollAndRootScroll() = 0;
59 virtual void UpdateRootLayerStateForSynchronousInputHandler( 59 virtual void UpdateRootLayerStateForSynchronousInputHandler(
60 const gfx::ScrollOffset& total_scroll_offset, 60 const gfx::ScrollOffset& total_scroll_offset,
61 const gfx::ScrollOffset& max_scroll_offset, 61 const gfx::ScrollOffset& max_scroll_offset,
62 const gfx::SizeF& scrollable_size, 62 const gfx::SizeF& scrollable_size,
63 float page_scale_factor, 63 float page_scale_factor,
64 float min_page_scale_factor, 64 float min_page_scale_factor,
65 float max_page_scale_factor) = 0; 65 float max_page_scale_factor) = 0;
66 virtual void DeliverInputForBeginFrame() = 0;
66 67
67 protected: 68 protected:
68 InputHandlerClient() {} 69 InputHandlerClient() {}
69 70
70 private: 71 private:
71 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); 72 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient);
72 }; 73 };
73 74
74 // The InputHandler is a way for the embedders to interact with the impl thread 75 // The InputHandler is a way for the embedders to interact with the impl thread
75 // side of the compositor implementation. There is one InputHandler per 76 // side of the compositor implementation. There is one InputHandler per
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 InputHandler() {} 213 InputHandler() {}
213 virtual ~InputHandler() {} 214 virtual ~InputHandler() {}
214 215
215 private: 216 private:
216 DISALLOW_COPY_AND_ASSIGN(InputHandler); 217 DISALLOW_COPY_AND_ASSIGN(InputHandler);
217 }; 218 };
218 219
219 } // namespace cc 220 } // namespace cc
220 221
221 #endif // CC_INPUT_INPUT_HANDLER_H_ 222 #endif // CC_INPUT_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698