/external/skia/gm/ |
gm.cpp | 44 if (fShortName.size() == 0) { 65 SkISize size = this->getISize(); local 66 SkRect r = SkRect::MakeWH(SkIntToScalar(size.width()), 67 SkIntToScalar(size.height()));
|
gradtext.cpp | 135 const SkISize& size = this->getISize(); variable 136 SkRect r = SkRect::MakeWH(SkIntToScalar(size.width()), 137 SkIntToScalar(size.height()) / 2);
|
inversepaths.cpp | 88 SkScalar size = pathSizes[sizeIndex]; local 108 SkPath path = paths[pathIndex](cx, cy, size);
|
ninepatchstretch.cpp | 81 const SkTSize<SkScalar> size[] = { variable 101 size[i].width(), size[i].height());
|
skbug_257.cpp | 15 int size) { 17 bm.allocN32Pixels(2 * size, 2 * size); 19 bm.eraseArea(SkIRect::MakeLTRB(0, 0, size, size), c2); 20 bm.eraseArea(SkIRect::MakeLTRB(size, size, 2 * size, 2 * size), c2); 62 static void test_text(SkCanvas* canvas, SkScalar size, 79 const SkScalar size = 256; local [all...] |
variedtext.cpp | 57 SkISize size = this->getISize(); variable 58 SkScalar w = SkIntToScalar(size.fWidth); 59 SkScalar h = SkIntToScalar(size.fHeight); 93 fPaint.measureText(fStrings[i].c_str(), fStrings[i].size(), &r); 124 canvas->drawText(fStrings[i].c_str(), fStrings[i].size(), 0, 0, fPaint);
|
/external/skia/include/core/ |
SkDataTable.h | 19 * not required to all be the same size. 34 * Return the size of the index'th entry in the table. The caller must 43 * @param size If non-null, this returns the byte size of this entry. This 46 const void* at(int index, size_t* size = NULL) const; 49 const T* atT(int index, size_t* size = NULL) const { 50 return reinterpret_cast<const T*>(this->at(index, size)); 58 size_t size; local 59 const char* str = this->atT<const char>(index, &size); 60 SkASSERT(strlen(str) + 1 == size); [all...] |
/external/skia/samplecode/ |
SampleUnpremul.cpp | 60 size_t size = SkUTF8_FromUnichar(uni, utf8); variable 62 if (1 == size) { 94 if (fResPath.size() == 0) { 99 canvas->drawText(failure.c_str(), failure.size(), 0, height, paint); 103 // Name, size of the file, and whether or not it is premultiplied. 107 canvas->drawText(header.c_str(), header.size(), 0, height, paint); 112 canvas->drawText(header.c_str(), header.size(), 0, height, paint); 116 canvas->drawText(header.c_str(), header.size(), 0, height, paint); 150 if (fResPath.size() == 0) { 166 if (fCurrFile.size() == 0) [all...] |
/external/skia/src/animator/ |
SkScriptDecompile.cpp | 162 int size; local 164 memcpy(&size, opCode, sizeof(size)); 165 opCode += sizeof(size); 166 strPtr->set((char*) opCode, size); 167 opCode += size; 193 int size; local 194 memcpy(&size, opCode, sizeof(size)); 195 opCode += sizeof(size); [all...] |
/external/skia/src/codec/ |
SkWbmpCodec.cpp | 70 static bool read_header(SkStream* stream, SkISize* size) { 88 if (size) { 89 *size = SkISize::Make(SkToS32(width), SkToS32(height)); 143 SkISize size = info.dimensions(); local 146 for (int y = 0; y < size.height(); ++y) { 165 SkISize size; local 166 if (!read_header(stream, &size)) { 169 SkImageInfo info = SkImageInfo::Make(size.width(), size.height(),
|
SkWebpCodec.cpp | 52 // sanity check for image size that's about to be decoded. 54 const int64_t size = sk_64_mul(features.width, features.height); local 55 if (!sk_64_isS32(size)) { 59 if (sk_64_asS32(size) > (0x7FFFFFFF >> 2)) { 110 // SkCodec treats zero dimensional images as errors, so the minimum size 138 // decoder with WebPIAppend. In order to do so, we need to read chunks from the SkStream. This size 214 if (bounds.size() != dstDimensions) { 225 config.output.u.RGBA.size = dstInfo.getSafeSize(rowBytes);
|
/external/skia/src/core/ |
SkBitmapController.cpp | 57 // Check to see that the size of the bitmap that would be produced by 67 const size_t size = provider.info().getSafeSize(provider.info().minRowBytes()); local 69 return size < (maximumAllocation * SkScalarAbs(invScaleSqr)); 225 void* storage, size_t size) { 226 return SkInPlaceNewCheck<SkDefaultBitmapControllerState>(storage, size, bm, inverse, quality);
|
SkMallocPixelRef.cpp | 80 size_t size = sk_64_asS32(bigSize); local 81 SkASSERT(size >= info.getSafeSize(rowBytes)); 82 void* addr = alloc(size); 93 auto sk_malloc_nothrow = [](size_t size) { return sk_malloc_flags(size, 0); }; 128 || (data->size() < info.getSafeSize(rowBytes))) {
|
/external/skia/src/effects/ |
SkMergeImageFilter.cpp | 20 size_t size = sizeof(uint8_t) * inputCount; local 21 if (size <= sizeof(fStorage)) { 24 fModes = SkTCast<uint8_t*>(sk_malloc_throw(size));
|
/external/skia/src/gpu/ |
GrMemoryPool.h | 23 * Prealloc size is the amount of space to make available at pool creation 24 * time and keep around until pool destruction. The min alloc size is the 25 * smallest allowed size of additional allocations. 34 void* allocate(size_t size); 47 * Returns the total allocated size of the GrMemoryPool minus any preallocated amount 49 size_t size() const { return fSize; } function in class:GrMemoryPool 54 static BlockHeader* CreateBlock(size_t size); 71 size_t fSize; ///< total allocated size of the block
|
GrSurface.cpp | 18 size_t size; local 32 size = colorValuesPerPixel * desc.fWidth * desc.fHeight * colorBytes; 35 size = GrCompressedFormatDataSize(desc.fConfig, desc.fWidth, desc.fHeight); 37 size = (size_t) desc.fWidth * desc.fHeight * GrBytesPerPixel(desc.fConfig); 40 size += size/3; // in case we have to mipmap 43 return size;
|
/external/skia/src/gpu/gl/ |
GrGLRenderTarget.cpp | 152 // Don't log the backing texture's contribution to the memory size. This will be handled by the 158 size_t size = this->msaaSamples() * this->totalBytesPerSample(); local 166 traceMemoryDump->dumpNumericValue(dumpName.c_str(), "size", "bytes", size); 169 traceMemoryDump->dumpNumericValue(dumpName.c_str(), "purgeable_size", "bytes", size);
|
/external/skia/src/gpu/vk/ |
GrVkBuffer.h | 30 size_t size() const { return fDesc.fSizeInBytes; } function in class:GrVkBuffer
|
/external/skia/src/image/ |
SkSurface_Raster.cpp | 81 uint64_t size = sk_64_mul(info.height(), rowBytes); local 82 if (size > kMaxTotalSize) {
|
/external/skia/src/views/win/ |
skia_win.cpp | 44 int size = WideCharToMultiByte(CP_UTF8, 0, str, wcslen(str), NULL, 0, NULL, NULL); local 45 char* str8 = (char*) sk_malloc_throw(size+1); 46 WideCharToMultiByte(CP_UTF8, 0, str, wcslen(str), str8, size, NULL, NULL); 47 str8[size] = '\0';
|
/external/skia/src/xml/ |
SkBML_XMLParser.cpp | 18 SkDEBUGCODE(size_t size = ) s.read(&b, 1); 19 SkASSERT(size == 1); 42 size_t size = rdata(s, data); local 45 array[index] = (char*)sk_malloc_throw(size + 1); 48 if (strlen(array[index]) < size) 49 array[index] = (char*)sk_realloc_throw(array[index], size + 1); 52 s.read(array[index], size); 53 array[index][size] = 0;
|
/external/skia/tests/ |
MemsetTest.cpp | 19 static void* simple_alloc(skiatest::Reporter* reporter, SkChunkAlloc* alloc, size_t size) { 20 void* ptr = alloc->allocThrow(size); 21 check_alloc(reporter, *alloc, size, size, 1); 46 size_t size = kMin >> 1; local 47 void* ptr = simple_alloc(reporter, &alloc, size); 55 ptr = simple_alloc(reporter, &alloc, size); 58 check_alloc(reporter, alloc, size, 0, 1); 62 ptr = simple_alloc(reporter, &alloc, size); 67 ptr = simple_alloc(reporter, &alloc, size); [all...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/ |
MethodLocation.java | 152 @Override public int size() { method 153 return getLabels(false).size(); 203 @Override public int size() { 204 return getDebugItems(false).size();
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/ |
DexBackedClassDef.java | 123 final int size = dexFile.readSmallUint(interfacesOffset); local 131 @Override public int size() { return size; } method
|
DexBackedMethod.java | 136 @Override public int size() { method 137 return parameterTypes.size(); 171 @Override public int size() { return parameterCount; }
|