/third_party/skia/src/core/ |
H A D | SkAutoMalloc.h | 26 : fPtr(size ? sk_malloc_throw(size) : nullptr), fSize(size) {} in SkAutoMalloc() 52 if (size != fSize && (size > fSize || kReuse_OnShrink != shrink)) { in reset() 54 fSize = size; in reset() 70 fSize = 0; in release() 79 size_t fSize; // can be larger than the requested size (see kReuse) member in SkAutoMalloc 96 fSize = kSize; in SkAutoSMalloc() 105 fSize = kSize; in SkAutoSMalloc() 135 bool alloc = size != fSize && (SkAutoMalloc::kAlloc_OnShrink == shrink || size > fSize); in reset() 171 size_t fSize; // can be larger than the requested size (see kReuse) global() member in SkAutoSMalloc [all...] |
H A D | SkBlockAllocator.cpp | 34 , fSize(allocationSize) in Block() 41 this->poisonRange(kDataStart, fSize); in Block() 45 this->unpoisonRange(kDataStart, fSize); in ~Block() 55 size += b->fSize; in totalSize() 67 size += (b->fSize - kDataStart); in totalUsableSpace() 87 uintptr_t upperBound = reinterpret_cast<uintptr_t>(b) + b->fSize; in findOwningBlock() 101 block->poisonRange(kDataStart, block->fSize); in releaseBlock() 116 if (this->scratchBlockSize() < block->fSize) { in releaseBlock() 176 b->poisonRange(kDataStart, b->fSize); in reset() 217 allocSize = fHead.fPrev->fSize; in addBlock() [all...] |
H A D | SkData.cpp | 20 , fSize(size) in SkData() 28 , fSize(size) in SkData() 39 , fSize(size) in SkData() 56 return fSize == other->fSize && !sk_careful_memcmp(fPtr, other->fPtr, fSize); in equals() 60 size_t available = fSize; in copyRange()
|
H A D | SkBlockAllocator.h | 86 int avail() const { return std::max(0, fSize - this->cursor<Align, Padding>()); } in avail() 97 SkASSERT(offset >= kDataStart && offset < fSize); in ptr() 154 this->poisonRange(kDataStart, fSize); in markAsScratch() 164 int fSize; // includes the size of the BlockHeader and requested metadata member in final::GrowthPolicy::final 230 // Don't double count fHead's Block overhead in both sizeof(SkBlockAllocator) and fSize. in preallocSize() 231 return sizeof(SkBlockAllocator) + fHead.fSize - BaseHeadBlockSize(); in preallocSize() 239 return fHead.fSize - kDataStart; in preallocUsableSpace() 442 // have enough room for sizeof(Block). 'maxSize' is the upper limit of fSize for the new block 446 int scratchBlockSize() const { return fHead.fPrev ? fHead.fPrev->fSize : 0; } in scratchBlockSize() 583 if (end > fTail->fSize) { in allocate() [all...] |
H A D | SkFont_serial.cpp | 53 if (scalar_is_byte(font.fSize)) { in Flatten() 55 packed |= (int)font.fSize << kShift_for_Size; in Flatten() 69 buffer.writeScalar(font.fSize); in Flatten() 86 font->fSize = (packed >> kShift_for_Size) & kMask_For_Size; in Unflatten() 88 font->fSize = buffer.readScalar(); in Unflatten()
|
/third_party/skia/src/utils/ |
H A D | SkBitSet.h | 23 : fSize(size) in SkBitSet() 25 , fChunks((Chunk*)sk_calloc_throw(NumChunksFor(fSize) * sizeof(Chunk))) in SkBitSet() 33 this->fSize = that.fSize; in operator =() 35 that.fSize = 0; in operator =() 43 SkASSERT(index < fSize); in set() 50 const size_t numChunks = NumChunksFor(fSize); in set() 56 SkASSERT(index < fSize); in reset() 63 const size_t numChunks = NumChunksFor(fSize); in reset() 68 SkASSERT(index < fSize); in test() 127 size_t fSize; global() member in SkBitSet [all...] |
/third_party/skia/include/core/ |
H A D | SkSpan.h | 28 constexpr SkSpan() : fPtr{nullptr}, fSize{0} {} in SkSpan() 29 constexpr SkSpan(T* ptr, size_t size) : fPtr{ptr}, fSize{size} { in SkSpan() 33 constexpr SkSpan(const SkSpan<U>& that) : fPtr(that.data()), fSize{that.size()} {} 38 fSize = that.fSize; 46 constexpr T& back() const { return fPtr[fSize - 1]; } 48 constexpr T* end() const { return fPtr + fSize; } 52 constexpr size_t size() const { return fSize; } in size() 53 constexpr bool empty() const { return fSize == 0; } in empty() 54 constexpr size_t size_bytes() const { return fSize * sizeo in empty() 72 size_t fSize; global() member in SkSpan [all...] |
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/ |
H A D | MMap.h | 25 fSize(-1), // -1 is the error value returned by GetFileSize() in TMMap() 32 fSize = 0; in TMMap() 34 fSize++; in TMMap() 38 fSize++; in TMMap() 40 fBuff = (char*)malloc(sizeof(char) * fSize); in TMMap() 51 int getSize() { return fSize; } in getSize() 59 int fSize; // size of file to map in member in TMMap
|
/third_party/skia/tools/viewer/ |
H A D | ImGuiLayer.h | 39 fSize = ImVec2(availWidth, availWidth * aspect); 49 { fPos.x + fSize.x, fPos.y }, 50 { fPos.x , fPos.y + fSize.y }, 51 { fPos.x + fSize.x, fPos.y + fSize.y }, 58 ImGui::SetCursorScreenPos(ImVec2(fPos.x, fPos.y + fSize.y)); in ~DragCanvas() 64 fDrawList->AddRectFilled(fPos, ImVec2(fPos.x + fSize.x, fPos.y + fSize.y), color); in fillColor() 79 center.set(SkTPin(io.MousePos.x, fPos.x, fPos.x + fSize.x), in dragPoint() 80 SkTPin(io.MousePos.y, fPos.y, fPos.y + fSize in dragPoint() 101 ImVec2 fSize; global() member [all...] |
/third_party/skia/bench/ |
H A D | PerlinNoiseBench.cpp | 13 SkISize fSize; member in PerlinNoiseBench 17 fSize = SkISize::Make(80, 80); in PerlinNoiseBench() 33 SkIntToScalar(fSize.width()), SkIntToScalar(fSize.height()))); in drawClippedRect() 35 SkIntToScalar(fSize.width()), in drawClippedRect() 36 SkIntToScalar(fSize.height())); in drawClippedRect() 47 stitchTiles ? &fSize : nullptr)); in test()
|
H A D | ChartBench.cpp | 94 fSize.fWidth = -1; in ChartBench() 95 fSize.fHeight = -1; in ChartBench() 109 if (canvas->getBaseLayerSize() != fSize) { 110 fSize = canvas->getBaseLayerSize(); 114 SkScalar ySpread = SkIntToScalar(fSize.fHeight / 20); 116 SkScalar height = SkIntToScalar(fSize.fHeight); 118 int dataPointCount = std::max(fSize.fWidth / kPixelsPerTick + 1, 2); 181 SkISize fSize; member in ChartBench
|
/third_party/skia/modules/skottie/src/layers/shapelayer/ |
H A D | Rectangle.cpp | 30 this->bind(*abuilder, jrect["s"], fSize ); in RectangleGeometryAdapter() 37 const auto bounds = SkRect::MakeXYWH(fPosition.x - fSize.x / 2, 38 fPosition.y - fSize.y / 2, 39 fSize.x, fSize.y); 44 Vec2Value fSize = {0,0}, member in skottie::internal::__anon18581::final
|
H A D | Ellipse.cpp | 30 this->bind(*abuilder, jellipse["s"], fSize); in EllipseGeometryAdapter() 36 const auto bounds = SkRect::MakeXYWH(fPosition.x - fSize.x / 2, 37 fPosition.y - fSize.y / 2, 38 fSize.x, fSize.y); 43 Vec2Value fSize = {0,0}, member in skottie::internal::__anon18575::final
|
/third_party/skia/tools/ |
H A D | HashAndEncode.cpp | 13 HashAndEncode::HashAndEncode(const SkBitmap& bitmap) : fSize(bitmap.info().dimensions()) { in HashAndEncode() 69 int N = fSize.width() * fSize.height(); in HashAndEncode() 89 st->write(&fSize, sizeof(fSize)); in feedHash() 91 st->write(px, sizeof(*px) * fSize.width() * fSize.height()); in feedHash() 150 png_set_IHDR(png, info, (png_uint_32)fSize.width() in encodePNG() 151 , (png_uint_32)fSize.height() in encodePNG() 171 for (int y = 0; y < fSize in encodePNG() [all...] |
/third_party/skia/gm/ |
H A D | animatedimageblurs.cpp | 86 : fSize(0.0f) in Node() 95 fSize = rand->nextRangeF(10.0f, 60.f); in init() 96 fPos.fX = rand->nextRangeF(fSize, kWidth - fSize); in init() 97 fPos.fY = rand->nextRangeF(fSize, kHeight - fSize); in init() 127 SkScalar size() const { return fSize; } in size() 130 SkScalar fSize; member in AnimatedImageBlurs::Node
|
H A D | perlinnoise.cpp | 31 SkISize fSize = {80, 80}; member in __anon18409::PerlinNoiseGM 51 SkISize tileSize = SkISize::Make(fSize.width() / 2, fSize.height() / 2); in test() 80 drawRect(canvas, x, y, paint, fSize); in test() 119 SkISize fSize = {80, 80}; member in __anon18409::PerlinNoiseGM2 130 seed, stitchTiles ? &fSize : nullptr) : in install() 132 seed, stitchTiles ? &fSize : nullptr); in install() 142 const SkScalar w = SkIntToScalar(fSize.width()); 143 const SkScalar h = SkIntToScalar(fSize.height());
|
/third_party/skia/src/gpu/effects/ |
H A D | GrMatrixConvolutionEffect.h | 61 KernelWrapper(const KernelWrapper& that) : fSize(that.fSize) { in KernelWrapper() 69 bool isValid() const { return !fSize.isEmpty(); } in isValid() 70 SkISize size() const { return fSize; } in size() 71 bool isSampled() const { return fSize.area() > kMaxUniformSize; } in isSampled() 83 KernelWrapper(SkISize size) : fSize(size) { in KernelWrapper() 89 SkISize fSize = {}; member in GrMatrixConvolutionEffect::KernelWrapper
|
/third_party/skia/modules/skottie/src/layers/ |
H A D | PrecompLayer.cpp | 100 layer_info.fSize); in attachExternalPrecompLayer() 112 , fSize(layer_size) {} in attachExternalPrecompLayer() 116 return SkRect::MakeSize(fSize); in attachExternalPrecompLayer() 135 const SkSize fSize; in attachExternalPrecompLayer() member in skottie::internal::final 157 auto sg_adapter = sk_make_sp<SGAdapter>(std::move(external_layer), layer_info.fSize); in attachExternalPrecompLayer() 178 layer_info->fSize = SkSize::Make(ParseDefault<float>(jlayer["w"], 0.0f), in attachPrecompLayer() 193 CompositionBuilder(*this, layer_info->fSize, *precomp_asset).build(*this); in attachPrecompLayer()
|
/third_party/skia/experimental/sktext/editor/ |
H A D | Cursor.h | 31 fSize = size; in place() 39 fSize = SkSize::Make(rect.width(), rect.height()); in place() 48 return fXY + SkPoint::Make(0, fSize.fHeight / 2); in getCenterPosition() 57 SkSize fSize; member in skia::editor::Cursor
|
/third_party/skia/samplecode/ |
H A D | SampleChart.cpp | 86 SkISize fSize = {-1, -1}; member in ChartView 93 if (canvas->getBaseLayerSize() != fSize) { 94 fSize = canvas->getBaseLayerSize(); 98 SkScalar ySpread = SkIntToScalar(fSize.fHeight / 20); 100 SkScalar height = SkIntToScalar(fSize.fHeight); 103 int dataPointCount = std::max(fSize.fWidth / kPixelsPerTick + 1, 2);
|
/third_party/skia/src/gpu/gl/ |
H A D | GrGLTexture.cpp | 49 : GrSurface(gpu, desc.fSize, GrProtected::kNo) in GrGLTexture() 50 , INHERITED(gpu, desc.fSize, GrProtected::kNo, in GrGLTexture() 63 : GrSurface(gpu, desc.fSize, GrProtected::kNo) in GrGLTexture() 64 , INHERITED(gpu, desc.fSize, GrProtected::kNo, in GrGLTexture() 77 : GrSurface(gpu, desc.fSize, GrProtected::kNo) in GrGLTexture() 78 , INHERITED(gpu, desc.fSize, GrProtected::kNo, in GrGLTexture()
|
H A D | GrGLTextureRenderTarget.cpp | 22 : GrSurface(gpu, texDesc.fSize, GrProtected::kNo) in GrGLTextureRenderTarget() 24 , GrGLRenderTarget(gpu, texDesc.fSize, texDesc.fFormat, sampleCount, rtIDs) { in GrGLTextureRenderTarget() 35 : GrSurface(gpu, texDesc.fSize, GrProtected::kNo) in GrGLTextureRenderTarget() 37 , GrGLRenderTarget(gpu, texDesc.fSize, texDesc.fFormat, sampleCount, in GrGLTextureRenderTarget()
|
/third_party/skia/experimental/sktext/src/ |
H A D | Paint.h | 25 , fSize(size) in TrivialFontChain() 32 float fontSize() const override { return fSize; } 39 SkScalar fSize; member in skia::text::TrivialFontChain 46 : fSize(size) in MultipleFontChain() 60 float fontSize() const override { return fSize; } 66 SkScalar fSize;
|
/third_party/skia/experimental/graphite/src/ |
H A D | Buffer.h | 18 size_t size() const { return fSize; } in size() 27 : fSize(size), fType(type), fPrioritizeGpuReads(prioritizeGpuReads) {} in Buffer() 40 size_t fSize; member in skgpu::Buffer
|
/third_party/skia/src/gpu/ |
H A D | GrCpuBuffer.h | 33 size_t size() const override { return fSize; } 40 GrCpuBuffer(void* data, size_t size) : fData(data), fSize(size) {} in GrCpuBuffer() 42 size_t fSize; member in final
|