OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "SkEventSink.h" | 10 #include "SkEventSink.h" |
11 #include "SkTagList.h" | 11 #include "SkTagList.h" |
| 12 #include "SkThread.h" |
12 | 13 |
13 #include "../../src/core/SkThread.h" | 14 #include "SkThread.h" |
14 #include "SkTime.h" | 15 #include "SkTime.h" |
15 | 16 |
16 class SkEventSink_Globals { | 17 class SkEventSink_Globals { |
17 public: | 18 public: |
18 SkEventSink_Globals() { | 19 SkEventSink_Globals() { |
19 fNextSinkID = 0; | 20 fNextSinkID = 0; |
20 fSinkHead = NULL; | 21 fSinkHead = NULL; |
21 } | 22 } |
22 | 23 |
23 SkMutex fSinkMutex; | 24 SkMutex fSinkMutex; |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 /** Remove all name/id pairs from the system. This is call internally | 294 /** Remove all name/id pairs from the system. This is call internally |
294 on shutdown, to ensure no memory leaks. It should not be called | 295 on shutdown, to ensure no memory leaks. It should not be called |
295 before shutdown. | 296 before shutdown. |
296 */ | 297 */ |
297 void SkEventSink::RemoveAllNamedSinkIDs() | 298 void SkEventSink::RemoveAllNamedSinkIDs() |
298 { | 299 { |
299 SkAutoMutexAcquire ac(gNamedSinkMutex); | 300 SkAutoMutexAcquire ac(gNamedSinkMutex); |
300 (void)gNamedSinkIDs.reset(); | 301 (void)gNamedSinkIDs.reset(); |
301 } | 302 } |
302 #endif | 303 #endif |
OLD | NEW |