Home
last modified time | relevance | path

Searched refs:mBufferSize (Results 1 – 25 of 29) sorted by relevance

12

/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
DIndexDataManagerTest.cpp29 : mBufferSize(bufferSize), mIndexType(indexType) in MockIndexBuffer()
42 unsigned int getBufferSize() const override { return mBufferSize; } in getBufferSize()
45 unsigned int mBufferSize; member in __anonc91d86850111::MockIndexBuffer
53 : mBufferSize(bufferSize), mIndexType(indexType) in MockBufferFactoryD3D()
71 return new MockIndexBuffer(mBufferSize, mIndexType); in createIndexBuffer()
75 unsigned int mBufferSize; member in __anonc91d86850111::MockBufferFactoryD3D
155 unsigned int mBufferSize; member in __anonc91d86850111::IndexDataManagerPerfTest
165 mBufferSize(mIndexCount * sizeof(GLushort)), in IndexDataManagerPerfTest()
166 mMockBufferFactory(mBufferSize, gl::DrawElementsType::UnsignedShort), in IndexDataManagerPerfTest()
DDrawElementsPerf.cpp83 GLsizei mBufferSize = 0; member in __anon5151d7f00111::DrawElementsPerfBenchmark
134 mBufferSize = ElementTypeSize(params.type) * mCount; in initializeBenchmark()
138 glBufferSubData(GL_ELEMENT_ARRAY_BUFFER, 0, mBufferSize, mIntIndexData.data()); in initializeBenchmark()
142 glBufferSubData(GL_ELEMENT_ARRAY_BUFFER, 0, mBufferSize, mShortIndexData.data()); in initializeBenchmark()
190 glBufferSubData(GL_ELEMENT_ARRAY_BUFFER, 0, mBufferSize, bufferData); in drawBenchmark()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
DVertexDataManager.cpp294 mBufferSize = size; in StreamingVertexBuffer()
326 if(mRequiredSpace > mBufferSize) in reserveRequiredSpace()
334mBufferSize = std::max(mRequiredSpace, 3 * mBufferSize / 2); // 1.5 x mBufferSize is arbitrary a… in reserveRequiredSpace()
336 mVertexBuffer = new sw::Resource(mBufferSize); in reserveRequiredSpace()
340 ERR("Out of memory allocating a vertex buffer of size %u.", mBufferSize); in reserveRequiredSpace()
345 else if(mWritePosition + mRequiredSpace > mBufferSize) // Recycle in reserveRequiredSpace()
350 mVertexBuffer = new sw::Resource(mBufferSize); in reserveRequiredSpace()
DIndexDataManager.cpp373 StreamingIndexBuffer::StreamingIndexBuffer(size_t initialSize) : mIndexBuffer(NULL), mBufferSize(in… in StreamingIndexBuffer()
427 if(requiredSpace > mBufferSize) in reserveSpace()
435 mBufferSize = std::max(requiredSpace, 2 * mBufferSize); in reserveSpace()
437 mIndexBuffer = new sw::Resource(mBufferSize + 16); in reserveSpace()
441 ERR("Out of memory allocating an index buffer of size %u.", mBufferSize); in reserveSpace()
446 else if(mWritePosition + requiredSpace > mBufferSize) // Recycle in reserveSpace()
451 mIndexBuffer = new sw::Resource(mBufferSize + 16); in reserveSpace()
DIndexDataManager.h54 size_t mBufferSize; variable
DVertexDataManager.h73 unsigned int mBufferSize;
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DIndexBuffer11.cpp22 mBufferSize(0), in IndexBuffer11()
60 mBufferSize = bufferSize; in initialize()
77 bool outOfBounds = (offset + size < offset || offset + size > mBufferSize); in mapBuffer()
107 return mBufferSize; in getBufferSize()
114 if (bufferSize > mBufferSize || indexType != mIndexType) in setSize()
DVertexBuffer11.cpp27 mBufferSize(0), in VertexBuffer11()
66 mBufferSize = size; in initialize()
136 return mBufferSize; in getBufferSize()
141 if (size > mBufferSize) in setBufferSize()
DBuffer11.cpp115 size_t getSize() const { return mBufferSize; } in getSize()
150 size_t mBufferSize; member in rx::Buffer11::BufferStorage
1102 : mRenderer(renderer), mRevision(0), mUsage(usage), mBufferSize(0) in BufferStorage()
1114 size_t mapSize = std::min(size, mBufferSize - offset); in setData()
1164 if (!mBuffer.valid() || mBufferSize < requiredSize) in copyFromStorage()
1177 clampedSize = std::min(clampedSize, mBufferSize - destOffset); in copyFromStorage()
1228 mBufferSize = 0; in resize()
1243 ASSERT(mBufferSize <= size); in resize()
1247 srcBox.right = static_cast<unsigned int>(mBufferSize); in resize()
1261 mBufferSize = bufferDesc.ByteWidth; in resize()
[all …]
DIndexBuffer11.h51 unsigned int mBufferSize; variable
DVertexBuffer11.h57 unsigned int mBufferSize; variable
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/src/main/cpp/audio/
DAAssetDataSource.h27 int64_t getSize() const override { return mBufferSize; } in getSize()
41 , mBufferSize(size) in AAssetDataSource()
46 const int64_t mBufferSize; variable
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
DIndexBuffer9.cpp20 mBufferSize = 0; in IndexBuffer9()
67 mBufferSize = bufferSize; in initialize()
107 return mBufferSize; in getBufferSize()
114 if (bufferSize > mBufferSize || indexType != mIndexType) in setSize()
DVertexBuffer9.cpp25 mBufferSize = 0; in VertexBuffer9()
55 mBufferSize = size; in initialize()
116 return mBufferSize; in getBufferSize()
121 if (size > mBufferSize) in setBufferSize()
DVertexBuffer9.h50 unsigned int mBufferSize; variable
DIndexBuffer9.h50 unsigned int mBufferSize; variable
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DStagingBuffer.cpp19 StagingBufferBase::StagingBufferBase(size_t size) : mBufferSize(size) { in StagingBufferBase()
23 return mBufferSize; in GetSize()
DStagingBuffer.h36 const size_t mBufferSize;
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DBindGroupValidationTests.cpp1402 mBufferSize = 3 * mMinUniformBufferOffsetAlignment + 8; in SetUp()
1514 uint64_t mBufferSize; member in SetBindGroupValidationTest
1520 wgpu::Buffer uniformBuffer = CreateBuffer(mBufferSize, wgpu::BufferUsage::Uniform); in TEST_F()
1521 wgpu::Buffer storageBuffer = CreateBuffer(mBufferSize, wgpu::BufferUsage::Storage); in TEST_F()
1522 wgpu::Buffer readonlyStorageBuffer = CreateBuffer(mBufferSize, wgpu::BufferUsage::Storage); in TEST_F()
1545 wgpu::Buffer uniformBuffer = CreateBuffer(mBufferSize, wgpu::BufferUsage::Uniform); in TEST_F()
1546 wgpu::Buffer storageBuffer = CreateBuffer(mBufferSize, wgpu::BufferUsage::Storage); in TEST_F()
1547 wgpu::Buffer readonlyStorageBuffer = CreateBuffer(mBufferSize, wgpu::BufferUsage::Storage); in TEST_F()
1594 wgpu::Buffer uniformBuffer = CreateBuffer(mBufferSize, wgpu::BufferUsage::Uniform); in TEST_F()
1595 wgpu::Buffer storageBuffer = CreateBuffer(mBufferSize, wgpu::BufferUsage::Storage); in TEST_F()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
DBufferGL.cpp40 mBufferSize(0), in BufferGL()
81 mBufferSize = size; in setData()
167 0, mBufferSize, GL_MAP_WRITE_BIT)); in map()
172 mMapSize = mBufferSize; in map()
/third_party/skia/third_party/externals/oboe/samples/LiveEffect/src/main/cpp/
DFullDuplexStream.cpp95 if (bufferSize > mBufferSize) { in start()
97 mBufferSize = bufferSize; in start()
DFullDuplexStream.h102 int32_t mBufferSize = 0; variable
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/
DFullDuplexStream.cpp115 if (bufferSize > mBufferSize) { in start()
117 mBufferSize = bufferSize; in start()
DFullDuplexStream.h110 int32_t mBufferSize = 0; variable
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libEGL/
DConfig.cpp121 mBufferSize = mRedSize + mGreenSize + mBlueSize + mLuminanceSize + mAlphaSize; in Config()
224 SORT_SMALLER(mBufferSize); in operator ()()
315 SORT_SMALLER(mBufferSize); in operator ()()
372 …case EGL_BUFFER_SIZE: match = config->mBufferSize >= attribIt->second; … in getConfigs()

12