Home
last modified time | relevance | path

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

12345678910>>...42

/external/skia/src/gpu/vk/
DGrVkProgramDataManager.cpp27 SkASSERT(GrGLSLShaderVar::kNonArray == uniformInfo.fVariable.getArrayCount() || in GrVkProgramDataManager()
43 SkASSERT(uni.fType == kFloat_GrSLType); in set1f()
44 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in set1f()
45 SkASSERT(GrVkUniformHandler::kUniformBufferDescSet == uni.fSetNumber); in set1f()
50 SkASSERT(GrVkUniformHandler::kFragBinding == uni.fBinding); in set1f()
54 SkASSERT(sizeof(float) == 4); in set1f()
62 SkASSERT(uni.fType == kFloat_GrSLType); in set1fv()
63 SkASSERT(arrayCount > 0); in set1fv()
64 SkASSERT(arrayCount <= uni.fArrayCount || in set1fv()
66 SkASSERT(GrVkUniformHandler::kUniformBufferDescSet == uni.fSetNumber); in set1fv()
[all …]
DGrVkCommandBuffer.cpp39 SkASSERT(!fActiveRenderPass); in ~GrVkCommandBuffer()
50 SkASSERT(!fIsActive); in freeGPUData()
51 SkASSERT(!fActiveRenderPass); in freeGPUData()
72 SkASSERT(!fIsActive); in begin()
86 SkASSERT(fIsActive); in end()
87 SkASSERT(!fActiveRenderPass); in end()
98 SkASSERT(fIsActive); in beginRenderPass()
99 SkASSERT(!fActiveRenderPass); in beginRenderPass()
111 SkASSERT(fIsActive); in endRenderPass()
112 SkASSERT(fActiveRenderPass); in endRenderPass()
[all …]
/external/skia/src/gpu/
DGrResourceCache.cpp121 SkASSERT(resource); in insertResource()
122 SkASSERT(!this->isInCache(resource)); in insertResource()
123 SkASSERT(!resource->wasDestroyed()); in insertResource()
124 SkASSERT(!resource->isPurgeable()); in insertResource()
150 SkASSERT(!resource->cacheAccess().isExternal()); in insertResource()
159 SkASSERT(this->isInCache(resource)); in removeResource()
191 SkASSERT(!back->wasDestroyed()); in abandonAll()
197 SkASSERT(!top->wasDestroyed()); in abandonAll()
201 SkASSERT(!fScratchMap.count()); in abandonAll()
202 SkASSERT(!fUniqueHash.count()); in abandonAll()
[all …]
DGrMemoryPool.cpp35 SkASSERT(0 == fAllocationCnt); in ~GrMemoryPool()
36 SkASSERT(fHead == fTail); in ~GrMemoryPool()
37 SkASSERT(0 == fHead->fLiveCount); in ~GrMemoryPool()
52 SkASSERT(nullptr == fTail->fNext); in allocate()
58 SkASSERT(kAssignedMarker == fTail->fBlockSentinal); in allocate()
59 SkASSERT(fTail->fFreeSize >= size); in allocate()
81 SkASSERT(kAssignedMarker == allocData->fSentinal); in release()
84 SkASSERT(kAssignedMarker == block->fBlockSentinal); in release()
94 SkASSERT(prev); in release()
99 SkASSERT(fTail == block); in release()
[all …]
DGrPathRenderer.h67 SkASSERT(!path.isInverseFillType()); in getStencilSupport()
92 SkASSERT(fShaderCaps); in validate()
93 SkASSERT(fViewMatrix); in validate()
94 SkASSERT(fPath); in validate()
95 SkASSERT(fStroke); in validate()
96 SkASSERT(!fPath->isEmpty()); in validate()
135 SkASSERT(fTarget); in validate()
136 SkASSERT(fResourceProvider); in validate()
137 SkASSERT(fPipelineBuilder); in validate()
138 SkASSERT(fViewMatrix); in validate()
[all …]
DGrBufferAllocPool.cpp69 SkASSERT(!fBufferPtr); in deleteBlocks()
110 SkASSERT(!fBlocks.empty()); in validate()
113 SkASSERT(buf->mapPtr() == fBufferPtr); in validate()
115 SkASSERT(fCpuData == fBufferPtr); in validate()
118 SkASSERT(fBlocks.empty() || !fBlocks.back().fBuffer->isMapped()); in validate()
122 SkASSERT(!fBlocks[i].fBuffer->isMapped()); in validate()
130 SkASSERT(bytes || unusedBlockAllowed); in validate()
135 SkASSERT(bytesInUse == fBytesInUse); in validate()
137 SkASSERT((fBytesInUse && !fBlocks.empty()) || in validate()
140 SkASSERT((0 == fBytesInUse) == fBlocks.empty()); in validate()
[all …]
DGrLayerCache.cpp17 SkASSERT(SK_InvalidGenID != fKey.pictureID()); in validate()
21 SkASSERT(!fRect.isEmpty()); in validate()
24 SkASSERT(0.0f == fRect.fLeft && 0.0f == fRect.fTop); in validate()
27 SkASSERT(fRect.isEmpty()); in validate()
28 SkASSERT(nullptr == fPlot); in validate()
29 SkASSERT(!fLocked); // layers without a texture cannot be locked in validate()
30 SkASSERT(!fAtlased); // can't be atlased if it doesn't have a texture in validate()
34 SkASSERT(fAtlased); in validate()
37 SkASSERT(fTexture && backingTexture == fTexture); in validate()
38 SkASSERT(!fRect.isEmpty()); in validate()
[all …]
DGrGpuResourceRef.cpp25 SkASSERT(fResource); in ~GrGpuResourceRef()
45 SkASSERT(!fPendingIO); in reset()
46 SkASSERT(SkToBool(fResource) == fOwnRef); in reset()
55 SkASSERT(!fPendingIO); in setResource()
56 SkASSERT(SkToBool(fResource) == fOwnRef); in setResource()
71 SkASSERT(!fPendingIO); in markPendingIO()
72 SkASSERT(fResource); in markPendingIO()
91 SkASSERT(fOwnRef); in pendingIOComplete()
92 SkASSERT(fPendingIO); in pendingIOComplete()
112 SkASSERT(fOwnRef); in removeRef()
[all …]
DGrVertices.h51 SkASSERT(vertexBuffer); in init()
52 SkASSERT(vertexCount); in init()
53 SkASSERT(startVertex >= 0); in init()
74 SkASSERT(indexBuffer); in initIndexed()
75 SkASSERT(vertexBuffer); in initIndexed()
76 SkASSERT(indexCount); in initIndexed()
77 SkASSERT(vertexCount); in initIndexed()
78 SkASSERT(startIndex >= 0); in initIndexed()
79 SkASSERT(startVertex >= 0); in initIndexed()
105 SkASSERT(vertexBuffer); in initInstanced()
[all …]
/external/skia/src/core/
DSkUtils.cpp25 SkASSERT(c <= 0xF7); // otherwise leading byte is too big (more than 4 bytes) in assert_utf8_leadingbyte()
26 SkASSERT((c & 0xC0) != 0x80); // can't begin with a middle char in assert_utf8_leadingbyte()
38 SkASSERT(utf8); in SkUTF8_CountUnichars()
54 SkASSERT(utf8 || 0 == byteLength); in SkUTF8_CountUnichars()
67 SkASSERT(utf8); in SkUTF8_ToUnichar()
88 SkASSERT(ptr && *ptr); in SkUTF8_NextUnichar()
110 SkASSERT(ptr && *ptr); in SkUTF8_PrevUnichar()
158 SkASSERT(utf8 == nullptr || orig == SkUTF8_ToUnichar(utf8)); in SkUTF8_FromUnichar()
165 SkASSERT(src); in SkUTF16_CountUnichars()
170 SkASSERT(!SkUTF16_IsLowSurrogate(c)); in SkUTF16_CountUnichars()
[all …]
DSkRegionPriv.h17 SkASSERT(((value) == SkRegion::kRunTypeSentinel) == isSentinel)
28 SkASSERT(curr[0] < curr[1]); in compute_intervalcount()
29 SkASSERT(curr[1] < SkRegion::kRunTypeSentinel); in compute_intervalcount()
66 SkASSERT(count >= SkRegion::kRectRegionRuns); in Alloc()
81 SkASSERT(yspancount > 0); in Alloc()
82 SkASSERT(intervalCount > 1); in Alloc()
91 SkASSERT(fRefCnt == 1); in writable_runs()
125 SkASSERT(runs[0] < SkRegion::kRunTypeSentinel); in SkipEntireScanline()
128 SkASSERT(runs[2 + intervals * 2] == SkRegion::kRunTypeSentinel); in SkipEntireScanline()
132 SkASSERT(n == intervals); in SkipEntireScanline()
[all …]
DSkSpanProcs.cpp20 SkASSERT(count > 0); in load_l32()
22 SkASSERT(src.addr32(x + count - 1, y)); in load_l32()
30 SkASSERT(count > 0); in load_s32()
32 SkASSERT(src.addr32(x + count - 1, y)); in load_s32()
40 SkASSERT(count > 0); in load_f16()
42 SkASSERT(src.addr64(x + count - 1, y)); in load_f16()
63 SkASSERT(!paint.getColorFilter()); in noop_filterspan()
64 SkASSERT(0xFF == paint.getAlpha()); in noop_filterspan()
68 SkASSERT(!paint.getColorFilter()); in alpha_filterspan()
69 SkASSERT(0xFF != paint.getAlpha()); in alpha_filterspan()
[all …]
DSkAAClip.cpp97 SkASSERT(!bounds.isEmpty()); in AllocRect()
160 SkASSERT(curr <= fStopYOff); in next()
181 SkASSERT(n > 0); in compute_row_length()
182 SkASSERT(n <= width); in compute_row_length()
186 SkASSERT(0 == width); in compute_row_length()
192 SkASSERT(fBounds.isEmpty()); in validate()
197 SkASSERT(head->fRefCnt > 0); in validate()
198 SkASSERT(head->fRowCount > 0); in validate()
208 SkASSERT(prevY < yoff->fY); in validate()
209 SkASSERT(yoff->fY <= lastY); in validate()
[all …]
DSkTInternalLList.h49 SkASSERT(fHead && fTail); in remove()
50 SkASSERT(this->isInList(entry)); in remove()
75 SkASSERT(NULL == entry->fPrev && NULL == entry->fNext); in addToHead()
76 SkASSERT(NULL == entry->fList); in addToHead()
94 SkASSERT(NULL == entry->fPrev && NULL == entry->fNext); in addToTail()
95 SkASSERT(NULL == entry->fList); in addToTail()
118 SkASSERT(newEntry); in addBefore()
125 SkASSERT(this->isInList(existingEntry)); in addBefore()
131 SkASSERT(fHead == existingEntry); in addBefore()
147 SkASSERT(newEntry); in addAfter()
[all …]
DSkTDynamicHash.h26 SkASSERT(this->validate()); in SkTDynamicHash()
36 SkASSERT(hash); in Iter()
40 SkASSERT(fCurrentIndex <= fHash->fCapacity); in done()
44 SkASSERT(!this->done());
63 SkASSERT(hash); in ConstIter()
67 SkASSERT(fCurrentIndex <= fHash->fCapacity); in done()
71 SkASSERT(!this->done());
93 SkASSERT(index >= 0 && index < fCapacity); in find()
103 SkASSERT(fCapacity == 0); in find()
109 SkASSERT(nullptr == this->find(GetKey(*newEntry))); in add()
[all …]
DSkScan_AntiPath.cpp167 SkASSERT(fCurrentRun < fRunsToBuffer); in flush()
201 SkASSERT(width > 0); in blitH()
204 SkASSERT(iy >= fCurrIY); in blitH()
214 SkASSERT(y != fCurrY || x >= fCurrX); in blitH()
216 SkASSERT(y >= fCurrY); in blitH()
230 SkASSERT(start >= 0 && stop > start); in blitH()
262 SkASSERT(leftA <= 0xFF);
263 SkASSERT(riteA <= 0xFF);
275 SkASSERT(leftA < 0xFF);
288 SkASSERT(riteA < 0xFF);
[all …]
/external/skia/src/pathops/
DSkOpSpan.cpp20 SkASSERT(this != check); in collapsed()
22 SkASSERT(segment == check->segment()); in collapsed()
27 SkASSERT(this != check); in contains()
39 SkASSERT(this->segment() != check); in contains()
55 SkASSERT(fDeleted); in doppelganger()
67 SkASSERT(0); in doppelganger()
80 SkASSERT(0); in find()
113 SkASSERT(result->fNext == this); in prev()
123 SkASSERT(prev->fNext != prev); in remove()
129 SkASSERT(0); in remove()
[all …]
DSkOpSpan.h44 SkASSERT(this != opp); in addOpp()
46 SkASSERT(oppPrev != oldNext); in addOpp()
90 SkASSERT(span != this); in insert()
116 SkASSERT(start1->fT >= end2->fT || start2->fT >= end1->fT); in Overlaps()
119 SkASSERT(!*sOut || *sOut != *eOut); in Overlaps()
131 SkASSERT(!fDeleted); in setDeleted()
176 SkASSERT(fCoinEnd != this); in clearCoinEnd()
188 SkASSERT(this != coin); in containsCoinEnd()
243 SkASSERT(coin->containsCoinEnd(this)); in insertCoinEnd()
247 SkASSERT(this != coin); in insertCoinEnd()
[all …]
/external/skia/src/gpu/effects/
DGrTextureStripAtlas.cpp39 SkASSERT(info); in CleanUp()
80 SkASSERT(fNumRows * fDesc.fRowHeight == fDesc.fHeight); in GrTextureStripAtlas()
167 SkASSERT(rowNumber >= 0); in lockRow()
176 SkASSERT(fRows[row].fLocks >= 0 && fLockedRows >= 0); in unlockRow()
216 SkASSERT(fTexture); in lockTexture()
220 SkASSERT(fTexture && 0 == fLockedRows); in unlockTexture()
235 SkASSERT(nullptr == fLRUFront || nullptr == fLRUFront->fPrev); in initLRU()
236 SkASSERT(nullptr == fLRUBack || nullptr == fLRUBack->fNext); in initLRU()
240 SkASSERT(nullptr == row->fPrev && nullptr == row->fNext); in appendLRU()
252 SkASSERT(row); in removeFromLRU()
[all …]
/external/skia/include/core/
DSkMask.h60 SkASSERT(kBW_Format == fFormat); in getAddr1()
61 SkASSERT(fBounds.contains(x, y)); in getAddr1()
62 SkASSERT(fImage != NULL); in getAddr1()
71 SkASSERT(kA8_Format == fFormat); in getAddr8()
72 SkASSERT(fBounds.contains(x, y)); in getAddr8()
73 SkASSERT(fImage != NULL); in getAddr8()
83 SkASSERT(kLCD16_Format == fFormat); in getAddrLCD16()
84 SkASSERT(fBounds.contains(x, y)); in getAddrLCD16()
85 SkASSERT(fImage != NULL); in getAddrLCD16()
96 SkASSERT(kARGB32_Format == fFormat); in getAddr32()
[all …]
DSkColorPriv.h21 #define SkASSERT_IS_BYTE(x) SkASSERT(0 == ((x) & ~0xFF))
183 SkASSERT(SkToU8(alpha) == alpha); in SkAlpha255To256()
194 SkASSERT(SkToU8(value) == value); in Sk255To256()
207 SkASSERT((unsigned)scale256 <= 256); in SkAlphaBlend()
217 SkASSERT((int16_t)src == src); in SkAlphaBlend255()
218 SkASSERT((int16_t)dst == dst); in SkAlphaBlend255()
219 SkASSERT((uint8_t)alpha == alpha); in SkAlphaBlend255()
246 #define SkR16Assert(r) SkASSERT((unsigned)(r) <= SK_R16_MASK)
247 #define SkG16Assert(g) SkASSERT((unsigned)(g) <= SK_G16_MASK)
248 #define SkB16Assert(b) SkASSERT((unsigned)(b) <= SK_B16_MASK)
[all …]
/external/skia/src/effects/gradients/
DSkGradientBitmapCache.cpp56 SkASSERT(fHead != entry); in detach()
59 SkASSERT(fHead == entry); in detach()
63 SkASSERT(fTail != entry); in detach()
66 SkASSERT(fTail == entry); in detach()
106 SkASSERT(fTail); in add()
121 SkASSERT(fEntryCount >= 0 && fEntryCount <= fMaxEntries); in validate()
124 SkASSERT(nullptr == fHead->fPrev); in validate()
125 SkASSERT(nullptr == fTail->fNext); in validate()
128 SkASSERT(fHead == fTail); in validate()
130 SkASSERT(fHead != fTail); in validate()
[all …]
DSkClampRange.cpp41 SkASSERT(dx > 0); in chop()
42 SkASSERT(count >= 0); in chop()
51 SkASSERT(n >= 0); in chop()
52 SkASSERT(n <= count); in chop()
69 SkASSERT(count > 0); in init()
126 SkASSERT(fCount0 >= 0); in init()
127 SkASSERT(fCount0 <= count); in init()
130 SkASSERT(fx >= 0); in init()
131 SkASSERT(fCount0 == 0 || (fx - dx) < 0); in init()
133 SkASSERT(fCount1 >= 0); in init()
[all …]
/external/skia/src/animator/
DSkOperandIterpolator.cpp39 SkASSERT(values != nullptr); in setKeyFrame()
43 SkASSERT(success); in setKeyFrame()
71 SkASSERT(index > 0); in timeToValues()
117 SkASSERT(result == kFreezeStart_Result); in UnitTest()
118 SkASSERT(memcmp(v, v1, sizeof(v)) == 0); in UnitTest()
121 SkASSERT(result == kFreezeStart_Result); in UnitTest()
122 SkASSERT(memcmp(v, v1, sizeof(v)) == 0); in UnitTest()
125 SkASSERT(result == kNormal_Result); in UnitTest()
126 SkASSERT(memcmp(v, v1, sizeof(v)) == 0); in UnitTest()
129 SkASSERT(result == kNormal_Result); in UnitTest()
[all …]
/external/skia/src/gpu/gl/
DGrGLProgramDataManager.cpp14 SkASSERT(arrayCount <= uni.fArrayCount || \
27 SkASSERT(GrGLSLShaderVar::kNonArray == builderUniform.fVariable.getArrayCount() || in GrGLProgramDataManager()
51 SkASSERT(fGpu->glCaps().shaderCaps()->pathRenderingSupport()); in GrGLProgramDataManager()
54 SkASSERT(GrGLSLShaderVar::kNonArray == builderPathProcVarying.fVariable.getArrayCount() || in GrGLProgramDataManager()
66 SkASSERT(uni.fType == kSampler2D_GrSLType || uni.fType == kSamplerExternal_GrSLType || in setSampler()
68 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in setSampler()
83 SkASSERT(uni.fType == kFloat_GrSLType); in set1f()
84 SkASSERT(GrGLSLShaderVar::kNonArray == uni.fArrayCount); in set1f()
98 SkASSERT(uni.fType == kFloat_GrSLType); in set1fv()
99 SkASSERT(arrayCount > 0); in set1fv()
[all …]

12345678910>>...42