Home
last modified time | relevance | path

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

12345678910>>...108

/third_party/flutter/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 …]
/third_party/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 …]
/third_party/skia/src/gpu/
DGrOpsRenderPass.cpp40 SkASSERT(fRenderTarget); in clear()
43 SkASSERT(!this->gpu()->caps()->performColorClearsAsDraws()); in clear()
44 SkASSERT(!scissor.enabled() || !this->gpu()->caps()->performPartialClearsAsDraws()); in clear()
51 SkASSERT(!this->gpu()->caps()->performStencilClearsAsDraws()); in clearStencilClip()
52 SkASSERT(!scissor.enabled() || !this->gpu()->caps()->performPartialClearsAsDraws()); in clearStencilClip()
66 SkASSERT(programInfo.origin() == fOrigin); in bindPipeline()
68 SkASSERT(this->gpu()->caps()->drawInstancedSupport()); in bindPipeline()
71 SkASSERT(this->gpu()->caps()->conservativeRasterSupport()); in bindPipeline()
74 SkASSERT(this->gpu()->caps()->wireframeSupport()); in bindPipeline()
80 SkASSERT(stencil->fCCWFace.fRef == stencil->fCWFace.fRef); in bindPipeline()
[all …]
DGrResourceCache.cpp103 SkASSERT(fNumUnrefs > 0); in unref()
120 SkASSERT(owningContextID.isValid()); in GrResourceCache()
121 SkASSERT(familyID != SK_InvalidUniqueID); in GrResourceCache()
135 SkASSERT(resource); in insertResource() local
136 SkASSERT(!this->isInCache(resource)); in insertResource()
137 SkASSERT(!resource->wasDestroyed()); in insertResource()
138 SkASSERT(!resource->resourcePriv().isPurgeable()); in insertResource()
166 SkASSERT(!resource->cacheAccess().isUsableAsScratch()); in insertResource()
173 SkASSERT(this->isInCache(resource)); in removeResource()
210 SkASSERT(!back->wasDestroyed()); in abandonAll()
[all …]
DGrBufferAllocPool.cpp37 SkASSERT(size > 0); in makeBuffer()
42 SkASSERT(fBuffers[i].fBuffer->size() == kDefaultBufferSize); in makeBuffer()
84 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 …]
DGrShaderCaps.cpp164 SkASSERT(fCanUseAnyFunctionInShader); in applyOptionsOverrides()
165 SkASSERT(fCanUseMinAndAbsTogether); in applyOptionsOverrides()
166 SkASSERT(fCanUseFractForNegativeValues); in applyOptionsOverrides()
167 SkASSERT(!fMustForceNegatedAtanParamToFloat); in applyOptionsOverrides()
168 SkASSERT(!fMustForceNegatedLdexpParamToMultiply); in applyOptionsOverrides()
169 SkASSERT(!fAtan2ImplementedAsAtanYOverX); in applyOptionsOverrides()
170 SkASSERT(!fMustDoOpBetweenFloorAndAbs); in applyOptionsOverrides()
171 SkASSERT(!fRequiresLocalOutputColorForFBFetch); in applyOptionsOverrides()
172 SkASSERT(!fMustObfuscateUniformColor); in applyOptionsOverrides()
173 SkASSERT(!fMustGuardDivisionEvenAfterExplicitZeroCheck); in applyOptionsOverrides()
[all …]
DGrRenderTask.cpp30 SkASSERT(!fDrawingMgr || drawingMgr == fDrawingMgr); in disown()
31 SkASSERT(this->isClosed()); in disown()
46 SkASSERT(this->isClosed()); in makeSkippable()
55 SkASSERT(this->isSetFlag(kDisowned_Flag)); in ~GrRenderTask()
78 SkASSERT(this->target(0)->asRenderTargetProxy()); in makeClosed()
106 SkASSERT(!dependedOn->dependsOn(this)); // loops are bad in addDependency()
107 SkASSERT(!this->dependsOn(dependedOn)); // caller should weed out duplicates in addDependency()
116 SkASSERT(otherTask); in addDependenciesFromOtherTask()
119 SkASSERT(task != this); in addDependenciesFromOtherTask()
132 SkASSERT(!this->isClosed()); in addDependency()
[all …]
/third_party/skia/src/gpu/vk/
DGrVkCommandBuffer.cpp44 SkASSERT(!fIsActive); in freeGPUData()
45 SkASSERT(!fTrackedResources.count()); in freeGPUData()
46 SkASSERT(!fTrackedRecycledResources.count()); in freeGPUData()
47 SkASSERT(!fTrackedGpuBuffers.count()); in freeGPUData()
48 SkASSERT(!fTrackedGpuSurfaces.count()); in freeGPUData()
49 SkASSERT(cmdPool != VK_NULL_HANDLE); in freeGPUData()
50 SkASSERT(!this->isWrapped()); in freeGPUData()
60 SkASSERT(!fIsActive || this->isWrapped()); in releaseResources()
83 SkASSERT(!this->isWrapped()); in pipelineBarrier()
84 SkASSERT(fIsActive); in pipelineBarrier()
[all …]
DGrVkPipelineStateDataManager.cpp29 SkASSERT(GrShaderVar::kNonArray == uniformInfo.fVariable.getArrayCount() || in GrVkPipelineStateDataManager()
71 SkASSERT(uni.fType == kInt_GrSLType || uni.fType == kShort_GrSLType); in set1iv()
72 SkASSERT(arrayCount > 0); in set1iv()
73 SkASSERT(arrayCount <= uni.fArrayCount || in set1iv()
77 SkASSERT(sizeof(int32_t) == 4); in set1iv()
89 SkASSERT(uni.fType == kFloat_GrSLType || uni.fType == kHalf_GrSLType); in set1fv()
90 SkASSERT(arrayCount > 0); in set1fv()
91 SkASSERT(arrayCount <= uni.fArrayCount || in set1fv()
95 SkASSERT(sizeof(float) == 4); in set1fv()
107 SkASSERT(uni.fType == kInt2_GrSLType || uni.fType == kShort2_GrSLType); in set2iv()
[all …]
DGrVkOpsRenderPass.cpp95 SkASSERT(resolveAttachment); in setAttachmentLayouts()
115 SkASSERT(vkStencil); in setAttachmentLayouts()
238 SkASSERT(rpHandle.isValid()); in init()
249 SkASSERT(fGpu->cmdPool()); in init()
268 SkASSERT(fFramebuffer->isExternal()); in initWrapped()
270 SkASSERT(fCurrentRenderPass); in initWrapped()
292 SkASSERT(fGpu->currentCommandBuffer()); in currentCommandBuffer()
307 SkASSERT(fFramebuffer->resolveAttachment()); in loadResolveIntoMSAA()
316 SkASSERT(fGpu->isDeviceLost()); in submit()
346 SkASSERT(!fRenderTarget); in set()
[all …]
/third_party/flutter/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()
83 SkASSERT(!fIsActive); in releaseResources()
120 SkASSERT(!this->isWrapped()); in pipelineBarrier()
121 SkASSERT(fIsActive); in pipelineBarrier()
126 SkASSERT(!fActiveRenderPass); in pipelineBarrier()
132 SkASSERT(barrierType == kImageMemory_BarrierType); in pipelineBarrier()
145 SkASSERT(newRange.aspectMask == oldRange.aspectMask); in pipelineBarrier()
146 SkASSERT(newRange.baseArrayLayer == oldRange.baseArrayLayer); in pipelineBarrier()
147 SkASSERT(newRange.layerCount == oldRange.layerCount); in pipelineBarrier()
172 SkASSERT(fIsActive); in submitPipelineBarriers()
[all …]
/third_party/flutter/skia/src/gpu/
DGrResourceCache.cpp103 SkASSERT(fNumUnrefs > 0); in unref()
119 SkASSERT(contextUniqueID != SK_InvalidUniqueID); in GrResourceCache()
134 SkASSERT(resource); in insertResource() local
135 SkASSERT(!this->isInCache(resource)); in insertResource()
136 SkASSERT(!resource->wasDestroyed()); in insertResource()
137 SkASSERT(!resource->resourcePriv().isPurgeable()); in insertResource()
164 SkASSERT(!resource->resourcePriv().refsWrappedObjects()); in insertResource()
174 SkASSERT(this->isInCache(resource)); in removeResource()
212 SkASSERT(!back->wasDestroyed()); in abandonAll()
218 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.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 …]
DGrGpuCommandBuffer.cpp22 SkASSERT(fRenderTarget); in clear()
25 SkASSERT(!this->gpu()->caps()->performColorClearsAsDraws()); in clear()
26 SkASSERT(!clip.scissorEnabled() || !this->gpu()->caps()->performPartialClearsAsDraws()); in clear()
32 SkASSERT(!this->gpu()->caps()->performStencilClearsAsDraws()); in clearStencilClip()
41 SkASSERT(!primProc.hasInstanceAttributes() || this->gpu()->caps()->instanceAttribSupport()); in draw()
43 SkASSERT(!GrPrimTypeRequiresGeometryShaderSupport(meshes[i].primitiveType()) || in draw()
45 SkASSERT(primProc.hasVertexAttributes() == meshes[i].hasVertexData()); in draw()
46 SkASSERT(primProc.hasInstanceAttributes() == meshes[i].hasInstanceData()); in draw()
49 SkASSERT(!pipeline.isScissorEnabled() || fixedDynamicState || in draw()
52 SkASSERT(!pipeline.isBad()); in draw()
[all …]
DGrShaderCaps.cpp150 SkASSERT(fCanUseAnyFunctionInShader); in applyOptionsOverrides()
151 SkASSERT(fCanUseMinAndAbsTogether); in applyOptionsOverrides()
152 SkASSERT(fCanUseFractForNegativeValues); in applyOptionsOverrides()
153 SkASSERT(!fMustForceNegatedAtanParamToFloat); in applyOptionsOverrides()
154 SkASSERT(!fAtan2ImplementedAsAtanYOverX); in applyOptionsOverrides()
155 SkASSERT(!fMustDoOpBetweenFloorAndAbs); in applyOptionsOverrides()
156 SkASSERT(!fRequiresLocalOutputColorForFBFetch); in applyOptionsOverrides()
157 SkASSERT(!fMustObfuscateUniformColor); in applyOptionsOverrides()
158 SkASSERT(!fMustGuardDivisionEvenAfterExplicitZeroCheck); in applyOptionsOverrides()
159 SkASSERT(fCanUseFragCoord); in applyOptionsOverrides()
[all …]
/third_party/skia/src/core/
DSkBlockAllocator.cpp27 SkASSERT(fBlockIncrement >= 1); in SkBlockAllocator()
28 SkASSERT(additionalPreallocBytes <= kMaxAllocationSize); in SkBlockAllocator()
38 SkASSERT(allocationSize >= (int) sizeof(Block)); in Block()
47 SkASSERT(fSentinel == kAssignedMarker); in ~Block()
57 SkASSERT(size >= this->preallocSize()); in totalSize()
69 SkASSERT(size >= this->preallocUsableSpace()); in totalUsableSpace()
78 SkASSERT(size <= this->totalUsableSpace()); in totalSpaceInUse()
89 SkASSERT(b->fSentinel == kAssignedMarker); in findOwningBlock()
105 SkASSERT(block->fPrev); in releaseBlock()
108 SkASSERT(fTail != block); in releaseBlock()
[all …]
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(!s.fBilerp); 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 …]
/third_party/flutter/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 …]
/third_party/skia/src/gpu/gl/
DGrGLProgramDataManager.cpp14 SkASSERT((COUNT) <= (UNI).fArrayCount || \
23 SkASSERT(GrShaderVar::kNonArray == builderUniform.fVariable.getArrayCount() || in GrGLProgramDataManager()
37 SkASSERT(sampler.fVisibility); in setSamplerUniforms()
47 SkASSERT(uni.fType == kInt_GrSLType || uni.fType == kShort_GrSLType); in set1i()
48 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set1i()
58 SkASSERT(uni.fType == kInt_GrSLType || uni.fType == kShort_GrSLType); in set1iv()
59 SkASSERT(arrayCount > 0); in set1iv()
68 SkASSERT(uni.fType == kFloat_GrSLType || uni.fType == kHalf_GrSLType); in set1f()
69 SkASSERT(GrShaderVar::kNonArray == uni.fArrayCount); in set1f()
79 SkASSERT(uni.fType == kFloat_GrSLType || uni.fType == kHalf_GrSLType); in set1fv()
[all …]
/third_party/flutter/skia/src/gpu/ccpr/
DGrCCFiller.cpp40 SkASSERT(!fInstanceBuffer); // Can't call after prepareToDraw(). in parseDeviceSpaceFill()
41 SkASSERT(!path.isEmpty()); in parseDeviceSpaceFill()
91 SkASSERT(ptsIdx == path.countPoints()); in parseDeviceSpaceFill()
92 SkASSERT(conicWeightsIdx == SkPathPriv::ConicWeightCnt(path)); in parseDeviceSpaceFill()
124 SkASSERT(-1 == fFanTessellationCount); in tessellateFan()
125 SkASSERT(!fFanTessellation); in tessellateFan()
145 SkASSERT(Verb::kBeginPath == verbs[verbsIdx]); in tessellateFan()
183 SkASSERT(0 == fFanTessellationCount); in tessellateFan()
184 SkASSERT(nullptr == vertices); in tessellateFan()
188 SkASSERT(0 == fFanTessellationCount % 3); in tessellateFan()
[all …]
/third_party/flutter/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()
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 …]
/third_party/flutter/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 …]
/third_party/skia/src/gpu/ops/
DQuadPerEdgeAA.cpp47 SkASSERT(!spec.hasLocalCoords() || localQuad); in write_quad_generic()
98 SkASSERT(spec.deviceQuadType() != GrQuad::Type::kPerspective); in write_2d_color()
99 SkASSERT(!spec.hasLocalCoords()); in write_2d_color()
100 SkASSERT(spec.coverageMode() == CoverageMode::kNone || in write_2d_color()
102 SkASSERT(spec.hasVertexColors()); in write_2d_color()
103 SkASSERT(!spec.requiresGeometrySubset()); in write_2d_color()
104 SkASSERT(!spec.hasSubset()); in write_2d_color()
112 SkASSERT(spec.coverageMode() == CoverageMode::kWithColor || coverage[i] == 1.f); in write_2d_color()
130 SkASSERT(spec.deviceQuadType() != GrQuad::Type::kPerspective); in write_2d_uv()
131 SkASSERT(spec.hasLocalCoords() && spec.localQuadType() != GrQuad::Type::kPerspective); in write_2d_uv()
[all …]

12345678910>>...108