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

Side by Side Diff: cc/input_handler.h

Issue 11854013: Use input events to improve vsync scheduling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't set last-input-for-vsync bit on pages with touch handlers. Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/layer_tree_host_impl.h » ('j') | cc/vsync_time_source.cc » ('J')
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_HANDLER_H_ 5 #ifndef CC_INPUT_HANDLER_H_
6 #define CC_INPUT_HANDLER_H_ 6 #define CC_INPUT_HANDLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "cc/cc_export.h" 10 #include "cc/cc_export.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 bool anchorPoint, 60 bool anchorPoint,
61 float pageScale, 61 float pageScale,
62 base::TimeTicks startTime, 62 base::TimeTicks startTime,
63 base::TimeDelta duration) = 0; 63 base::TimeDelta duration) = 0;
64 64
65 // Request another callback to InputHandler::animate(). 65 // Request another callback to InputHandler::animate().
66 virtual void scheduleAnimation() = 0; 66 virtual void scheduleAnimation() = 0;
67 67
68 virtual bool haveTouchEventHandlersAt(const gfx::Point&) = 0; 68 virtual bool haveTouchEventHandlersAt(const gfx::Point&) = 0;
69 69
70 virtual void didReceiveLastInputEventForVSync() = 0;
71
70 protected: 72 protected:
71 InputHandlerClient() { } 73 InputHandlerClient() { }
72 virtual ~InputHandlerClient() { } 74 virtual ~InputHandlerClient() { }
73 75
74 private: 76 private:
75 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); 77 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient);
76 }; 78 };
77 79
78 class CC_EXPORT InputHandler { 80 class CC_EXPORT InputHandler {
79 public: 81 public:
80 virtual ~InputHandler() { } 82 virtual ~InputHandler() { }
81 83
82 virtual void bindToClient(InputHandlerClient*) = 0; 84 virtual void bindToClient(InputHandlerClient*) = 0;
83 virtual void animate(base::TimeTicks time) = 0; 85 virtual void animate(base::TimeTicks time) = 0;
84 virtual void mainThreadHasStoppedFlinging() = 0; 86 virtual void mainThreadHasStoppedFlinging() = 0;
85 87
86 protected: 88 protected:
87 InputHandler() { } 89 InputHandler() { }
88 90
89 private: 91 private:
90 DISALLOW_COPY_AND_ASSIGN(InputHandler); 92 DISALLOW_COPY_AND_ASSIGN(InputHandler);
91 }; 93 };
92 94
93 } 95 }
94 96
95 #endif // CC_INPUT_HANDLER_H_ 97 #endif // CC_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer_tree_host_impl.h » ('j') | cc/vsync_time_source.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698