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

Side by Side Diff: content/common/input/input_event_dispatch_type.h

Issue 2162143002: Don't use PostTask queueing between compositor and main thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't ack mouse move right away send them unthrottled Created 4 years, 5 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CONTENT_COMMON_INPUT_INPUT_EVENT_DISPATCH_TYPE_H_ 5 #ifndef CONTENT_COMMON_INPUT_INPUT_EVENT_DISPATCH_TYPE_H_
6 #define CONTENT_COMMON_INPUT_INPUT_EVENT_DISPATCH_TYPE_H_ 6 #define CONTENT_COMMON_INPUT_INPUT_EVENT_DISPATCH_TYPE_H_
7 7
8 namespace content { 8 namespace content {
9 9
10 enum InputEventDispatchType { 10 enum InputEventDispatchType {
11 // Dispatch a blocking event. Sender is waiting on an ACK. 11 // Dispatch a blocking event. Sender is waiting on an ACK.
12 DISPATCH_TYPE_BLOCKING, 12 DISPATCH_TYPE_BLOCKING,
13 // Dispatch a blocking event and notify main thread as well. This type 13 // Dispatch a blocking event and notify main thread as well. This type
14 // should only be sent from the compositor to main thread. 14 // should only be sent from the compositor to main thread.
15 DISPATCH_TYPE_BLOCKING_NOTIFY_MAIN, 15 DISPATCH_TYPE_BLOCKING_NOTIFY_MAIN,
16 // Dispatch a non-blocking event. Sender will not receive an ACK. 16 // Dispatch a non-blocking event. Sender will not receive an ACK.
17 DISPATCH_TYPE_NON_BLOCKING, 17 DISPATCH_TYPE_NON_BLOCKING,
18 // Dispatch a non-blocking event and notify main thread as well. This type 18 DISPATCH_TYPE_MAX = DISPATCH_TYPE_NON_BLOCKING
19 // should only be sent from the compositor to main thread.
20 DISPATCH_TYPE_NON_BLOCKING_NOTIFY_MAIN,
21 DISPATCH_TYPE_MAX = DISPATCH_TYPE_NON_BLOCKING_NOTIFY_MAIN
22 }; 19 };
23 20
24 } // namespace content 21 } // namespace content
25 22
26 #endif // CONTENT_COMMON_INPUT_INPUT_EVENT_DISPATCH_TYPE_H_ 23 #endif // CONTENT_COMMON_INPUT_INPUT_EVENT_DISPATCH_TYPE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698