Home
last modified time | relevance | path

Searched refs:fBuffers (Results 1 – 5 of 5) sorted by relevance

/external/skia/src/gpu/
DGrStagingBufferManager.cpp19 for (size_t i = 0; i < fBuffers.size(); ++i) { in allocateStagingBufferSlice()
20 size_t totalBufferSize = fBuffers[i].fBuffer->size(); in allocateStagingBufferSlice()
21 size_t currentOffset = fBuffers[i].fOffset; in allocateStagingBufferSlice()
24 buffer = &fBuffers[i]; in allocateStagingBufferSlice()
41 fBuffers.emplace_back(std::move(newBuffer), mapPtr); in allocateStagingBufferSlice()
42 buffer = &fBuffers.back(); in allocateStagingBufferSlice()
55 for (size_t i = 0; i < fBuffers.size(); ++i) { in detachBuffers()
56 fBuffers[i].fBuffer->unmap(); in detachBuffers()
57 fGpu->takeOwnershipOfBuffer(std::move(fBuffers[i].fBuffer)); in detachBuffers()
59 fBuffers.clear(); in detachBuffers()
DGrStagingBufferManager.h39 bool hasBuffers() { return !fBuffers.empty(); } in hasBuffers()
42 for (size_t i = 0; i < fBuffers.size(); ++i) { in reset()
43 fBuffers[i].fBuffer->unmap(); in reset()
45 fBuffers.clear(); in reset()
63 std::vector<StagingBuffer> fBuffers; variable
DGrBufferAllocPool.cpp31 fBuffers = std::make_unique<Buffer[]>(fMaxBuffersToCache); in CpuBufferCache()
41 for (; i < fMaxBuffersToCache && fBuffers[i].fBuffer; ++i) { in makeBuffer()
42 SkASSERT(fBuffers[i].fBuffer->size() == kDefaultBufferSize); in makeBuffer()
43 if (fBuffers[i].fBuffer->unique()) { in makeBuffer()
44 result = &fBuffers[i]; in makeBuffer()
48 fBuffers[i].fBuffer = GrCpuBuffer::Make(size); in makeBuffer()
49 result = &fBuffers[i]; in makeBuffer()
65 for (int i = 0; i < fMaxBuffersToCache && fBuffers[i].fBuffer; ++i) { in releaseAll()
66 fBuffers[i].fBuffer.reset(); in releaseAll()
67 fBuffers[i].fCleared = false; in releaseAll()
DGrBufferAllocPool.h56 std::unique_ptr<Buffer[]> fBuffers; variable
/external/skia/tools/sk_app/win/
DD3D12WindowContext_win.cpp58 gr_cp<ID3D12Resource> fBuffers[kNumFrames]; member in sk_app::D3D12WindowContext
147 GR_D3D_CALL_ERRCHECK(fSwapChain->GetBuffer(i, IID_PPV_ARGS(&fBuffers[i]))); in setupSurfaces()
149 SkASSERT(fBuffers[i]->GetDesc().Width == (UINT64)width && in setupSurfaces()
150 fBuffers[i]->GetDesc().Height == (UINT64)height); in setupSurfaces()
152 info.fResource = fBuffers[i]; in setupSurfaces()
173 fBuffers[i].reset(nullptr); in destroyContext()
224 fBuffers[i].reset(nullptr); in resize()