Home
last modified time | relevance | path

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

12

/external/swiftshader/src/OpenGL/libGLES_CM/
DIndexDataManager.cpp154 …r::StreamingIndexBuffer(unsigned int initialSize) : mIndexBuffer(nullptr), mBufferSize(initialSize) in StreamingIndexBuffer()
208 if(requiredSpace > mBufferSize) in reserveSpace()
216 mBufferSize = std::max(requiredSpace, 2 * mBufferSize); in reserveSpace()
218 mIndexBuffer = new sw::Resource(mBufferSize + 16); in reserveSpace()
222 ERR("Out of memory allocating an index buffer of size %u.", mBufferSize); in reserveSpace()
227 else if(mWritePosition + requiredSpace > mBufferSize) // Recycle in reserveSpace()
232 mIndexBuffer = new sw::Resource(mBufferSize + 16); in reserveSpace()
DVertexDataManager.cpp266 mBufferSize = size; in StreamingVertexBuffer()
298 if(mRequiredSpace > mBufferSize) in reserveRequiredSpace()
306mBufferSize = std::max(mRequiredSpace, 3 * mBufferSize / 2); // 1.5 x mBufferSize is arbitrary a… in reserveRequiredSpace()
308 mVertexBuffer = new sw::Resource(mBufferSize); in reserveRequiredSpace()
312 ERR("Out of memory allocating a vertex buffer of size %u.", mBufferSize); in reserveRequiredSpace()
317 else if(mWritePosition + mRequiredSpace > mBufferSize) // Recycle in reserveRequiredSpace()
322 mVertexBuffer = new sw::Resource(mBufferSize); in reserveRequiredSpace()
DIndexDataManager.h51 unsigned int mBufferSize; variable
/external/angle/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 __anon088433530111::MockIndexBuffer
53 : mBufferSize(bufferSize), mIndexType(indexType) in MockBufferFactoryD3D()
71 return new MockIndexBuffer(mBufferSize, mIndexType); in createIndexBuffer()
75 unsigned int mBufferSize; member in __anon088433530111::MockBufferFactoryD3D
155 unsigned int mBufferSize; member in __anon088433530111::IndexDataManagerPerfTest
165 mBufferSize(mIndexCount * sizeof(GLushort)), in IndexDataManagerPerfTest()
166 mMockBufferFactory(mBufferSize, gl::DrawElementsType::UnsignedShort), in IndexDataManagerPerfTest()
DDrawElementsPerf.cpp83 GLsizei mBufferSize = 0; member in __anon0af64dbe0111::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()
/external/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
/external/angle/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
1097 : mRenderer(renderer), mRevision(0), mUsage(usage), mBufferSize(0) in BufferStorage()
1109 size_t mapSize = std::min(size, mBufferSize - offset); in setData()
1159 if (!mBuffer.valid() || mBufferSize < requiredSize) in copyFromStorage()
1172 clampedSize = std::min(clampedSize, mBufferSize - destOffset); in copyFromStorage()
1223 mBufferSize = 0; in resize()
1238 ASSERT(mBufferSize <= size); in resize()
1242 srcBox.right = static_cast<unsigned int>(mBufferSize); in resize()
1256 mBufferSize = bufferDesc.ByteWidth; in resize()
[all …]
DIndexBuffer11.h51 unsigned int mBufferSize; variable
DVertexBuffer11.h57 unsigned int mBufferSize; variable
/external/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
/external/angle/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
/external/mesa3d/src/gallium/drivers/swr/rasterizer/codegen/templates/
Dgen_ar_eventhandlerfile.hpp123 if ((mBufOffset + size + sizeof(eventId)) > mBufferSize) in Write()
168 static const uint32_t mBufferSize = 1024; variable
169 uint8_t mBuffer[mBufferSize];
/external/sl4a/Utils/src/com/trilead/ssh2/
DStreamGobbler.java114 private final int mBufferSize; field in StreamGobbler
118 mBufferSize = buffer_size; in StreamGobbler()
126 buffer = new byte[mBufferSize]; in StreamGobbler()
/external/angle/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()
/external/oboe/samples/LiveEffect/src/main/cpp/
DFullDuplexStream.cpp95 if (bufferSize > mBufferSize) { in start()
97 mBufferSize = bufferSize; in start()
DFullDuplexStream.h97 int32_t mBufferSize = 0; variable
/external/oboe/apps/OboeTester/app/src/main/cpp/
DFullDuplexStream.cpp115 if (bufferSize > mBufferSize) { in start()
117 mBufferSize = bufferSize; in start()
/external/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