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

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

Issue 1214603003: Revert of Remove SkThread.h, include SkMutex.h or SkAtomics.h as appropriate. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: 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/SkCachedData.h ('k') | src/core/SkDeviceProfile.cpp » ('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 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
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 #include "SkAtomics.h"
9 #include "SkCanvas.h" 8 #include "SkCanvas.h"
10 #include "SkClipStack.h" 9 #include "SkClipStack.h"
11 #include "SkPath.h" 10 #include "SkPath.h"
12 #include "SkPathOps.h" 11 #include "SkPathOps.h"
12 #include "SkThread.h"
13 13
14 #include <new> 14 #include <new>
15 15
16 16
17 // 0-2 are reserved for invalid, empty & wide-open 17 // 0-2 are reserved for invalid, empty & wide-open
18 static const int32_t kFirstUnreservedGenID = 3; 18 static const int32_t kFirstUnreservedGenID = 3;
19 int32_t SkClipStack::gGenID = kFirstUnreservedGenID; 19 int32_t SkClipStack::gGenID = kFirstUnreservedGenID;
20 20
21 SkClipStack::Element::Element(const Element& that) { 21 SkClipStack::Element::Element(const Element& that) {
22 switch (that.getType()) { 22 switch (that.getType()) {
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 906
907 void SkClipStack::dump() const { 907 void SkClipStack::dump() const {
908 B2TIter iter(*this); 908 B2TIter iter(*this);
909 const Element* e; 909 const Element* e;
910 while ((e = iter.next())) { 910 while ((e = iter.next())) {
911 e->dump(); 911 e->dump();
912 SkDebugf("\n"); 912 SkDebugf("\n");
913 } 913 }
914 } 914 }
915 #endif 915 #endif
OLDNEW
« no previous file with comments | « src/core/SkCachedData.h ('k') | src/core/SkDeviceProfile.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698