OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
4 * | 3 * |
5 * 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 |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
| 7 |
8 #include "SkPixelRef.h" | 8 #include "SkPixelRef.h" |
9 #include "SkReadBuffer.h" | |
10 #include "SkWriteBuffer.h" | |
11 #include "SkThread.h" | 9 #include "SkThread.h" |
12 | 10 |
13 #ifdef SK_USE_POSIX_THREADS | 11 #ifdef SK_USE_POSIX_THREADS |
14 | 12 |
15 static SkBaseMutex gPixelRefMutexRing[] = { | 13 static SkBaseMutex gPixelRefMutexRing[] = { |
16 SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT, | 14 SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT, |
17 SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT, | 15 SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT, |
18 SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT, | 16 SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT, |
19 SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT, | 17 SK_BASE_MUTEX_INIT, SK_BASE_MUTEX_INIT, |
20 | 18 |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 | 261 |
264 #ifdef SK_BUILD_FOR_ANDROID | 262 #ifdef SK_BUILD_FOR_ANDROID |
265 void SkPixelRef::globalRef(void* data) { | 263 void SkPixelRef::globalRef(void* data) { |
266 this->ref(); | 264 this->ref(); |
267 } | 265 } |
268 | 266 |
269 void SkPixelRef::globalUnref() { | 267 void SkPixelRef::globalUnref() { |
270 this->unref(); | 268 this->unref(); |
271 } | 269 } |
272 #endif | 270 #endif |
OLD | NEW |