| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkEvent_DEFINED | 8 #ifndef SkEvent_DEFINED |
| 9 #define SkEvent_DEFINED | 9 #define SkEvent_DEFINED |
| 10 | 10 |
| 11 #include "SkDOM.h" | 11 #include "SkDOM.h" |
| 12 #include "SkMetaData.h" | 12 #include "SkMetaData.h" |
| 13 #include "SkString.h" | 13 #include "SkString.h" |
| 14 | 14 |
| 15 #include "../private/SkLeanWindows.h" |
| 16 |
| 15 /** Unique 32bit id used to identify an instance of SkEventSink. When events are | 17 /** Unique 32bit id used to identify an instance of SkEventSink. When events are |
| 16 posted, they are posted to a specific sinkID. When it is time to dispatch th
e | 18 posted, they are posted to a specific sinkID. When it is time to dispatch th
e |
| 17 event, the sinkID is used to find the specific SkEventSink object. If it is
found, | 19 event, the sinkID is used to find the specific SkEventSink object. If it is
found, |
| 18 its doEvent() method is called with the event. | 20 its doEvent() method is called with the event. |
| 19 */ | 21 */ |
| 20 typedef uint32_t SkEventSinkID; | 22 typedef uint32_t SkEventSinkID; |
| 21 | 23 |
| 22 /** | 24 /** |
| 23 * \class SkEvent | 25 * \class SkEvent |
| 24 * | 26 * |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 | 284 |
| 283 void initialize(const char* type, size_t typeLen, SkEventSinkID); | 285 void initialize(const char* type, size_t typeLen, SkEventSinkID); |
| 284 | 286 |
| 285 static bool Enqueue(SkEvent* evt); | 287 static bool Enqueue(SkEvent* evt); |
| 286 static SkMSec EnqueueTime(SkEvent* evt, SkMSec time); | 288 static SkMSec EnqueueTime(SkEvent* evt, SkMSec time); |
| 287 static SkEvent* Dequeue(); | 289 static SkEvent* Dequeue(); |
| 288 static bool QHasEvents(); | 290 static bool QHasEvents(); |
| 289 }; | 291 }; |
| 290 | 292 |
| 291 #endif | 293 #endif |
| OLD | NEW |