Home
last modified time | relevance | path

Searched refs:bytesNeeded (Results 1 – 7 of 7) sorted by relevance

/third_party/skia/src/core/
DSkStrikeCache.cpp229 size_t bytesNeeded = 0; in internalPurge() local
231 bytesNeeded = fTotalMemoryUsed - fCacheSizeLimit; in internalPurge()
233 bytesNeeded = std::max(bytesNeeded, minBytesNeeded); in internalPurge()
234 if (bytesNeeded) { in internalPurge()
236 bytesNeeded = std::max(bytesNeeded, fTotalMemoryUsed >> 2); in internalPurge()
247 if (!countNeeded && !bytesNeeded) { in internalPurge()
257 while (strike != nullptr && (bytesFreed < bytesNeeded || countFreed < countNeeded)) { in internalPurge()
/third_party/skia/third_party/externals/sfntly/cpp/src/test/tinyxml/
Dtinystr.h226 const size_type bytesNeeded = sizeof(Rep) + cap; in init() local
227 const size_type intsNeeded = ( bytesNeeded + sizeof(int) - 1 ) / sizeof( int ); in init()
/third_party/skia/tests/
DRegionTest.cpp270 const size_t bytesNeeded = region.writeToMemory(nullptr); in test_write() local
271 SkAutoMalloc storage(bytesNeeded); in test_write()
273 REPORTER_ASSERT(r, bytesWritten == bytesNeeded); in test_write()
277 REPORTER_ASSERT(r, copy.readFromMemory(storage.get(), bytesNeeded)); in test_write()
/third_party/skia/third_party/externals/icu/source/tools/escapesrc/
Descapesrc.cpp142 uint8_t bytesNeeded = U8_LENGTH(ch); in appendUtf8() local
143 if(bytesNeeded == 0) { in appendUtf8()
/third_party/icu/icu4c/source/tools/escapesrc/
Descapesrc.cpp142 uint8_t bytesNeeded = U8_LENGTH(ch); in appendUtf8() local
143 if(bytesNeeded == 0) { in appendUtf8()
/third_party/node/deps/icu-small/source/tools/escapesrc/
Descapesrc.cpp142 uint8_t bytesNeeded = U8_LENGTH(ch); in appendUtf8() local
143 if(bytesNeeded == 0) { in appendUtf8()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DTransformFeedbackTest.cpp810 const size_t bytesNeeded = stride * verticesToDraw; in TEST_P() local
816 glBufferData(GL_TRANSFORM_FEEDBACK_BUFFER, bytesNeeded, &tfData, GL_STATIC_DRAW); in TEST_P()
824 glBufferData(GL_TRANSFORM_FEEDBACK_BUFFER, bytesNeeded - 1, &tfData, GL_STATIC_DRAW); in TEST_P()
833 glBufferData(GL_TRANSFORM_FEEDBACK_BUFFER, bytesNeeded, &tfData, GL_STATIC_DRAW); in TEST_P()
835 glBufferData(GL_TRANSFORM_FEEDBACK_BUFFER, bytesNeeded - 1, &tfData, GL_STATIC_DRAW); in TEST_P()