/third_party/flutter/skia/samplecode/ |
D | SampleSubpixelTranslate.cpp | 35 fSize = 200; in SubpixelTranslateView() 40 SkScalar fSize; member in SubpixelTranslateView 63 SkRect r = SkRect::MakeXYWH( fCurPos.fX + i * (fSize + 10), fCurPos.fY, fSize, fSize ); in onDrawContent() 67 canvas->drawString("AA Scaled", fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (fSize + 10), in onDrawContent() 68 fCurPos.fY + fSize/2, font, paint); in onDrawContent() 74 …SkRect r = SkRect::MakeXYWH( fCurPos.fX + i * (fSize + 10), fCurPos.fY + fSize + 10, fSize, fSize … in onDrawContent() 77 canvas->drawString("Scaled", fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (fSize + 10), in onDrawContent() 78 fCurPos.fY + fSize + 10 + fSize/2, font, paint); in onDrawContent() 84 …canvas->drawBitmap( fBM, fCurPos.fX + i * (fBM.width() + 10), fCurPos.fY + 2*(fSize + 10), &paint … in onDrawContent() 89 fCurPos.fY + 2*(fSize + 10) + fSize/2, font, paint); in onDrawContent() [all …]
|
/third_party/skia/src/core/ |
D | SkAutoMalloc.h | 26 : fPtr(size ? sk_malloc_throw(size) : nullptr), fSize(size) {} 52 if (size != fSize && (size > fSize || kReuse_OnShrink != shrink)) { 54 fSize = size; 70 fSize = 0; in release() 79 size_t fSize; // can be larger than the requested size (see kReuse) variable 96 fSize = kSize; in SkAutoSMalloc() 105 fSize = kSize; in SkAutoSMalloc() 135 bool alloc = size != fSize && (SkAutoMalloc::kAlloc_OnShrink == shrink || size > fSize); 151 fSize = size; 153 SkASSERT(fSize >= size && fSize >= kSize); [all …]
|
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 …]
|
/third_party/flutter/skia/src/core/ |
D | SkAutoMalloc.h | 26 : fPtr(size ? sk_malloc_throw(size) : nullptr), fSize(size) {} 52 if (size != fSize && (size > fSize || kReuse_OnShrink != shrink)) { 54 fSize = size; 70 fSize = 0; in release() 79 size_t fSize; // can be larger than the requested size (see kReuse) variable 97 fSize = kSize; in SkAutoSMalloc() 106 fSize = kSize; in SkAutoSMalloc() 136 bool alloc = size != fSize && (SkAutoMalloc::kAlloc_OnShrink == shrink || size > fSize); 152 fSize = size; 154 SkASSERT(fSize >= size && fSize >= kSize); [all …]
|
D | SkSpan.h | 20 constexpr SkSpan() : fPtr{nullptr}, fSize{0} {} in SkSpan() 21 constexpr SkSpan(T* ptr, size_t size) : fPtr{ptr}, fSize{size} {} in SkSpan() 23 constexpr SkSpan(const SkSpan<U>& that) : fPtr(that.data()), fSize{that.size()} {} in SkSpan() 27 fSize = that.fSize; 32 constexpr T& back() const { return fPtr[fSize - 1]; } in back() 34 constexpr T* end() const { return fPtr + fSize; } in end() 36 constexpr const T* cend() const { return fPtr + fSize; } in cend() 38 constexpr size_t size() const { return fSize; } in size() 39 constexpr bool empty() const { return fSize == 0; } in empty() 40 constexpr size_t size_bytes() const { return fSize * sizeof(T); } in size_bytes() [all …]
|
/third_party/skia/src/utils/ |
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; 35 that.fSize = 0; 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() 73 return fSize; in size() [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/ |
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
|
/third_party/skia/include/core/ |
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()} {} in SkSpan() 38 fSize = that.fSize; 46 constexpr T& back() const { return fPtr[fSize - 1]; } in back() 48 constexpr T* end() const { return fPtr + fSize; } in end() 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 * sizeof(T); } in size_bytes() 72 size_t fSize; variable
|
/third_party/flutter/skia/bench/ |
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()
|
D | ChartBench.cpp | 94 fSize.fWidth = -1; in ChartBench() 95 fSize.fHeight = -1; in ChartBench() 109 if (canvas->getBaseLayerSize() != fSize) { in onDraw() 110 fSize = canvas->getBaseLayerSize(); in onDraw() 114 SkScalar ySpread = SkIntToScalar(fSize.fHeight / 20); in onDraw() 116 SkScalar height = SkIntToScalar(fSize.fHeight); in onDraw() 118 int dataPointCount = SkMax32(fSize.fWidth / kPixelsPerTick + 1, 2); in onDraw() 181 SkISize fSize; member in ChartBench
|
/third_party/skia/bench/ |
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()
|
D | ChartBench.cpp | 94 fSize.fWidth = -1; in ChartBench() 95 fSize.fHeight = -1; in ChartBench() 109 if (canvas->getBaseLayerSize() != fSize) { in onDraw() 110 fSize = canvas->getBaseLayerSize(); in onDraw() 114 SkScalar ySpread = SkIntToScalar(fSize.fHeight / 20); in onDraw() 116 SkScalar height = SkIntToScalar(fSize.fHeight); in onDraw() 118 int dataPointCount = std::max(fSize.fWidth / kPixelsPerTick + 1, 2); in onDraw() 181 SkISize fSize; member in ChartBench
|
/third_party/flutter/skia/tools/viewer/ |
D | ImGuiLayer.h | 38 fSize = ImVec2(availWidth, availWidth * aspect); 48 { fPos.x + fSize.x, fPos.y }, 49 { fPos.x , fPos.y + fSize.y }, 50 { fPos.x + fSize.x, fPos.y + fSize.y }, 57 ImGui::SetCursorScreenPos(ImVec2(fPos.x, fPos.y + fSize.y)); in ~DragCanvas() 63 fDrawList->AddRectFilled(fPos, ImVec2(fPos.x + fSize.x, fPos.y + fSize.y), color); in fillColor() 78 center.set(SkTPin(io.MousePos.x, fPos.x, fPos.x + fSize.x), 79 SkTPin(io.MousePos.y, fPos.y, fPos.y + fSize.y)); 100 ImVec2 fSize; member
|
/third_party/flutter/skia/tools/ |
D | HashAndEncode.cpp | 13 HashAndEncode::HashAndEncode(const SkBitmap& bitmap) : fSize(bitmap.info().dimensions()) { in HashAndEncode() 58 int N = fSize.width() * fSize.height(); in HashAndEncode() 69 st->write(&fSize, sizeof(fSize)); in write() 71 st->write(px, sizeof(*px) * fSize.width() * fSize.height()); in write() 127 png_set_IHDR(png, info, (png_uint_32)fSize.width() in writePngTo() 128 , (png_uint_32)fSize.height() in writePngTo() 148 for (int y = 0; y < fSize.height(); y++) { in writePngTo() 149 png_write_row(png, (png_bytep)(fPixels.get() + y*fSize.width())); in writePngTo()
|
/third_party/skia/tools/viewer/ |
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), 80 SkTPin(io.MousePos.y, fPos.y, fPos.y + fSize.y)); 101 ImVec2 fSize; member
|
/third_party/skia/modules/skottie/src/layers/shapelayer/ |
D | Ellipse.cpp | 30 this->bind(*abuilder, jellipse["s"], fSize); in EllipseGeometryAdapter() 36 const auto bounds = SkRect::MakeXYWH(fPosition.x - fSize.x / 2, in onSync() 37 fPosition.y - fSize.y / 2, in onSync() 38 fSize.x, fSize.y); in onSync() 43 Vec2Value fSize = {0,0}, member in skottie::internal::__anonb157692a0111::EllipseGeometryAdapter
|
D | Rectangle.cpp | 30 this->bind(*abuilder, jrect["s"], fSize ); in RectangleGeometryAdapter() 37 const auto bounds = SkRect::MakeXYWH(fPosition.x - fSize.x / 2, in onSync() 38 fPosition.y - fSize.y / 2, in onSync() 39 fSize.x, fSize.y); in onSync() 44 Vec2Value fSize = {0,0}, member in skottie::internal::__anon4c3487510111::RectangleGeometryAdapter
|
/third_party/flutter/skia/gm/ |
D | filterbitmap.cpp | 134 fSize, fNumChecks, fConvertToG8 ? "_g8" : ""); in onShortName() 138 : fSize(size), fNumChecks(num_checks), fConvertToG8(convertToG8) {} in FilterBitmapCheckerboardGM() 141 int fSize; member in FilterBitmapCheckerboardGM 145 return 192.f/fSize; in getScale() 149 fBM.allocN32Pixels(fSize, fSize); in makeBitmap() 150 for (int y = 0; y < fSize; y ++) { in makeBitmap() 151 for (int x = 0; x < fSize; x ++) { in makeBitmap() 153 int cx = (x * fNumChecks) / fSize; in makeBitmap() 154 int cy = (y * fNumChecks) / fSize; in makeBitmap() 175 int fSize; member in FilterBitmapImageGM [all …]
|
D | animatedimageblurs.cpp | 85 : fSize(0.0f) in Node() 94 fSize = rand->nextRangeF(10.0f, 60.f); in init() 95 fPos.fX = rand->nextRangeF(fSize, kWidth - fSize); in init() 96 fPos.fY = rand->nextRangeF(fSize, kHeight - fSize); in init() 126 SkScalar size() const { return fSize; } in size() 129 SkScalar fSize; member in AnimatedImageBlurs::Node
|
D | perlinnoise.cpp | 31 SkISize fSize = {80, 80}; member in __anon941db04f0111::PerlinNoiseGM 51 SkISize tileSize = SkISize::Make(fSize.width() / 2, fSize.height() / 2); in test() 68 drawRect(canvas, x, y, paint, fSize); in test() 107 SkISize fSize = {80, 80}; member in __anon941db04f0111::PerlinNoiseGM2 118 seed, stitchTiles ? &fSize : nullptr) : in install() 120 seed, stitchTiles ? &fSize : nullptr); in install() 130 const SkScalar w = SkIntToScalar(fSize.width()); in onDraw() 131 const SkScalar h = SkIntToScalar(fSize.height()); in onDraw()
|
/third_party/skia/tools/ |
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.height(); y++) { in encodePNG() 172 png_write_row(png, (png_bytep)(fPixels.get() + y*fSize.width())); in encodePNG()
|
/third_party/skia/src/gpu/effects/ |
D | GrMatrixConvolutionEffect.h | 59 KernelWrapper(const KernelWrapper& that) : fSize(that.fSize) { in KernelWrapper() 67 bool isValid() const { return !fSize.isEmpty(); } in isValid() 68 SkISize size() const { return fSize; } in size() 69 bool isSampled() const { return fSize.area() > kMaxUniformSize; } in isSampled() 81 KernelWrapper(SkISize size) : fSize(size) { in KernelWrapper() 87 SkISize fSize = {}; variable
|
/third_party/skia/gm/ |
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
|
D | perlinnoise.cpp | 31 SkISize fSize = {80, 80}; member in __anon7039115a0111::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 __anon7039115a0111::PerlinNoiseGM2 130 seed, stitchTiles ? &fSize : nullptr) : in install() 132 seed, stitchTiles ? &fSize : nullptr); in install() 142 const SkScalar w = SkIntToScalar(fSize.width()); in onDraw() 143 const SkScalar h = SkIntToScalar(fSize.height()); in onDraw()
|
/third_party/flutter/skia/include/atlastext/ |
D | SkAtlasTextFont.h | 26 SkScalar size() const { return fSize; } in size() 28 SkFont makeFont() const { return SkFont(fTypeface, fSize); } in makeFont() 32 : fTypeface(std::move(typeface)), fSize(size) {} in SkAtlasTextFont() 35 SkScalar fSize; variable
|