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

Side by Side Diff: src/core/SkRegion.cpp

Issue 1215393002: Remove SkThread.h, include SkMutex.h or SkAtomics.h as appropriate. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: skimagefilter 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
« no previous file with comments | « src/core/SkPixelRef.cpp ('k') | src/core/SkRegionPriv.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
10 #include "SkRegionPriv.h" 11 #include "SkRegionPriv.h"
11 #include "SkTemplates.h" 12 #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
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
OLDNEW
« no previous file with comments | « src/core/SkPixelRef.cpp ('k') | src/core/SkRegionPriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698