Home
last modified time | relevance | path

Searched refs:SkASSERT (Results 1 – 25 of 2578) sorted by relevance

12345678910>>...104

/external/skqp/tests/
DDeviceTest.cpp54 SkASSERT(!special->isTextureBacked());
55 SkASSERT(kWidth == special->width());
56 SkASSERT(kHeight == special->height());
57 SkASSERT(bm.getGenerationID() == special->uniqueID());
58 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
63 SkASSERT(!special->isTextureBacked());
64 SkASSERT(kWidth == special->width());
65 SkASSERT(kHeight == special->height());
66 SkASSERT(bm.getGenerationID() == special->uniqueID());
67 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
[all …]
/external/skia/tests/
DDeviceTest.cpp54 SkASSERT(!special->isTextureBacked());
55 SkASSERT(kWidth == special->width());
56 SkASSERT(kHeight == special->height());
57 SkASSERT(bm.getGenerationID() == special->uniqueID());
58 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
63 SkASSERT(!special->isTextureBacked());
64 SkASSERT(kWidth == special->width());
65 SkASSERT(kHeight == special->height());
66 SkASSERT(bm.getGenerationID() == special->uniqueID());
67 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
[all …]
/external/skqp/src/gpu/
DGrResourceCache.cpp93 SkASSERT(contextUniqueID != SK_InvalidUniqueID); in GrResourceCache()
110 SkASSERT(resource); in insertResource() local
111 SkASSERT(!this->isInCache(resource)); in insertResource()
112 SkASSERT(!resource->wasDestroyed()); in insertResource()
113 SkASSERT(!resource->resourcePriv().isPurgeable()); in insertResource()
140 SkASSERT(!resource->resourcePriv().refsWrappedObjects()); in insertResource()
150 SkASSERT(this->isInCache(resource)); in removeResource()
189 SkASSERT(!back->wasDestroyed()); in abandonAll()
195 SkASSERT(!top->wasDestroyed()); in abandonAll()
199 SkASSERT(!fScratchMap.count()); in abandonAll()
[all …]
DGrBufferAllocPool.cpp57 SkASSERT(!fBufferPtr); in deleteBlocks()
96 SkASSERT(!fBlocks.empty()); in validate()
98 SkASSERT(fCpuData == fBufferPtr); in validate()
101 SkASSERT(fBlocks.empty() || !fBlocks.back().fBuffer->isMapped()); in validate()
105 SkASSERT(!fBlocks[i].fBuffer->isMapped()); in validate()
113 SkASSERT(bytes || unusedBlockAllowed); in validate()
118 SkASSERT(bytesInUse == fBytesInUse); in validate()
120 SkASSERT((fBytesInUse && !fBlocks.empty()) || in validate()
123 SkASSERT((0 == fBytesInUse) == fBlocks.empty()); in validate()
135 SkASSERT(buffer); in makeSpace()
[all …]
DGrMemoryPool.cpp23 SkASSERT(tmp); in release()
62 SkASSERT(0 == fAllocationCnt); in ~GrMemoryPool()
63 SkASSERT(fHead == fTail); in ~GrMemoryPool()
64 SkASSERT(0 == fHead->fLiveCount); in ~GrMemoryPool()
79 SkASSERT(nullptr == fTail->fNext); in allocate()
85 SkASSERT(kAssignedMarker == fTail->fBlockSentinal); in allocate()
86 SkASSERT(fTail->fFreeSize >= size); in allocate()
113 SkASSERT(kAssignedMarker == allocData->fSentinal); in release()
117 SkASSERT(kAssignedMarker == block->fBlockSentinal); in release()
127 SkASSERT(prev); in release()
[all …]
/external/skia/src/gpu/
DGrResourceCache.cpp103 SkASSERT(fNumUnrefs > 0); in unref()
119 SkASSERT(contextUniqueID != SK_InvalidUniqueID); in GrResourceCache()
133 SkASSERT(resource); in insertResource() local
134 SkASSERT(!this->isInCache(resource)); in insertResource()
135 SkASSERT(!resource->wasDestroyed()); in insertResource()
136 SkASSERT(!resource->resourcePriv().isPurgeable()); in insertResource()
163 SkASSERT(!resource->resourcePriv().refsWrappedObjects()); in insertResource()
173 SkASSERT(this->isInCache(resource)); in removeResource()
211 SkASSERT(!back->wasDestroyed()); in abandonAll()
217 SkASSERT(!top->wasDestroyed()); in abandonAll()
[all …]
DGrBufferAllocPool.cpp35 SkASSERT(size > 0); in makeBuffer()
40 SkASSERT(fBuffers[i].fBuffer->size() == kDefaultBufferSize); in makeBuffer()
82 SkASSERT(!block.fBuffer->isCpuBuffer()); \
105 SkASSERT(!fBufferPtr); in deleteBlocks()
144 SkASSERT(!fBlocks.empty()); in validate()
147 SkASSERT(fCpuStagingBuffer && fCpuStagingBuffer->data() == fBufferPtr); in validate()
151 SkASSERT(buffer->isCpuBuffer() || !static_cast<const GrGpuBuffer*>(buffer)->isMapped()); in validate()
156 SkASSERT(buffer->isCpuBuffer() || !static_cast<const GrGpuBuffer*>(buffer)->isMapped()); in validate()
165 SkASSERT(bytes || unusedBlockAllowed); in validate()
170 SkASSERT(bytesInUse == fBytesInUse); in validate()
[all …]
DGrMemoryPool.cpp62 SkASSERT(0 == fAllocationCnt); in ~GrMemoryPool()
63 SkASSERT(fHead == fTail); in ~GrMemoryPool()
64 SkASSERT(0 == fHead->fLiveCount); in ~GrMemoryPool()
65 SkASSERT(kAssignedMarker == fHead->fBlockSentinal); in ~GrMemoryPool()
79 SkASSERT(nullptr == fTail->fNext); in allocate()
85 SkASSERT(kAssignedMarker == fTail->fBlockSentinal); in allocate()
86 SkASSERT(fTail->fFreeSize >= size); in allocate()
113 SkASSERT(kAssignedMarker == allocData->fSentinal); in release()
117 SkASSERT(kAssignedMarker == block->fBlockSentinal); in release()
127 SkASSERT(prev); in release()
[all …]
DGrShaderCaps.cpp156 SkASSERT(fCanUseAnyFunctionInShader); in applyOptionsOverrides()
157 SkASSERT(fCanUseMinAndAbsTogether); in applyOptionsOverrides()
158 SkASSERT(fCanUseFractForNegativeValues); in applyOptionsOverrides()
159 SkASSERT(!fMustForceNegatedAtanParamToFloat); in applyOptionsOverrides()
160 SkASSERT(!fAtan2ImplementedAsAtanYOverX); in applyOptionsOverrides()
161 SkASSERT(!fMustDoOpBetweenFloorAndAbs); in applyOptionsOverrides()
162 SkASSERT(!fRequiresLocalOutputColorForFBFetch); in applyOptionsOverrides()
163 SkASSERT(!fMustObfuscateUniformColor); in applyOptionsOverrides()
164 SkASSERT(!fMustGuardDivisionEvenAfterExplicitZeroCheck); in applyOptionsOverrides()
165 SkASSERT(!fInBlendModesFailRandomlyForAllZeroVec); in applyOptionsOverrides()
[all …]
DGrOpsRenderPass.cpp24 SkASSERT(fRenderTarget); in clear()
27 SkASSERT(!this->gpu()->caps()->performColorClearsAsDraws()); in clear()
28 SkASSERT(!clip.scissorEnabled() || !this->gpu()->caps()->performPartialClearsAsDraws()); in clear()
35 SkASSERT(!this->gpu()->caps()->performStencilClearsAsDraws()); in clearStencilClip()
48 SkASSERT(this->gpu()->caps()->instanceAttribSupport()); in bindPipeline()
51 SkASSERT(this->gpu()->caps()->conservativeRasterSupport()); in bindPipeline()
55 SkASSERT(GrIsPrimTypeTris(programInfo.primitiveType())); in bindPipeline()
58 SkASSERT(this->gpu()->caps()->wireframeSupport()); in bindPipeline()
61 SkASSERT(this->gpu()->caps()->shaderCaps()->tessellationSupport()); in bindPipeline()
81 SkASSERT(this->gpu()->findOrAssignSamplePatternKey(fRenderTarget) in bindPipeline()
[all …]
/external/skia/src/gpu/vk/
DGrVkPipelineStateDataManager.cpp25 SkASSERT(GrShaderVar::kNonArray == uniformInfo.fVariable.getArrayCount() || in GrVkPipelineStateDataManager()
43 SkASSERT(uni.fType == kInt_GrSLType || uni.fType == kShort_GrSLType); in set1i()
44 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set1i()
53 SkASSERT(uni.fType == kInt_GrSLType || uni.fType == kShort_GrSLType); in set1iv()
54 SkASSERT(arrayCount > 0); in set1iv()
55 SkASSERT(arrayCount <= uni.fArrayCount || in set1iv()
59 SkASSERT(sizeof(int32_t) == 4); in set1iv()
69 SkASSERT(uni.fType == kFloat_GrSLType || uni.fType == kHalf_GrSLType); in set1f()
70 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set1f()
72 SkASSERT(sizeof(float) == 4); in set1f()
[all …]
DGrVkCommandBuffer.cpp45 SkASSERT(!fIsActive); in freeGPUData()
46 SkASSERT(!fTrackedResources.count()); in freeGPUData()
47 SkASSERT(!fTrackedRecycledResources.count()); in freeGPUData()
48 SkASSERT(cmdPool != VK_NULL_HANDLE); in freeGPUData()
49 SkASSERT(!this->isWrapped()); in freeGPUData()
59 SkASSERT(!fIsActive); in releaseResources()
96 SkASSERT(!this->isWrapped()); in pipelineBarrier()
97 SkASSERT(fIsActive); in pipelineBarrier()
102 SkASSERT(!fActiveRenderPass); in pipelineBarrier()
108 SkASSERT(barrierType == kImageMemory_BarrierType); in pipelineBarrier()
[all …]
/external/skqp/src/gpu/vk/
DGrVkPipelineStateDataManager.cpp29 SkASSERT(GrShaderVar::kNonArray == uniformInfo.fVariable.getArrayCount() || in GrVkPipelineStateDataManager()
39 SkASSERT(kFragment_GrShaderFlag == uniformInfo.fVisibility); in GrVkPipelineStateDataManager()
52 SkASSERT(GrVkUniformHandler::kFragBinding == uni.fBinding); in getBufferPtrAndMarkDirty()
62 SkASSERT(uni.fType == kInt_GrSLType || uni.fType == kShort_GrSLType); in set1i()
63 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set1i()
72 SkASSERT(uni.fType == kInt_GrSLType || uni.fType == kShort_GrSLType); in set1iv()
73 SkASSERT(arrayCount > 0); in set1iv()
74 SkASSERT(arrayCount <= uni.fArrayCount || in set1iv()
78 SkASSERT(sizeof(int32_t) == 4); in set1iv()
88 SkASSERT(uni.fType == kFloat_GrSLType || uni.fType == kHalf_GrSLType); in set1f()
[all …]
DGrVkCommandBuffer.cpp45 SkASSERT(!fIsActive); in freeGPUData()
92 SkASSERT(!fIsActive); in releaseResources()
136 SkASSERT(!this->isWrapped()); in pipelineBarrier()
137 SkASSERT(fIsActive); in pipelineBarrier()
142 SkASSERT(!fActiveRenderPass); in pipelineBarrier()
184 SkASSERT(VK_NULL_HANDLE != vkBuffer); in bindInputBuffer()
185 SkASSERT(binding < kMaxInputBuffers); in bindInputBuffer()
202 SkASSERT(VK_NULL_HANDLE != vkBuffer); in bindIndexBuffer()
220 SkASSERT(fIsActive); in clearAttachments()
221 SkASSERT(fActiveRenderPass); in clearAttachments()
[all …]
/external/skia/src/gpu/mtl/
DGrMtlPipelineStateDataManager.mm29 SkASSERT(GrShaderVar::kNonArray == uniformInfo.fVariable.getArrayCount() ||
46 SkASSERT(uni.fType == kInt_GrSLType || uni.fType == kShort_GrSLType);
47 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount);
56 SkASSERT(uni.fType == kInt_GrSLType || uni.fType == kShort_GrSLType);
57 SkASSERT(arrayCount > 0);
58 SkASSERT(arrayCount <= uni.fArrayCount ||
62 SkASSERT(sizeof(int32_t) == 4);
72 SkASSERT(uni.fType == kFloat_GrSLType || uni.fType == kHalf_GrSLType);
73 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount);
75 SkASSERT(sizeof(float) == 4);
[all …]
/external/skia/src/core/
DSkBitmapProcState.cpp30 SkASSERT(s.fInvMatrix.isScaleTranslate()); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
31 SkASSERT(s.fAlphaScale == 256); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
65 SkASSERT(index <= maxX); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
79 SkASSERT(count > 0 && colors != nullptr); in S32_alpha_D32_nofilter_DX()
80 SkASSERT(s.fInvMatrix.isScaleTranslate()); in S32_alpha_D32_nofilter_DX()
81 SkASSERT(kNone_SkFilterQuality == s.fFilterQuality); in S32_alpha_D32_nofilter_DX()
82 SkASSERT(4 == s.fPixmap.info().bytesPerPixel()); in S32_alpha_D32_nofilter_DX()
83 SkASSERT(s.fAlphaScale <= 256); in S32_alpha_D32_nofilter_DX()
87 SkASSERT(y < (unsigned)s.fPixmap.height()); in S32_alpha_D32_nofilter_DX()
123 SkASSERT(count > 0 && colors != nullptr); in S32_alpha_D32_nofilter_DXDY()
[all …]
/external/skqp/src/gpu/ops/
DGrOp.cpp16 SkASSERT(0); in operator new()
22 SkASSERT(0); in operator delete()
28 SkASSERT(classID == SkToU32(fClassID)); in GrOp()
29 SkASSERT(classID); in GrOp()
34 SkASSERT(this != that); in combineIfPossible()
46 SkASSERT(next); in chainConcat()
47 SkASSERT(this->classID() == next->classID()); in chainConcat()
48 SkASSERT(this->isChainTail()); in chainConcat()
49 SkASSERT(next->isChainHead()); in chainConcat()
64 SkASSERT(this->isChainHead()); in validateChain()
[all …]
/external/skia/src/gpu/ops/
DGrOp.cpp16 SkASSERT(0); in operator new()
22 SkASSERT(0); in operator delete()
28 SkASSERT(classID == SkToU32(fClassID)); in GrOp()
29 SkASSERT(classID); in GrOp()
35 SkASSERT(this != that); in combineIfPossible()
47 SkASSERT(next); in chainConcat()
48 SkASSERT(this->classID() == next->classID()); in chainConcat()
49 SkASSERT(this->isChainTail()); in chainConcat()
50 SkASSERT(next->isChainHead()); in chainConcat()
65 SkASSERT(this->isChainHead()); in validateChain()
[all …]
DGrQuadPerEdgeAA.cpp31 SkASSERT(!spec.hasLocalCoords() || localQuad); in write_quad_generic()
77 SkASSERT(spec.deviceQuadType() != GrQuad::Type::kPerspective); in write_2d_color()
78 SkASSERT(!spec.hasLocalCoords()); in write_2d_color()
79 SkASSERT(spec.coverageMode() == GrQuadPerEdgeAA::CoverageMode::kNone || in write_2d_color()
81 SkASSERT(spec.hasVertexColors()); in write_2d_color()
82 SkASSERT(!spec.requiresGeometryDomain()); in write_2d_color()
83 SkASSERT(!spec.hasDomain()); in write_2d_color()
91 SkASSERT(spec.coverageMode() == GrQuadPerEdgeAA::CoverageMode::kWithColor || in write_2d_color()
104 SkASSERT(spec.deviceQuadType() != GrQuad::Type::kPerspective); in write_2d_uv()
105 SkASSERT(spec.hasLocalCoords() && spec.localQuadType() != GrQuad::Type::kPerspective); in write_2d_uv()
[all …]
/external/skqp/src/gpu/ccpr/
DGrCCFiller.cpp38 SkASSERT(!fInstanceBuffer); // Can't call after prepareToDraw(). in parseDeviceSpaceFill()
39 SkASSERT(!path.isEmpty()); in parseDeviceSpaceFill()
89 SkASSERT(ptsIdx == path.countPoints()); in parseDeviceSpaceFill()
90 SkASSERT(conicWeightsIdx == SkPathPriv::ConicWeightCnt(path)); in parseDeviceSpaceFill()
120 SkASSERT(-1 == fFanTessellationCount); in tessellateFan()
121 SkASSERT(!fFanTessellation); in tessellateFan()
134 SkASSERT(Verb::kBeginPath == verbs[verbsIdx]); in tessellateFan()
172 SkASSERT(0 == fFanTessellationCount); in tessellateFan()
173 SkASSERT(nullptr == vertices); in tessellateFan()
177 SkASSERT(0 == fFanTessellationCount % 3); in tessellateFan()
[all …]
/external/skqp/src/gpu/mtl/
DGrMtlPipelineStateDataManager.mm29 SkASSERT(GrShaderVar::kNonArray == uniformInfo.fVariable.getArrayCount() ||
39 SkASSERT(kFragment_GrShaderFlag == uniformInfo.fVisibility);
52 SkASSERT(GrMtlUniformHandler::kFragBinding == uni.fBinding);
62 SkASSERT(uni.fType == kInt_GrSLType || uni.fType == kShort_GrSLType);
63 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount);
72 SkASSERT(uni.fType == kInt_GrSLType || uni.fType == kShort_GrSLType);
73 SkASSERT(arrayCount > 0);
74 SkASSERT(arrayCount <= uni.fArrayCount ||
78 SkASSERT(sizeof(int32_t) == 4);
88 SkASSERT(uni.fType == kFloat_GrSLType || uni.fType == kHalf_GrSLType);
[all …]
/external/skqp/src/gpu/gl/
DGrGLProgramDataManager.cpp14 SkASSERT((COUNT) <= (UNI).fArrayCount || \
27 SkASSERT(GrShaderVar::kNonArray == builderUniform.fVariable.getArrayCount() || in GrGLProgramDataManager()
40 SkASSERT(fGpu->glCaps().shaderCaps()->pathRenderingSupport()); in GrGLProgramDataManager()
43 SkASSERT(GrShaderVar::kNonArray == builderPathProcVarying.fVariable.getArrayCount() || in GrGLProgramDataManager()
57 SkASSERT(sampler.fVisibility); in setSamplerUniforms()
66 SkASSERT(uni.fType == kInt_GrSLType || uni.fType == kShort_GrSLType); in set1i()
67 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set1i()
77 SkASSERT(uni.fType == kInt_GrSLType || uni.fType == kShort_GrSLType); in set1iv()
78 SkASSERT(arrayCount > 0); in set1iv()
87 SkASSERT(uni.fType == kFloat_GrSLType || uni.fType == kHalf_GrSLType); in set1f()
[all …]
/external/skia/src/gpu/gl/
DGrGLProgramDataManager.cpp14 SkASSERT((COUNT) <= (UNI).fArrayCount || \
27 SkASSERT(GrShaderVar::kNonArray == builderUniform.fVariable.getArrayCount() || in GrGLProgramDataManager()
40 SkASSERT(fGpu->glCaps().shaderCaps()->pathRenderingSupport()); in GrGLProgramDataManager()
43 SkASSERT(GrShaderVar::kNonArray == builderPathProcVarying.fVariable.getArrayCount() || in GrGLProgramDataManager()
57 SkASSERT(sampler.fVisibility); in setSamplerUniforms()
66 SkASSERT(uni.fType == kInt_GrSLType || uni.fType == kShort_GrSLType); in set1i()
67 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set1i()
77 SkASSERT(uni.fType == kInt_GrSLType || uni.fType == kShort_GrSLType); in set1iv()
78 SkASSERT(arrayCount > 0); in set1iv()
87 SkASSERT(uni.fType == kFloat_GrSLType || uni.fType == kHalf_GrSLType); in set1f()
[all …]
/external/skia/src/gpu/ccpr/
DGrCCFiller.cpp39 SkASSERT(!fInstanceBuffer); // Can't call after prepareToDraw(). in parseDeviceSpaceFill()
40 SkASSERT(!path.isEmpty()); in parseDeviceSpaceFill()
90 SkASSERT(ptsIdx == path.countPoints()); in parseDeviceSpaceFill()
91 SkASSERT(conicWeightsIdx == SkPathPriv::ConicWeightCnt(path)); in parseDeviceSpaceFill()
122 SkASSERT(-1 == fFanTessellationCount); in tessellateFan()
123 SkASSERT(!fFanTessellation); in tessellateFan()
144 SkASSERT(Verb::kBeginPath == verbs[verbsIdx]); in tessellateFan()
178 SkASSERT(!fan.isInverseFillType()); in tessellateFan()
183 SkASSERT(0 == fFanTessellationCount); in tessellateFan()
184 SkASSERT(nullptr == vertices); in tessellateFan()
[all …]
/external/skqp/include/private/
DSkEncodedInfo.h103 SkASSERT(1 == bitsPerComponent || in Make()
111 SkASSERT(kOpaque_Alpha == alpha); in Make()
114 SkASSERT(kOpaque_Alpha != alpha); in Make()
117 SkASSERT(16 != bitsPerComponent); in Make()
122 SkASSERT(kOpaque_Alpha == alpha); in Make()
123 SkASSERT(bitsPerComponent >= 8); in Make()
128 SkASSERT(kOpaque_Alpha == alpha); in Make()
129 SkASSERT(8 == bitsPerComponent); in Make()
132 SkASSERT(kOpaque_Alpha != alpha); in Make()
133 SkASSERT(bitsPerComponent >= 8); in Make()
[all …]

12345678910>>...104