/third_party/skia/modules/particles/include/ |
H A D | SkParticleEffect.h | 152 bool isAlive() const { return (fState.fAge >= 0 && fState.fAge <= 1); } in isAlive() 155 float getRate() const { return fState.fRate; } in getRate() 156 int getBurst() const { return fState.fBurst; } in getBurst() 157 SkPoint getPosition() const { return fState.fPosition; } in getPosition() 158 SkVector getHeading() const { return fState.fHeading; } in getHeading() 159 float getScale() const { return fState.fScale; } in getScale() 160 SkVector getVelocity() const { return fState.fVelocity; } in getVelocity() 161 float getSpin() const { return fState.fSpin; } in getSpin() 162 SkColor4f getColor() const { return fState in getSpin() 226 EffectState fState; global() member in SkParticleEffect [all...] |
/third_party/skia/src/gpu/ |
H A D | GrBackendSurfaceMutableStateImpl.h | 18 : fState(layout, queueFamilyIndex) {} in GrBackendSurfaceMutableStateImpl() 21 : fState(sharedInfo.getImageLayout(), sharedInfo.getQueueFamilyIndex()) {} in GrBackendSurfaceMutableStateImpl() 24 void set(const GrBackendSurfaceMutableState& state) { fState = state; } in set() 28 SkASSERT(fState.fBackend == GrBackend::kVulkan); in getImageLayout() 29 return fState.fVkState.getImageLayout(); in getImageLayout() 33 SkASSERT(fState.fBackend == GrBackend::kVulkan); in setImageLayout() 34 fState.fVkState.setImageLayout(layout); in setImageLayout() 38 SkASSERT(fState.fBackend == GrBackend::kVulkan); in getQueueFamilyIndex() 39 return fState.fVkState.getQueueFamilyIndex(); in getQueueFamilyIndex() 43 SkASSERT(fState in setQueueFamilyIndex() 55 GrBackendSurfaceMutableState fState; global() member in GrBackendSurfaceMutableStateImpl [all...] |
/third_party/skia/tests/ |
H A D | PathOpsThreadedCommon.h | 58 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 in PathOpsThreadedRunnable() 90 PathOpsThreadState fState; global() member in PathOpsThreadedRunnable [all...] |
H A D | SkTOptionalTest.cpp | 164 : fState(kConstructed) in SkTOptionalTestPayload() 168 : fState(kCopyConstructed) in SkTOptionalTestPayload() 172 : fState(kMoveConstructed) in SkTOptionalTestPayload() 174 other.fState = kMovedFrom; in SkTOptionalTestPayload() 178 fState = kCopyAssigned; in operator =() 184 fState = kMoveAssigned; in operator =() 186 other.fState = kMovedFrom; in operator =() 189 State fState; member in SkTOptionalTestPayload 196 REPORTER_ASSERT(r, o->fState == SkTOptionalTestPayload::kConstructed); in DEF_TEST() 201 REPORTER_ASSERT(r, copy->fState in DEF_TEST() [all...] |
H A D | GrMeshTest.cpp | 52 DrawMeshHelper(GrOpFlushState* state) : fState(state) {} in DrawMeshHelper() 66 GrMeshDrawTarget* target() { return fState; } in target() 79 GrOpFlushState* fState; member in DrawMeshHelper 536 return sk_sp<const GrBuffer>(fState->resourceProvider()->createBuffer( 542 return sk_sp<const GrBuffer>(fState->resourceProvider()->createBuffer( 548 return fState->resourceProvider()->findOrCreatePatternedIndexBuffer( 560 fState->appliedClip(), 562 fState->caps(), 566 auto pipeline = GrSimpleMeshDrawOpHelper::CreatePipeline(fState, 570 GrGeometryProcessor* mtp = MeshTestProcessor::Make(fState [all...] |
/third_party/skia/modules/particles/src/ |
H A D | SkParticleEffect.cpp | 225 fState.fAge = -1.0f; in SkParticleEffect() 273 fState.fAge = 0.0f; in start() 278 fState.fLifetime = 1.0f; in start() 279 fState.fLoopCount = 0; in start() 280 fState.fRate = 0.0f; in start() 281 fState.fBurst = 0; in start() 283 fState.fPosition = position; in start() 284 fState.fHeading = heading; in start() 285 fState.fScale = scale; in start() 286 fState in start() [all...] |
/third_party/skia/src/core/ |
H A D | SkDocument.cpp | 12 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 in abort() [all...] |
H A D | SkMiniRecorder.cpp | 68 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; \ 104 fState = State::kEmpty; \ in detachAsPicture() 111 switch (fState) { in detachAsPicture() 127 fState = State::kEmpty; \ in flushAndReset() 133 switch (fState) { in flushAndReset()
|
/third_party/skia/src/utils/ |
H A D | SkJSONWriter.h | 55 , fState(State::kStart) { in SkJSONWriter() 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; in beginObject() 120 SkASSERT(State::kObjectBegin == fState || State::kObjectValue == fState); in endObject() 121 bool emptyObject = State::kObjectBegin == fState; in endObject() 144 fState in beginArray() 353 State fState; global() member in SkJSONWriter [all...] |
/third_party/skia/include/private/ |
H A D | SkOnce.h | 26 auto state = fState.load(std::memory_order_acquire); in operator ()() 33 if (state == NotStarted && fState.compare_exchange_strong(state, Claimed, in operator ()() 36 // Great! We'll run fn() then notify the other threads by releasing Done into fState. in operator ()() 38 return fState.store(Done, std::memory_order_release); in operator ()() 42 // We'll just spin here acquiring until it releases Done into fState. in operator ()() 44 while (fState.load(std::memory_order_acquire) != Done) { /*spin*/ } in operator ()() 50 std::atomic<uint8_t> fState{NotStarted};
|
/third_party/skia/samplecode/ |
H A D | SampleCowboy.cpp | 34 State fState = kZoomIn; member in __anon18634::AnimatedSVGSample 61 switch (fState) { 101 switch (fState) { 103 fState = kScroll; 107 fState = kZoomOut; 111 fState = kZoomIn;
|
/third_party/skia/src/gpu/d3d/ |
H A D | GrD3DResourceState.h | 16 GrD3DResourceState(D3D12_RESOURCE_STATES state) : fState(state) {} in GrD3DResourceState() 20 fState.store(state); in setResourceState() 25 return fState.load(); in getResourceState() 29 std::atomic<D3D12_RESOURCE_STATES> fState; member in GrD3DResourceState
|
H A D | GrD3DTextureResource.h | 27 , fState(std::move(state)) in GrD3DTextureResource() 48 sk_sp<GrD3DResourceState> grD3DResourceState() const { return fState; } in grD3DResourceState() 51 return fState->getResourceState(); in currentState() 66 fState->setResourceState(newState); in updateResourceState() 82 sk_sp<GrD3DResourceState> fState; member in GrD3DTextureResource
|
/third_party/icu/icu4c/source/common/ |
H A D | umutex.h | 99 u_atomic_int32_t fState {0}; 101 void reset() {fState = 0;} in reset() 102 UBool isReset() {return umtx_loadAcquire(fState) == 0;} in isReset() 111 if (umtx_loadAcquire(uio.fState) == 2) { in umtx_initOnce() 124 if (umtx_loadAcquire(uio.fState) == 2) { in umtx_initOnce() 139 if (umtx_loadAcquire(uio.fState) != 2 && umtx_initImplPreInit(uio)) { in umtx_initOnce() 155 if (umtx_loadAcquire(uio.fState) == 2) { in umtx_initOnce() 170 if (umtx_loadAcquire(uio.fState) != 2 && umtx_initImplPreInit(uio)) { in umtx_initOnce()
|
H A D | umutex.cpp | 136 // This function is called when a test of a UInitOnce::fState reveals that 148 if (umtx_loadAcquire(uio.fState) == 0) { in umtx_initImplPreInit() 149 umtx_storeRelease(uio.fState, 1); in umtx_initImplPreInit() 152 while (umtx_loadAcquire(uio.fState) == 1) { in umtx_initImplPreInit() 157 U_ASSERT(uio.fState == 2); in umtx_initImplPreInit() 166 // Some threads may be racing to test the fState variable outside of the mutex, 173 umtx_storeRelease(uio.fState, 2); in umtx_initImplPostInit()
|
/third_party/node/deps/icu-small/source/common/ |
H A D | umutex.h | 99 u_atomic_int32_t fState {0}; 101 void reset() {fState = 0;} in reset() 102 UBool isReset() {return umtx_loadAcquire(fState) == 0;} in isReset() 111 if (umtx_loadAcquire(uio.fState) == 2) { in umtx_initOnce() 124 if (umtx_loadAcquire(uio.fState) == 2) { in umtx_initOnce() 139 if (umtx_loadAcquire(uio.fState) != 2 && umtx_initImplPreInit(uio)) { in umtx_initOnce() 155 if (umtx_loadAcquire(uio.fState) == 2) { in umtx_initOnce() 170 if (umtx_loadAcquire(uio.fState) != 2 && umtx_initImplPreInit(uio)) { in umtx_initOnce()
|
H A D | umutex.cpp | 136 // This function is called when a test of a UInitOnce::fState reveals that 148 if (umtx_loadAcquire(uio.fState) == 0) { in umtx_initImplPreInit() 149 umtx_storeRelease(uio.fState, 1); in umtx_initImplPreInit() 152 while (umtx_loadAcquire(uio.fState) == 1) { in umtx_initImplPreInit() 157 U_ASSERT(uio.fState == 2); in umtx_initImplPreInit() 166 // Some threads may be racing to test the fState variable outside of the mutex, 173 umtx_storeRelease(uio.fState, 2); in umtx_initImplPostInit()
|
/third_party/skia/third_party/externals/icu/source/common/ |
H A D | umutex.h | 100 u_atomic_int32_t fState; member 102 void reset() {fState = 0;} in reset() 103 UBool isReset() {return umtx_loadAcquire(fState) == 0;} in isReset() 115 if (umtx_loadAcquire(uio.fState) == 2) { in umtx_initOnce() 128 if (umtx_loadAcquire(uio.fState) == 2) { in umtx_initOnce() 143 if (umtx_loadAcquire(uio.fState) != 2 && umtx_initImplPreInit(uio)) { in umtx_initOnce() 159 if (umtx_loadAcquire(uio.fState) == 2) { in umtx_initOnce() 174 if (umtx_loadAcquire(uio.fState) != 2 && umtx_initImplPreInit(uio)) { in umtx_initOnce()
|
H A D | umutex.cpp | 136 // This function is called when a test of a UInitOnce::fState reveals that 148 if (umtx_loadAcquire(uio.fState) == 0) { in umtx_initImplPreInit() 149 umtx_storeRelease(uio.fState, 1); in umtx_initImplPreInit() 152 while (umtx_loadAcquire(uio.fState) == 1) { in umtx_initImplPreInit() 157 U_ASSERT(uio.fState == 2); in umtx_initImplPreInit() 166 // Some threads may be racing to test the fState variable outside of the mutex, 173 umtx_storeRelease(uio.fState, 2); in umtx_initImplPostInit()
|
/third_party/skia/tools/viewer/ |
H A D | AnimTimer.h | 32 State state() const { return fState; } in state() 56 fState = kRunning_State; in run() 61 fState = kPaused_State; in pause() 95 State fState = kStopped_State; member in AnimTimer
|
H A D | TouchGesture.cpp | 114 fState = kEmpty_State; in resetTouchState() 169 fState = kTranslate_State; in touchBegin() 193 fState = kZoom_State; in startZoom() 204 SkASSERT(kZoom_State == fState); in endZoom() 205 fState = kEmpty_State; in endZoom() 211 if (kEmpty_State == fState) { in touchMoved() 245 SkASSERT(kZoom_State == fState); in touchMoved() 285 fState = kEmpty_State; in touchEnd() 291 SkASSERT(kZoom_State == fState); in touchEnd() 334 fState in handleDblTap() [all...] |
H A D | SlideDir.cpp | 131 , fState(State::kIdle) { in FocusController() 136 bool hasFocus() const { return fState == State::kFocused; } in hasFocus() 139 if (fState != State::kIdle) in startFocus() 156 fState = State::kFocusing; in startFocus() 170 fState = State::kUnfocusing; in startUnfocus() 221 switch (fState) { 223 fState = State::kFocused; 226 fState = State::kIdle; 245 bool isAnimating() const { return fState == State::kFocusing || fState 260 State fState = State::kIdle; global() member in final [all...] |
/third_party/skia/src/shaders/ |
H A D | SkBitmapProcShader.cpp | 20 , fState(state) in BitmapProcShaderContext() 23 if (fState->fPixmap.isOpaque() && (255 == this->getPaintAlpha())) { in BitmapProcShaderContext() 32 if (1 == fState->fPixmap.height() && only_scale_and_translate(this->getTotalInverse())) { in BitmapProcShaderContext() 40 const SkBitmapProcState& state = *fState; 70 SkBitmapProcState* fState; member in BitmapProcShaderContext
|
/third_party/skia/modules/svg/include/ |
H A D | SkSVGTypes.h | 41 SkSVGProperty() : fState(SkSVGPropertyState::kUnspecified) {} in SkSVGProperty() 43 explicit SkSVGProperty(SkSVGPropertyState state) : fState(state) {} in SkSVGProperty() 45 explicit SkSVGProperty(const T& value) : fState(SkSVGPropertyState::kValue) { in SkSVGProperty() 49 explicit SkSVGProperty(T&& value) : fState(SkSVGPropertyState::kValue) { in SkSVGProperty() 55 fState = SkSVGPropertyState::kValue; in init() 61 bool isValue() const { return fState == SkSVGPropertyState::kValue; } in isValue() 68 fState = state; in set() 69 if (fState != SkSVGPropertyState::kValue) { in set() 75 fState = SkSVGPropertyState::kValue; in set() 80 fState in set() 97 SkSVGPropertyState fState; global() member in SkSVGProperty [all...] |
/third_party/skia/modules/audioplayer/ |
H A D | SkAudioPlayer.cpp | 31 if (s != fState) { in setState() 32 fState = this->onSetState(s); in setState() 34 return fState; in setState()
|