Home
last modified time | relevance | path

Searched refs:mState (Results 1 - 25 of 138) sorted by relevance

123456

/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
H A DContext.cpp56 mState.depthClearValue = 1.0f; in Context()
57 mState.stencilClearValue = 0; in Context()
59 mState.cullFaceEnabled = false; in Context()
60 mState.cullMode = GL_BACK; in Context()
61 mState.frontFace = GL_CCW; in Context()
62 mState.depthTestEnabled = false; in Context()
63 mState.depthFunc = GL_LESS; in Context()
64 mState.blendEnabled = false; in Context()
65 mState.sourceBlendRGB = GL_ONE; in Context()
66 mState in Context()
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A DShader.cpp141 : mState(type), in Shader()
142 mImplementation(implFactory->createShader(mState)), in Shader()
170 mState.mLabel = label; in setLabel()
175 return mState.mLabel; in getLabel()
199 mState.mSource = stream.str(); in setSource()
235 return mState.mSource.empty() ? 0 : (static_cast<int>(mState.mSource.length()) + 1); in getSourceLength()
242 if (mState.mTranslatedSource.empty()) in getTranslatedSourceLength()
247 return (static_cast<int>(mState.mTranslatedSource.length()) + 1); in getTranslatedSourceLength()
287 GetSourceImpl(mState in getSource()
[all...]
H A DTransformFeedback.cpp91 mState(caps.maxTransformFeedbackSeparateAttributes), in TransformFeedback()
92 mImplementation(implFactory->createTransformFeedback(mState)) in TransformFeedback()
100 if (mState.mProgram) in onDestroy()
102 mState.mProgram->release(context); in onDestroy()
103 mState.mProgram = nullptr; in onDestroy()
106 ASSERT(!mState.mProgram); in onDestroy()
107 for (size_t i = 0; i < mState.mIndexedBuffers.size(); i++) in onDestroy()
109 mState.mIndexedBuffers[i].set(context, nullptr, 0, 0); in onDestroy()
125 mState.mLabel = label; in setLabel()
130 return mState in getLabel()
[all...]
H A DFramebuffer.cpp792 : mState(caps, id, shareGroup->generateFramebufferSerial()), in Framebuffer()
793 mImpl(factory->createFramebuffer(mState)), in Framebuffer()
799 ASSERT(mState.mColorAttachments.size() == static_cast<size_t>(caps.maxColorAttachments)); in Framebuffer()
802 colorIndex < static_cast<uint32_t>(mState.mColorAttachments.size()); ++colorIndex) in Framebuffer()
813 : mState(context->getShareGroup()->generateFramebufferSerial()), in Framebuffer()
814 mImpl(surface->getImplementation()->createDefaultFramebuffer(context, mState)), in Framebuffer()
844 SetComponentTypeMask(getDrawbufferWriteType(0), 0, &mState.mDrawBufferTypeMask); in Framebuffer()
846 mState.mSurfaceTextureOffset = surface->getTextureOffset(); in Framebuffer()
855 : mState(context->getShareGroup()->generateFramebufferSerial()), in Framebuffer()
856 mImpl(factory->createFramebuffer(mState)), in Framebuffer()
[all...]
H A DImage.cpp276 : mState(target, buffer, attribs), in Image()
277 mImplementation(factory->createImage(mState, context, target, attribs)), in Image()
283 mState.source->addImageSource(this); in Image()
290 ASSERT(mState.targets.empty()); in onDestroy()
296 if (mState.source != nullptr) in onDestroy()
298 mState.source->removeImageSource(this); in onDestroy()
301 if (IsExternalImageTarget(mState.sourceType)) in onDestroy()
303 ExternalImageSibling *externalSibling = rx::GetAs<ExternalImageSibling>(mState.source); in onDestroy()
308 mState.source = nullptr; in onDestroy()
319 mState in setLabel()
[all...]
H A DProgramPipeline.cpp150 mProgramPipelineImpl(factory->createProgramPipeline(mState)), in ProgramPipeline()
159 mExecutableObserverBinding.bind(mState.mExecutable); in ProgramPipeline()
169 for (Program *program : mState.mPrograms) in onDestroy()
183 mState.mLabel = label; in setLabel()
188 return mState.mLabel; in getLabel()
198 mState.activeShaderProgram(shaderProgram); in activeShaderProgram()
205 mState.useProgramStages(context, stages, shaderProgram, &mProgramObserverBindings); in useProgramStages()
208 mState.mIsLinked = false; in useProgramStages()
215 mState.mExecutable->resetLinkedShaderStages(); in updateLinkedShaderStages()
219 Program *program = mState in updateLinkedShaderStages()
[all...]
H A DSampler.cpp20 mState(), in Sampler()
22 mSampler(factory->createSampler(mState)), in Sampler()
51 mState.setMinFilter(minFilter); in setMinFilter()
57 return mState.getMinFilter(); in getMinFilter()
62 mState.setMagFilter(magFilter); in setMagFilter()
68 return mState.getMagFilter(); in getMagFilter()
73 mState.setWrapS(wrapS); in setWrapS()
79 return mState.getWrapS(); in getWrapS()
84 mState.setWrapT(wrapT); in setWrapT()
90 return mState in getWrapT()
[all...]
H A DContext_gles_1_0.cpp41 mState.gles1().setAlphaFunc(func, ref); in alphaFunc()
46 mState.gles1().setAlphaFunc(func, ConvertFixedToFloat(ref)); in alphaFuncx()
51 mState.setColorClearValue(ConvertFixedToFloat(red), ConvertFixedToFloat(green), in clearColorx()
57 mState.setDepthClearValue(clamp01(ConvertFixedToFloat(depth))); in clearDepthx()
62 mState.gles1().setClientTextureUnit(texture - GL_TEXTURE0); in clientActiveTexture()
68 mState.gles1().setClipPlane(p - GL_CLIP_PLANE0, eqn); in clipPlanef()
80 mState.gles1().setClipPlane(plane - GL_CLIP_PLANE0, equationf); in clipPlanex()
85 mState.gles1().setCurrentColor({red, green, blue, alpha}); in color4f()
90 mState.gles1().setCurrentColor( in color4ub()
97 mState in color4x()
[all...]
H A DBuffer.cpp47 mImpl(factory->createBuffer(mState)), in Buffer()
67 mState.mLabel = label; in setLabel()
72 return mState.mLabel; in getLabel()
112 if (mState.isMapped()) in bufferDataImpl()
141 mState.mSize = 0; in bufferDataImpl()
149 bool wholeBuffer = size == mState.mSize; in bufferDataImpl()
152 mState.mUsage = usage; in bufferDataImpl()
153 mState.mSize = size; in bufferDataImpl()
154 mState.mImmutable = (usage == BufferUsage::InvalidEnum); in bufferDataImpl()
155 mState in bufferDataImpl()
[all...]
H A DTexture.cpp745 mState(type), in Texture()
746 mTexture(factory->createTexture(mState)), in Texture()
774 mState.mBuffer.set(context, nullptr, 0, 0); in onDestroy()
789 mState.mLabel = label; in setLabel()
799 return mState.mLabel; in getLabel()
804 mState.mSwizzleState.swizzleRed = swizzleRed; in setSwizzleRed()
810 return mState.mSwizzleState.swizzleRed; in getSwizzleRed()
815 mState.mSwizzleState.swizzleGreen = swizzleGreen; in setSwizzleGreen()
821 return mState.mSwizzleState.swizzleGreen; in getSwizzleGreen()
826 mState in setSwizzleBlue()
[all...]
H A DContext.cpp362 : mState(shareContext ? &shareContext->mState : nullptr, in Context()
382 ->createContext(mState, &mErrors, config, shareContext, attribs)), in Context()
459 mState.initialize(this); in initializeDefaultResources()
498 for (int i = 0; i < mState.mCaps.maxAtomicCounterBufferBindings; i++) in initializeDefaultResources()
503 for (int i = 0; i < mState.mCaps.maxShaderStorageBufferBindings; i++) in initializeDefaultResources()
547 mState.initializeZeroTextures(this, mZeroTextures); in initializeDefaultResources()
552 mState.getShareGroup()->addSharedContext(this); in initializeDefaultResources()
572 for (int i = 0; i < mState.mCaps.maxUniformBufferBindings; i++) in initializeDefaultResources()
672 mGLES1Renderer->onDestroy(this, &mState); in onDestroy()
[all...]
H A DProgram.cpp1371 mProgram(factory->createProgram(mState)), in Program()
1394 if (mState.mAttachedShaders[shaderType]) in onDestroy()
1396 mState.mAttachedShaders[shaderType]->release(context); in onDestroy()
1397 mState.mAttachedShaders[shaderType] = nullptr; in onDestroy()
1403 ASSERT(!mState.hasAttachedShader()); in onDestroy()
1417 mState.mLabel = label; in setLabel()
1423 return mState.mLabel; in getLabel()
1431 mState.mAttachedShaders[shaderType] = shader; in attachShader()
1432 mState.mAttachedShaders[shaderType]->addRef(); in attachShader()
1441 ASSERT(mState in detachShader()
[all...]
H A DVertexArray.cpp113 mState(this, maxAttribs, maxAttribBindings), in VertexArray()
114 mVertexArray(factory->createVertexArray(mState)), in VertexArray()
131 VertexBinding &binding = mState.mVertexBindings[bindingIndex]; in onDestroy()
147 if (mState.mElementArrayBuffer.get()) in onDestroy()
151 mState.mElementArrayBuffer->onNonTFBindingChanged(-1); in onDestroy()
153 mState.mElementArrayBuffer->removeContentsObserver(this, kElementArrayBufferIndex); in onDestroy()
155 mState.mElementArrayBuffer.bind(context, nullptr); in onDestroy()
168 mState.mLabel = label; in setLabel()
173 return mState.mLabel; in getLabel()
182 VertexBinding &binding = mState in detachBuffer()
[all...]
H A DBuffer.h138 const BufferState &getState() const { return mState; } in getState()
139 BufferUsage getUsage() const { return mState.mUsage; } in getUsage()
140 GLbitfield getAccessFlags() const { return mState.mAccessFlags; } in getAccessFlags()
141 GLenum getAccess() const { return mState.mAccess; } in getAccess()
142 GLboolean isMapped() const { return mState.mMapped; } in isMapped()
145 return (mState.mStorageExtUsageFlags & GL_MAP_PERSISTENT_BIT_EXT) != 0; in isPersistentlyMapped()
147 void *getMapPointer() const { return mState.mMapPointer; } in getMapPointer()
148 GLint64 getMapOffset() const { return mState.mMapOffset; } in getMapOffset()
149 GLint64 getMapLength() const { return mState.mMapLength; } in getMapLength()
150 GLint64 getSize() const { return mState in getMapLength()
208 BufferState mState; global() member in gl::final
[all...]
H A DRenderbuffer.cpp103 mState(), in Renderbuffer()
104 mImplementation(implFactory->createRenderbuffer(mState)), in Renderbuffer()
145 mState.update(width, height, Format(internalformat), 0, MultisamplingMode::Regular, in setStorage()
169 mState.update(width, height, Format(internalformat), samples, mode, in setStorageMultisample()
185 mState.update(static_cast<GLsizei>(image->getWidth()), static_cast<GLsizei>(image->getHeight()), in setStorageEGLImageTarget()
188 mState.setProtectedContent(image->hasProtectedContent()); in setStorageEGLImageTarget()
245 return mState.mWidth; in getWidth()
250 return mState.mHeight; in getHeight()
255 return mState.mFormat; in getFormat()
260 return mState in getSamples()
[all...]
H A DProgramPipeline.h101 const ProgramPipelineState &getState() const { return mState; } in getState()
102 ProgramPipelineState &getState() { return mState; } in getState()
104 ProgramExecutable &getExecutable() const { return mState.getExecutable(); } in getExecutable()
108 Program *getActiveShaderProgram() { return mState.getActiveShaderProgram(); } in getActiveShaderProgram()
112 Program *program = mState.getActiveShaderProgram(); in getLinkedActiveShaderProgram()
124 Program *getShaderProgram(ShaderType shaderType) const { return mState.mPrograms[shaderType]; } in getShaderProgram()
126 void resetIsLinked() { mState.mIsLinked = false; } in resetIsLinked()
130 GLboolean isValid() const { return mState.isValid(); } in isValid()
131 bool isLinked() const { return mState.mIsLinked; } in isLinked()
151 ProgramPipelineState mState; member in gl::final
[all...]
H A DStream.cpp31 mState(EGL_STREAM_STATE_CREATED_KHR), in Stream()
91 return mState; in getState()
126 ASSERT(mState == EGL_STREAM_STATE_CREATED_KHR); in createConsumerGLTextureExternal()
169 mState = EGL_STREAM_STATE_CONNECTING_KHR; in createConsumerGLTextureExternal()
176 ASSERT(mState == EGL_STREAM_STATE_CONNECTING_KHR); in createProducerD3D11Texture()
184 mState = EGL_STREAM_STATE_EMPTY_KHR; in createProducerD3D11Texture()
192 ASSERT(mState == EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR || in consumerAcquire()
193 mState == EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR); in consumerAcquire()
198 mState = EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR; in consumerAcquire()
216 ASSERT(mState in consumerRelease()
[all...]
H A DSurface.cpp67 mState(config, attributes), in Surface()
145 mTextureOffset.x = static_cast<int>(mState.attributes.get(EGL_TEXTURE_OFFSET_X_ANGLE, 0)); in Surface()
146 mTextureOffset.y = static_cast<int>(mState.attributes.get(EGL_TEXTURE_OFFSET_Y_ANGLE, 0)); in Surface()
182 GLenum overrideRenderTargetFormat = mState.config->renderTargetFormat; in initialize()
192 // If an override is required update mState.config as well in initialize()
193 if (mState.config->renderTargetFormat != overrideRenderTargetFormat) in initialize()
195 egl::Config *overrideConfig = new egl::Config(*(mState.config)); in initialize()
197 delete mState.config; in initialize()
198 mState.config = overrideConfig; in initialize()
200 mColorFormat = gl::Format(mState in initialize()
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
H A DImageVk.cpp43 else if (egl::IsExternalImageTarget(mState.target)) in onDestroy()
45 ASSERT(mState.source != nullptr); in onDestroy()
47 GetImplAs<ExternalImageSiblingVk>(GetAs<egl::ExternalImageSibling>(mState.source)); in onDestroy()
60 if (egl::IsTextureTarget(mState.target)) in initialize()
64 TextureVk *textureVk = GetImplAs<TextureVk>(GetAs<gl::Texture>(mState.source)); in initialize()
79 mImageTextureType = mState.imageIndex.getType(); in initialize()
80 mImageLevel = gl::LevelIndex(mState.imageIndex.getLevelIndex()); in initialize()
81 mImageLayer = mState.imageIndex.hasLayer() ? mState.imageIndex.getLayerIndex() : 0; in initialize()
86 if (egl::IsRenderbufferTarget(mState in initialize()
[all...]
/third_party/skia/third_party/externals/oboe/src/common/
H A DLatencyTuner.cpp35 if (mState == State::Unsupported) { in tune()
49 if (mState == State::Idle && --mIdleCountDown <= 0) { in tune()
50 mState = State::Active; in tune()
54 if (mState == State::Active) { in tune()
70 mState = State::Unsupported; in tune()
72 mState = State::AtMax; in tune()
76 mState = State::Unsupported; in tune()
80 if (mState == State::Unsupported) { in tune()
84 if (mState == State::AtMax) { in tune()
91 if (mState ! in requestReset()
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DBuddyAllocator.cpp43 if (block->mState == BlockState::Free) { in ComputeNumOfFreeBlocks()
45 } else if (block->mState == BlockState::Split) { in ComputeNumOfFreeBlocks()
99 ASSERT(block->mState == BlockState::Free); in InsertFreeBlock()
117 ASSERT(block->mState == BlockState::Free); in RemoveFreeBlock()
128 ASSERT(pPrev->mState == BlockState::Free); in RemoveFreeBlock()
133 ASSERT(pNext->mState == BlockState::Free); in RemoveFreeBlock()
162 ASSERT(currBlock->mState == BlockState::Free); in Allocate()
188 currBlock->mState = BlockState::Split; in Allocate()
197 currBlock->mState = BlockState::Allocated; in Allocate()
211 while (curr->mState
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
H A DSamplerGL.cpp93 SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MIN_FILTER, &gl::SamplerState::getMinFilter, &gl::SamplerState::setMinFilter); in syncState()
94 SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MAG_FILTER, &gl::SamplerState::getMagFilter, &gl::SamplerState::setMagFilter); in syncState()
95 SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_WRAP_S, &gl::SamplerState::getWrapS, &gl::SamplerState::setWrapS); in syncState()
96 SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_WRAP_T, &gl::SamplerState::getWrapT, &gl::SamplerState::setWrapT); in syncState()
97 SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_WRAP_R, &gl::SamplerState::getWrapR, &gl::SamplerState::setWrapR); in syncState()
98 SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MAX_ANISOTROPY_EXT, &gl::SamplerState::getMaxAnisotropy, &gl::SamplerState::setMaxAnisotropy); in syncState()
99 SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MIN_LOD, &gl::SamplerState::getMinLod, &gl::SamplerState::setMinLod); in syncState()
100 SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MAX_LOD, &gl::SamplerState::getMaxLod, &gl::SamplerState::setMaxLod); in syncState()
101 SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_COMPARE_MODE, &gl::SamplerState::getCompareMode, &gl::SamplerState::setCompareMode); in syncState()
102 SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerStat in syncState()
[all...]
/third_party/vk-gl-cts/external/openglcts/modules/gl/
H A Dgl4cSparseTextureTests.cpp1616 , mState() in SparseTextureCommitmentTestCase()
1629 : TestCase(context, name, description), mState() in SparseTextureCommitmentTestCase()
1722 for (int l = 0; l < mState.levels; ++l) in iterate()
1726 for (int l = 0; l < mState.levels; ++l) in iterate()
1810 mState.minDepth = SparseTextureUtils::getTargetDepth(target); in prepareTexture()
1811 SparseTextureUtils::getTexturePageSizes(gl, target, format, mState.pageSizeX, mState.pageSizeY, mState.pageSizeZ); in prepareTexture()
1816 if (mState.pageSizeX > mState in prepareTexture()
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
H A DFramebuffer11.cpp69 const auto &colorAttachments = mState.getColorAttachments(); in markAttachmentsDirty()
70 for (size_t drawBuffer : mState.getEnabledDrawBuffers()) in markAttachmentsDirty()
77 const gl::FramebufferAttachment *dsAttachment = mState.getDepthOrStencilAttachment(); in markAttachmentsDirty()
91 const gl::FramebufferAttachment *colorAttachment = mState.getFirstColorAttachment(); in clearImpl()
103 ANGLE_TRY(clearer->clearFramebuffer(context, presentPathFastClearParams, mState)); in clearImpl()
107 ANGLE_TRY(clearer->clearFramebuffer(context, clearParams, mState)); in clearImpl()
172 mState.getColorAttachment(colorIndex); in invalidateBase()
194 discardStencil = foundStencil && (!discardDepth || mState.getDepthAttachment() == nullptr); in invalidateBase()
204 (foundDepth && (mState.getStencilAttachment() == nullptr)); in invalidateBase()
205 discardStencil = (foundStencil && (mState in invalidateBase()
[all...]
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/analyzer/
H A DGlitchAnalyzer.h43 return mState; in getState()
104 << mState << "\n";
108 bool gotLock = (mState == STATE_LOCKED) || (mGlitchCount > 0);
127 ALOGD("st = %d, #gl = %3d,", mState, mGlitchCount);
173 mStateFrameCounters[mState]++; // count how many frames we are in each state
175 switch (mState) {
179 mState = STATE_IMMUNE;
189 mState = STATE_WAITING_FOR_SIGNAL;
195 mState = STATE_WAITING_FOR_LOCK;
213 mState
452 sine_state_t mState = STATE_IDLE; global() member in GlitchAnalyzer
[all...]

Completed in 38 milliseconds

123456