• Home
  • Raw
  • Download

Lines Matching +full:node +full:- +full:core

4  * Use of this source code is governed by a BSD-style license that can be
11 #include "include/core/SkColor.h"
12 #include "include/core/SkData.h"
13 #include "include/core/SkEncodedImageFormat.h"
14 #include "include/core/SkFont.h"
15 #include "include/core/SkFontStyle.h"
16 #include "include/core/SkFontTypes.h"
17 #include "include/core/SkImageEncoder.h"
18 #include "include/core/SkImageInfo.h"
19 #include "include/core/SkPixmap.h"
20 #include "include/core/SkRect.h"
21 #include "include/core/SkRefCnt.h"
22 #include "include/core/SkScalar.h"
23 #include "include/core/SkStream.h"
24 #include "include/core/SkSurface.h"
25 #include "include/core/SkTypeface.h"
26 #include "include/core/SkTypes.h"
30 #include "src/core/SkTInternalLList.h"
70 * Returns a platform-independent text renderer.
101 /** Make it easier to create a bitmap-based checkerboard */
128 // Constructs a star by walking a 'numPts'-sided regular polygon with even/odd fill:
133 // lineTo(pts[(step * (N - 1)) % numPts]);
135 // numPts=5, step=2 will produce a classic five-point star.
137 // numPts and step must be co-prime.
166 // check that the topological sort is valid for this node
173 if (!fDependencies[i]->fWasOutput) { in check()
176 // This node should've been output after all the nodes on which it depends in check()
177 if (fOutputPos < fDependencies[i]->outputPos()) { in check()
186 static void SetTempMark(TopoTestNode* node) { node->fTempMark = true; } in SetTempMark() argument
187 static void ResetTempMark(TopoTestNode* node) { node->fTempMark = false; } in ResetTempMark() argument
188 static bool IsTempMarked(TopoTestNode* node) { return node->fTempMark; } in IsTempMarked() argument
189 static void Output(TopoTestNode* node, uint32_t outputPos) { in Output() argument
190 SkASSERT(!node->fWasOutput); in Output()
191 node->fOutputPos = outputPos; in Output()
192 node->fWasOutput = true; in Output()
194 static bool WasOutput(TopoTestNode* node) { return node->fWasOutput; } in WasOutput() argument
195 static uint32_t GetIndex(TopoTestNode* node) { return node->outputPos(); } in GetIndex() argument
196 static int NumDependencies(TopoTestNode* node) { return node->fDependencies.count(); } in NumDependencies() argument
197 static TopoTestNode* Dependency(TopoTestNode* node, int index) { in Dependency() argument
198 return node->fDependencies[index]; in Dependency()
200 static int NumTargets(TopoTestNode* node) { return node->fTargets.count(); } in NumTargets() argument
201 static uint32_t GetTarget(TopoTestNode* node, int i) { return node->fTargets[i]; } in GetTarget() argument
202 static uint32_t GetID(TopoTestNode* node) { return node->id(); } in GetID() argument
206 graph->reserve_back(num); in AllocNodes()
209 graph->push_back(sk_sp<TopoTestNode>(new TopoTestNode(i))); in AllocNodes()
216 SkDebugf("%d, ", graph[i]->id()); in Print()
224 for (int i = graph->count() - 1; i > 0; --i) { in Shuffle()
225 int swap = rand->nextU() % (i + 1); in Shuffle()
257 if (!surf->peekPixels(&pm)) { in PixelIter()
260 this->reset(pm); in PixelIter()
265 fLoc = {-1, 0}; in reset()
276 this->setDone();