Home
last modified time | relevance | path

Searched refs:fState (Results 1 – 25 of 53) sorted by relevance

123

/external/skqp/tests/
DPathOpsThreadedCommon.h58 fState.fA = a; in PathOpsThreadedRunnable()
59 fState.fB = b; in PathOpsThreadedRunnable()
60 fState.fC = c; in PathOpsThreadedRunnable()
61 fState.fD = d; in PathOpsThreadedRunnable()
62 fState.fReporter = runner->fReporter; in PathOpsThreadedRunnable()
68 SkASSERT(strlen(str) < sizeof(fState.fSerialNo) - 1); in PathOpsThreadedRunnable()
69 strcpy(fState.fSerialNo, str); in PathOpsThreadedRunnable()
70 fState.fReporter = runner->fReporter; in PathOpsThreadedRunnable()
76 SkASSERT(strlen(str) < sizeof(fState.fSerialNo) - 1); in PathOpsThreadedRunnable()
77 fState.fA = dirNo; in PathOpsThreadedRunnable()
[all …]
/external/skia/tests/
DPathOpsThreadedCommon.h58 fState.fA = (a & 0xFF); in PathOpsThreadedRunnable()
59 fState.fB = (b & 0xFF); in PathOpsThreadedRunnable()
60 fState.fC = (c & 0xFF); in PathOpsThreadedRunnable()
61 fState.fD = (d & 0xFF); in PathOpsThreadedRunnable()
62 fState.fReporter = runner->fReporter; in PathOpsThreadedRunnable()
68 SkASSERT(strlen(str) < sizeof(fState.fSerialNo) - 1); in PathOpsThreadedRunnable()
69 strcpy(fState.fSerialNo, str); in PathOpsThreadedRunnable()
70 fState.fReporter = runner->fReporter; in PathOpsThreadedRunnable()
76 SkASSERT(strlen(str) < sizeof(fState.fSerialNo) - 1); in PathOpsThreadedRunnable()
77 fState.fA = dirNo; in PathOpsThreadedRunnable()
[all …]
/external/skia/src/utils/
DSkJSONWriter.h55 , fState(State::kStart) { in fBlock()
87 SkASSERT(State::kObjectBegin == fState || State::kObjectValue == fState); in appendName()
88 if (State::kObjectValue == fState) { in appendName()
95 fState = State::kObjectName; in appendName()
112 fState = State::kObjectBegin;
120 SkASSERT(State::kObjectBegin == fState || State::kObjectValue == fState); in endObject()
121 bool emptyObject = State::kObjectBegin == fState; in endObject()
144 fState = State::kArrayBegin;
152 SkASSERT(State::kArrayBegin == fState || State::kArrayValue == fState); in endArray()
153 bool emptyArray = State::kArrayBegin == fState; in endArray()
[all …]
/external/skqp/src/utils/
DSkJSONWriter.h55 , fState(State::kStart) { in fBlock()
87 SkASSERT(State::kObjectBegin == fState || State::kObjectValue == fState); in appendName()
88 if (State::kObjectValue == fState) { in appendName()
95 fState = State::kObjectName; in appendName()
112 fState = State::kObjectBegin;
120 SkASSERT(State::kObjectBegin == fState || State::kObjectValue == fState); in endObject()
121 bool emptyObject = State::kObjectBegin == fState; in endObject()
144 fState = State::kArrayBegin;
152 SkASSERT(State::kArrayBegin == fState || State::kArrayValue == fState); in endArray()
153 bool emptyArray = State::kArrayBegin == fState; in endArray()
[all …]
/external/skqp/tools/timer/
DSkAnimTimer.h34 SkAnimTimer() : fPreviousNanos(0), fElapsedNanos(0), fSpeed(1), fState(kStopped_State) {} in SkAnimTimer()
40 , fState(kRunning_State) {} in SkAnimTimer()
42 bool isStopped() const { return kStopped_State == fState; } in isStopped()
43 bool isRunning() const { return kRunning_State == fState; } in isRunning()
44 bool isPaused() const { return kPaused_State == fState; } in isPaused()
71 if (kRunning_State == fState) { in togglePauseResume()
86 if (kRunning_State == fState) { in updateTime()
144 State fState; variable
150 fState = kStopped_State; in setState()
153 if (kRunning_State == fState) { in setState()
[all …]
/external/skia/tools/timer/
DSkAnimTimer.h34 SkAnimTimer() : fPreviousNanos(0), fElapsedNanos(0), fSpeed(1), fState(kStopped_State) {} in SkAnimTimer()
40 , fState(kRunning_State) {} in SkAnimTimer()
42 bool isStopped() const { return kStopped_State == fState; } in isStopped()
43 bool isRunning() const { return kRunning_State == fState; } in isRunning()
44 bool isPaused() const { return kPaused_State == fState; } in isPaused()
71 if (kRunning_State == fState) { in togglePauseResume()
86 if (kRunning_State == fState) { in updateTime()
144 State fState; variable
150 fState = kStopped_State; in setState()
153 if (kRunning_State == fState) { in setState()
[all …]
/external/skqp/src/core/
DSkDocument.cpp12 SkDocument::SkDocument(SkWStream* stream) : fStream(stream), fState(kBetweenPages_State) {} in SkDocument()
33 if (width <= 0 || height <= 0 || kClosed_State == fState) { in beginPage()
36 if (kInPage_State == fState) { in beginPage()
39 SkASSERT(kBetweenPages_State == fState); in beginPage()
40 fState = kInPage_State; in beginPage()
45 if (kInPage_State == fState) { in endPage()
46 fState = kBetweenPages_State; in endPage()
53 switch (fState) { in close()
55 fState = kClosed_State; in close()
74 fState = kClosed_State; in abort()
DSkMiniRecorder.cpp68 SkMiniRecorder::SkMiniRecorder() : fState(State::kEmpty) {} in SkMiniRecorder()
70 if (fState != State::kEmpty) { in ~SkMiniRecorder()
75 SkASSERT(fState == State::kEmpty); in ~SkMiniRecorder()
79 if (fState != State::kEmpty) { return false; } \
80 fState = State::k##Type; \
101 fState = State::kEmpty; \ in detachAsPicture()
107 switch (fState) { in detachAsPicture()
123 fState = State::kEmpty; \ in flushAndReset()
129 switch (fState) { in flushAndReset()
/external/skia/src/core/
DSkDocument.cpp12 SkDocument::SkDocument(SkWStream* stream) : fStream(stream), fState(kBetweenPages_State) {} in SkDocument()
33 if (width <= 0 || height <= 0 || kClosed_State == fState) { in beginPage()
36 if (kInPage_State == fState) { in beginPage()
39 SkASSERT(kBetweenPages_State == fState); in beginPage()
40 fState = kInPage_State; in beginPage()
45 if (kInPage_State == fState) { in endPage()
46 fState = kBetweenPages_State; in endPage()
53 switch (fState) { in close()
55 fState = kClosed_State; in close()
74 fState = kClosed_State; in abort()
DSkMiniRecorder.cpp68 SkMiniRecorder::SkMiniRecorder() : fState(State::kEmpty) {} in SkMiniRecorder()
70 if (fState != State::kEmpty) { in ~SkMiniRecorder()
75 SkASSERT(fState == State::kEmpty); in ~SkMiniRecorder()
79 if (fState != State::kEmpty) { return false; } \
80 fState = State::k##Type; \
101 fState = State::kEmpty; \ in detachAsPicture()
107 switch (fState) { in detachAsPicture()
123 fState = State::kEmpty; \ in flushAndReset()
129 switch (fState) { in flushAndReset()
/external/skia/samplecode/
DSampleCowboy.cpp28 , fState(kZoomIn) in CowboyView()
67 switch (fState) { in onDrawContent()
116 switch (fState) { in onAnimate()
118 fState = kScroll; in onAnimate()
122 fState = kZoomOut; in onAnimate()
126 fState = kZoomIn; in onAnimate()
138 State fState; member in __anond007e2ba0111::CowboyView
DSampleAAGeometry.cpp511 int fState; member
517 fState = 0; in Button()
525 fState = 0; in Button()
535 return SkToBool(fState); in enabled()
542 canvas->drawRect(fBounds, paints.fStates[fState]); in draw()
548 if (++fState == fStateCount) { in toggle()
549 fState = 0; in toggle()
554 fState = (int) enabled; in setEnabled()
876 fFilterControl.fVisible = fFilterButton.fState == 2; in AAGeometryView()
1535 if (fFilterButton.fState == 2 in onDrawContent()
[all …]
/external/skqp/samplecode/
DSampleCowboy.cpp28 , fState(kZoomIn) in CowboyView()
67 switch (fState) { in onDrawContent()
116 switch (fState) { in onAnimate()
118 fState = kScroll; in onAnimate()
122 fState = kZoomOut; in onAnimate()
126 fState = kZoomIn; in onAnimate()
138 State fState; member in __anon28758c510111::CowboyView
DSampleAAGeometry.cpp511 int fState; member
517 fState = 0; in Button()
525 fState = 0; in Button()
535 return SkToBool(fState); in enabled()
542 canvas->drawRect(fBounds, paints.fStates[fState]); in draw()
548 if (++fState == fStateCount) { in toggle()
549 fState = 0; in toggle()
554 fState = (int) enabled; in setEnabled()
876 fFilterControl.fVisible = fFilterButton.fState == 2; in AAGeometryView()
1535 if (fFilterButton.fState == 2 in onDrawContent()
[all …]
/external/skqp/include/private/
DSkOnce.h26 auto state = fState.load(std::memory_order_acquire); in operator()
33 if (state == NotStarted && fState.compare_exchange_strong(state, Claimed, in operator()
38 return fState.store(Done, std::memory_order_release); in operator()
43 while (fState.load(std::memory_order_acquire) != Done) { /*spin*/ } in operator()
48 std::atomic<uint8_t> fState{NotStarted};
/external/skia/include/private/
DSkOnce.h26 auto state = fState.load(std::memory_order_acquire); in operator()
33 if (state == NotStarted && fState.compare_exchange_strong(state, Claimed, in operator()
38 return fState.store(Done, std::memory_order_release); in operator()
43 while (fState.load(std::memory_order_acquire) != Done) { /*spin*/ } in operator()
48 std::atomic<uint8_t> fState{NotStarted};
/external/icu/icu4c/source/common/
Dumutex.cpp65 &uio.fState, // Destination in umtx_initImplPreInit()
82 previousState = umtx_loadAcquire(uio.fState); in umtx_initImplPreInit()
92 umtx_storeRelease(uio.fState, 2); in umtx_initImplPostInit()
258 int32_t state = uio.fState; in umtx_initImplPreInit()
260 umtx_storeRelease(uio.fState, 1); in umtx_initImplPreInit()
264 while (uio.fState == 1) { in umtx_initImplPreInit()
270 U_ASSERT(uio.fState == 2); in umtx_initImplPreInit()
286 umtx_storeRelease(uio.fState, 2); in umtx_initImplPostInit()
Dumutex.h237 u_atomic_int32_t fState; member
239 void reset() {fState = 0;}; in reset()
240 UBool isReset() {return umtx_loadAcquire(fState) == 0;}; in isReset()
252 if (umtx_loadAcquire(uio.fState) == 2) { in umtx_initOnce()
265 if (umtx_loadAcquire(uio.fState) == 2) { in umtx_initOnce()
280 if (umtx_loadAcquire(uio.fState) != 2 && umtx_initImplPreInit(uio)) { in umtx_initOnce()
296 if (umtx_loadAcquire(uio.fState) == 2) { in umtx_initOnce()
311 if (umtx_loadAcquire(uio.fState) != 2 && umtx_initImplPreInit(uio)) { in umtx_initOnce()
/external/skia/tools/viewer/
DTouchGesture.cpp114 fState = kEmpty_State; in resetTouchState()
169 fState = kTranslate_State; in touchBegin()
172 fState = kZoom_State; in touchBegin()
210 if (kEmpty_State == fState) { in touchMoved()
244 SkASSERT(kZoom_State == fState); in touchMoved()
286 fState = kEmpty_State; in touchEnd()
290 SkASSERT(kZoom_State == fState); in touchEnd()
291 fState = kEmpty_State; in touchEnd()
294 SkASSERT(kZoom_State == fState); in touchEnd()
337 fState = kEmpty_State; in handleDblTap()
DSlideDir.cpp119 , fState(State::kIdle) { in FocusController()
124 bool hasFocus() const { return fState == State::kFocused; } in hasFocus()
127 if (fState != State::kIdle) in startFocus()
144 fState = State::kFocusing; in startFocus()
158 fState = State::kUnfocusing; in startUnfocus()
210 switch (fState) { in onTick()
212 fState = State::kFocused; in onTick()
215 fState = State::kIdle; in onTick()
234 bool isAnimating() const { return fState == State::kFocusing || fState == State::kUnfocusing; } in isAnimating()
249 State fState = State::kIdle; member in SlideDir::FocusController
/external/skqp/tools/viewer/
DTouchGesture.cpp114 fState = kEmpty_State; in resetTouchState()
169 fState = kTranslate_State; in touchBegin()
172 fState = kZoom_State; in touchBegin()
210 if (kEmpty_State == fState) { in touchMoved()
244 SkASSERT(kZoom_State == fState); in touchMoved()
286 fState = kEmpty_State; in touchEnd()
290 SkASSERT(kZoom_State == fState); in touchEnd()
291 fState = kEmpty_State; in touchEnd()
294 SkASSERT(kZoom_State == fState); in touchEnd()
337 fState = kEmpty_State; in handleDblTap()
DSlideDir.cpp116 , fState(State::kIdle) { in FocusController()
123 bool hasFocus() const { return fState == State::kFocused; } in hasFocus()
126 if (fState != State::kIdle) in startFocus()
143 fState = State::kFocusing; in startFocus()
157 fState = State::kUnfocusing; in startUnfocus()
209 switch (fState) { in onTick()
211 fState = State::kFocused; in onTick()
214 fState = State::kIdle; in onTick()
233 bool isAnimating() const { return fState == State::kFocusing || fState == State::kUnfocusing; } in isAnimating()
248 State fState = State::kIdle; member in SlideDir::FocusController
/external/skqp/src/shaders/
DSkBitmapProcShader.cpp54 , fState(state) in BitmapProcShaderContext()
58 const SkBitmapProcState& state = *fState; in shadeSpan()
88 SkBitmapProcState* fState; member in BitmapProcShaderContext
/external/skia/src/shaders/
DSkBitmapProcShader.cpp54 , fState(state) in BitmapProcShaderContext()
58 const SkBitmapProcState& state = *fState; in shadeSpan()
88 SkBitmapProcState* fState; member in BitmapProcShaderContext
/external/skqp/include/core/
DSkDocument.h82 State getState() const { return fState; } in getState()
86 State fState; variable

123