Home
last modified time | relevance | path

Searched refs:gpuMemorySize (Results 1 – 16 of 16) sorted by relevance

/external/skia/src/gpu/
DGrIndexBuffer.h34 return static_cast<int>(this->gpuMemorySize() / (sizeof(uint16_t) * 6)); in maxQuads()
37 GrIndexBuffer(GrGpu* gpu, size_t gpuMemorySize, bool dynamic, bool cpuBacked) in GrIndexBuffer() argument
38 : INHERITED(gpu, gpuMemorySize, dynamic, cpuBacked) { in GrIndexBuffer()
40 if (!cpuBacked && SkIsPow2(gpuMemorySize)) { in GrIndexBuffer()
42 ComputeScratchKey(gpuMemorySize, dynamic, &key); in GrIndexBuffer()
DGrVertexBuffer.h28 GrVertexBuffer(GrGpu* gpu, size_t gpuMemorySize, bool dynamic, bool cpuBacked) in GrVertexBuffer() argument
29 : INHERITED(gpu, gpuMemorySize, dynamic, cpuBacked) { in GrVertexBuffer()
31 if (!cpuBacked && SkIsPow2(gpuMemorySize)) { in GrVertexBuffer()
33 ComputeScratchKey(gpuMemorySize, dynamic, &key); in GrVertexBuffer()
DGrBufferAllocPool.cpp39 (float)((block).fBytesFree) / (block).fBuffer->gpuMemorySize()); \
98 size_t flushSize = block.fBuffer->gpuMemorySize() - block.fBytesFree; in unmap()
128 size_t bytes = fBlocks[i].fBuffer->gpuMemorySize() - fBlocks[i].fBytesFree; in validate()
157 size_t usedBytes = back.fBuffer->gpuMemorySize() - back.fBytesFree; in makeSpace()
200 size_t bytesUsed = block.fBuffer->gpuMemorySize() - block.fBytesFree; in putBack()
236 block.fBytesFree = block.fBuffer->gpuMemorySize(); in createBlock()
243 this->flushCpuData(prev, prev.fBuffer->gpuMemorySize() - prev.fBytesFree); in createBlock()
302 SkASSERT(flushSize <= buffer->gpuMemorySize()); in flushCpuData()
DGrTransferBuffer.h59 GrTransferBuffer(GrGpu* gpu, size_t gpuMemorySize) in GrTransferBuffer() argument
61 , fGpuMemorySize(gpuMemorySize) { in GrTransferBuffer()
DGrGeometryBuffer.h102 GrGeometryBuffer(GrGpu* gpu, size_t gpuMemorySize, bool dynamic, bool cpuBacked) in GrGeometryBuffer() argument
105 , fGpuMemorySize(gpuMemorySize) in GrGeometryBuffer()
DGrResourceCache.cpp132 size_t size = resource->gpuMemorySize(); in insertResource()
167 size_t size = resource->gpuMemorySize(); in removeResource()
384 fBudgetedBytes + resource->gpuMemorySize() <= fMaxBytes) { in notifyCntReachedZero()
411 ptrdiff_t delta = resource->gpuMemorySize() - oldSize; in didChangeGpuMemorySize()
434 size_t size = resource->gpuMemorySize(); in didChangeBudgetStatus()
655 fBytes += resource->gpuMemorySize(); in validate()
683 fBudgetedBytes += resource->gpuMemorySize(); in validate()
DGrGpuResource.cpp64 traceMemoryDump->dumpNumericValue(dumpName.c_str(), "size", "bytes", this->gpuMemorySize()); in dumpMemoryStatistics()
68 this->gpuMemorySize()); in dumpMemoryStatistics()
DGrResourceCache.h224 fUnbudgetedSize += resource->gpuMemorySize(); in update()
DGrTessellator.cpp1396 if (!vertexBuffer.get() || vertexBuffer->gpuMemorySize() < size) { in PathToTriangles()
/external/skia/tests/
DResourceCacheTest.cpp370 REPORTER_ASSERT(reporter, a->gpuMemorySize() + b->gpuMemorySize() + c->gpuMemorySize() + in test_no_key()
371 d->gpuMemorySize() == cache->getResourceBytes()); in test_no_key()
382 REPORTER_ASSERT(reporter, b->gpuMemorySize() + c->gpuMemorySize() + d->gpuMemorySize() == in test_no_key()
388 REPORTER_ASSERT(reporter, b->gpuMemorySize() + d->gpuMemorySize() == in test_no_key()
394 REPORTER_ASSERT(reporter, b->gpuMemorySize() == cache->getResourceBytes()); in test_no_key()
438 REPORTER_ASSERT(reporter, scratch->gpuMemorySize() + unique->gpuMemorySize() + in test_budgeting()
439 wrapped->gpuMemorySize() + unbudgeted->gpuMemorySize() == in test_budgeting()
442 REPORTER_ASSERT(reporter, scratch->gpuMemorySize() + unique->gpuMemorySize() == in test_budgeting()
448 REPORTER_ASSERT(reporter, scratch->gpuMemorySize() + unique->gpuMemorySize() + in test_budgeting()
449 wrapped->gpuMemorySize() + unbudgeted->gpuMemorySize() == in test_budgeting()
[all …]
/external/skia/src/gpu/gl/
DGrGLPathRange.cpp26 size_t gpuMemorySize, in GrGLPathRange() argument
31 fGpuMemorySize(gpuMemorySize) { in GrGLPathRange()
DGrGLTextureRenderTarget.cpp26 size_t size = GrGLTexture::gpuMemorySize(); in dumpMemoryStatistics()
DGrGLPathRange.h40 size_t gpuMemorySize,
/external/skia/src/core/
DSkSpecialImage.cpp106 return fImage->getTexture()->gpuMemorySize(); in getSize()
258 size_t getSize() const override { return fTexture->gpuMemorySize(); } in getSize()
/external/skia/src/gpu/batches/
DGrVertexBatch.cpp36 size_t ibSize = indexBuffer->gpuMemorySize(); in init()
/external/skia/include/gpu/
DGrGpuResource.h199 size_t gpuMemorySize() const { in gpuMemorySize() function