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

Side by Side Diff: sky/services/engine/input_event.mojom

Issue 1236043004: Improve drawer performance (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: cache paint Created 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 module sky; 5 module sky;
6 6
7 enum EventType { 7 enum EventType {
8 UNKNOWN, 8 UNKNOWN,
9 POINTER_CANCEL, 9 POINTER_CANCEL,
10 POINTER_DOWN, 10 POINTER_DOWN,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 struct GestureData { 49 struct GestureData {
50 int32 primary_pointer; 50 int32 primary_pointer;
51 float x; 51 float x;
52 float y; 52 float y;
53 float dx; 53 float dx;
54 float dy; 54 float dy;
55 float velocityX; 55 float velocityX;
56 float velocityY; 56 float velocityY;
57 }; 57 };
58 58
59 // TODO(abarth): Should we have a malloc-free way of creating an input event
60 // message? What we have now could stress out the Android Java GC.
59 struct InputEvent { 61 struct InputEvent {
60 EventType type; 62 EventType type;
61 int64 time_stamp; 63 int64 time_stamp;
62 PointerData? pointer_data; 64 PointerData? pointer_data;
63 GestureData? gesture_data; 65 GestureData? gesture_data;
64 }; 66 };
OLDNEW
« no previous file with comments | « sky/sdk/lib/widgets/icon.dart ('k') | sky/shell/android/org/domokit/sky/shell/PlatformViewAndroid.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698