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 "SkAtomics.h" | |
11 #include "SkRegionPriv.h" | 10 #include "SkRegionPriv.h" |
12 #include "SkTemplates.h" | 11 #include "SkTemplates.h" |
| 12 #include "SkThread.h" |
13 #include "SkUtils.h" | 13 #include "SkUtils.h" |
14 | 14 |
15 /* Region Layout | 15 /* Region Layout |
16 * | 16 * |
17 * TOP | 17 * TOP |
18 * | 18 * |
19 * [ Bottom, X-Intervals, [Left, Right]..., X-Sentinel ] | 19 * [ Bottom, X-Intervals, [Left, Right]..., X-Sentinel ] |
20 * ... | 20 * ... |
21 * | 21 * |
22 * Y-Sentinel | 22 * Y-Sentinel |
(...skipping 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1470 bool SkRegion::debugSetRuns(const RunType runs[], int count) { | 1470 bool SkRegion::debugSetRuns(const RunType runs[], int count) { |
1471 // we need to make a copy, since the real method may modify the array, and | 1471 // we need to make a copy, since the real method may modify the array, and |
1472 // so it cannot be const. | 1472 // so it cannot be const. |
1473 | 1473 |
1474 SkAutoTArray<RunType> storage(count); | 1474 SkAutoTArray<RunType> storage(count); |
1475 memcpy(storage.get(), runs, count * sizeof(RunType)); | 1475 memcpy(storage.get(), runs, count * sizeof(RunType)); |
1476 return this->setRuns(storage.get(), count); | 1476 return this->setRuns(storage.get(), count); |
1477 } | 1477 } |
1478 | 1478 |
1479 #endif | 1479 #endif |
OLD | NEW |