Home
last modified time | relevance | path

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

/third_party/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
/third_party/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()
/third_party/flutter/skia/tools/gpu/dawn/
DDawnTestContext.cpp123 if (fBuffers.empty()) { in insertFence()
129 buffer = fBuffers.back(); in insertFence()
130 fBuffers.pop_back(); in insertFence()
144 fBuffers.push_back(fence->buffer()); in deleteFence()
150 mutable std::vector<dawn::Buffer> fBuffers; member in __anon6cafd1240111::DawnFenceSync
/third_party/flutter/skia/src/gpu/
DGrBufferAllocPool.cpp29 fBuffers.reset(new Buffer[fMaxBuffersToCache]); in CpuBufferCache()
39 for (; i < fMaxBuffersToCache && fBuffers[i].fBuffer; ++i) { in makeBuffer()
40 SkASSERT(fBuffers[i].fBuffer->size() == kDefaultBufferSize); in makeBuffer()
41 if (fBuffers[i].fBuffer->unique()) { in makeBuffer()
42 result = &fBuffers[i]; in makeBuffer()
46 fBuffers[i].fBuffer = GrCpuBuffer::Make(size); in makeBuffer()
47 result = &fBuffers[i]; in makeBuffer()
63 for (int i = 0; i < fMaxBuffersToCache && fBuffers[i].fBuffer; ++i) { in releaseAll()
64 fBuffers[i].fBuffer.reset(); in releaseAll()
65 fBuffers[i].fCleared = false; in releaseAll()
DGrBufferAllocPool.h55 std::unique_ptr<Buffer[]> fBuffers; variable