Home
last modified time | relevance | path

Searched refs:fSize (Results 1 – 25 of 183) sorted by relevance

12345678

/external/skqp/samplecode/
DSampleSubpixelTranslate.cpp35 fSize = 200; in SubpixelTranslateView()
40 SkScalar fSize; member in SubpixelTranslateView
69 SkRect r = SkRect::MakeXYWH( fCurPos.fX + i * (fSize + 10), fCurPos.fY, fSize, fSize ); in onDrawContent()
73 canvas->drawString("AA Scaled", fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (fSize + 10), in onDrawContent()
74 fCurPos.fY + fSize/2, font, paint); in onDrawContent()
80 …SkRect r = SkRect::MakeXYWH( fCurPos.fX + i * (fSize + 10), fCurPos.fY + fSize + 10, fSize, fSize in onDrawContent()
83 canvas->drawString("Scaled", fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (fSize + 10), in onDrawContent()
84 fCurPos.fY + fSize + 10 + fSize/2, font, paint); in onDrawContent()
90 …canvas->drawBitmap( fBM, fCurPos.fX + i * (fBM.width() + 10), fCurPos.fY + 2*(fSize + 10), &paint … in onDrawContent()
95 fCurPos.fY + 2*(fSize + 10) + fSize/2, font, paint); in onDrawContent()
[all …]
/external/skia/src/core/
DSkAutoMalloc.h26 : 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 …]
/external/skqp/src/core/
DSkAutoMalloc.h26 : 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 …]
DSkSpan.h18 constexpr SkSpan(T(&t)[N]) : fPtr(t), fSize(N) {} in SkSpan()
19 constexpr SkSpan() : fPtr{nullptr}, fSize{0} {} in SkSpan()
20 constexpr SkSpan(T* ptr, size_t size) : fPtr{ptr}, fSize{size} {} in SkSpan()
22 constexpr explicit SkSpan(std::vector<U>& v) : fPtr{v.data()}, fSize{v.size()} {} in SkSpan()
27 constexpr T* end() const { return fPtr + fSize; } in end()
29 constexpr const T* cend() const { return fPtr + fSize; } in cend()
31 constexpr size_t size() const { return fSize; } in size()
32 constexpr bool empty() const { return fSize == 0; } in empty()
33 constexpr size_t size_bytes() const { return fSize * sizeof(T); } in size_bytes()
34 constexpr SkSpan<const T> toConst() const { return SkSpan<const T>{fPtr, fSize}; } in toConst()
[all …]
/external/skia/src/utils/
DSkBitSet.h22 : fSize(size) in SkBitSet()
24 , fChunks((Chunk*)sk_calloc_throw(NumChunksFor(fSize) * sizeof(Chunk))) in SkBitSet()
32 this->fSize = that.fSize;
34 that.fSize = 0;
42 SkASSERT(index < fSize); in set()
49 const size_t numChunks = NumChunksFor(fSize); in set()
55 SkASSERT(index < fSize); in reset()
62 const size_t numChunks = NumChunksFor(fSize); in reset()
67 SkASSERT(index < fSize); in test()
72 return fSize; in size()
[all …]
/external/skia/include/core/
DSkSpan.h28 constexpr SkSpan() : fPtr{nullptr}, fSize{0} {} in SkSpan()
29 constexpr SkSpan(T* ptr, size_t size) : fPtr{ptr}, fSize{size} {} in SkSpan()
31 constexpr SkSpan(const SkSpan<U>& that) : fPtr(that.data()), fSize{that.size()} {} in SkSpan()
36 fSize = that.fSize;
44 constexpr T& back() const { return fPtr[fSize - 1]; } in back()
46 constexpr T* end() const { return fPtr + fSize; } in end()
50 constexpr size_t size() const { return fSize; } in size()
51 constexpr bool empty() const { return fSize == 0; } in empty()
52 constexpr size_t size_bytes() const { return fSize * sizeof(T); } in size_bytes()
69 size_t fSize; variable
/external/swiftshader/src/OpenGL/compiler/
DMMap.h25 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
/external/skia/tools/viewer/
DImGuiLayer.h39 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
/external/skia/bench/
DPerlinNoiseBench.cpp13 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()
DChartBench.cpp94 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
/external/skqp/bench/
DPerlinNoiseBench.cpp13 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()
DChartBench.cpp94 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
/external/skqp/gm/
Dfilterbitmap.cpp143 : fSize(size), fNumChecks(num_checks), fConvertToG8(convertToG8) in FilterBitmapCheckerboardGM()
146 fSize, fNumChecks, convertToG8 ? "_g8" : ""); in FilterBitmapCheckerboardGM()
150 int fSize; member in FilterBitmapCheckerboardGM
154 return 192.f/fSize; in getScale()
158 fBM.allocN32Pixels(fSize, fSize); in makeBitmap()
159 for (int y = 0; y < fSize; y ++) { in makeBitmap()
160 for (int x = 0; x < fSize; x ++) { in makeBitmap()
162 int cx = (x * fNumChecks) / fSize; in makeBitmap()
163 int cy = (y * fNumChecks) / fSize; in makeBitmap()
192 int fSize; member in FilterBitmapImageGM
[all …]
Dperlinnoise.cpp25 fSize = SkISize::Make(80, 80); in PerlinNoiseGM()
49 SkISize tileSize = SkISize::Make(fSize.width() / 2, fSize.height() / 2); in test()
66 drawRect(canvas, x, y, paint, fSize); in test()
102 SkISize fSize; member in PerlinNoiseGM
108 fSize = SkISize::Make(80, 80); in PerlinNoiseGM2()
125 seed, stitchTiles ? &fSize : nullptr) : in install()
127 seed, stitchTiles ? &fSize : nullptr); in install()
137 const SkScalar w = SkIntToScalar(fSize.width()); in onDraw()
138 const SkScalar h = SkIntToScalar(fSize.height()); in onDraw()
184 SkISize fSize; member in PerlinNoiseGM2
Danimatedimageblurs.cpp77 : fSize(0.0f) in Node()
86 fSize = rand->nextRangeF(10.0f, 60.f); in init()
87 fPos.fX = rand->nextRangeF(fSize, kWidth - fSize); in init()
88 fPos.fY = rand->nextRangeF(fSize, kHeight - fSize); in init()
119 SkScalar size() const { return fSize; } in size()
122 SkScalar fSize; member in AnimatedImageBlurs::Node
/external/skia/modules/skottie/src/layers/shapelayer/
DEllipse.cpp30 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::__anon190d04db0111::EllipseGeometryAdapter
DRectangle.cpp30 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::__anon77bfd3420111::RectangleGeometryAdapter
/external/skia/tools/
DHashAndEncode.cpp13 HashAndEncode::HashAndEncode(const SkBitmap& bitmap) : fSize(bitmap.info().dimensions()) { in HashAndEncode()
68 int N = fSize.width() * fSize.height(); in HashAndEncode()
88 st->write(&fSize, sizeof(fSize)); in feedHash()
90 st->write(px, sizeof(*px) * fSize.width() * fSize.height()); in feedHash()
149 png_set_IHDR(png, info, (png_uint_32)fSize.width() in encodePNG()
150 , (png_uint_32)fSize.height() in encodePNG()
170 for (int y = 0; y < fSize.height(); y++) { in encodePNG()
171 png_write_row(png, (png_bytep)(fPixels.get() + y*fSize.width())); in encodePNG()
/external/zstd/examples/
Dsimple_compression.c19 size_t fSize; in compress_orDie() local
20 void* const fBuff = mallocAndLoadFile_orDie(fname, &fSize); in compress_orDie()
21 size_t const cBuffSize = ZSTD_compressBound(fSize); in compress_orDie()
28 size_t const cSize = ZSTD_compress(cBuff, cBuffSize, fBuff, fSize, 1); in compress_orDie()
34 printf("%25s : %6u -> %7u - %s \n", fname, (unsigned)fSize, (unsigned)cSize, oname); in compress_orDie()
/external/skia/src/gpu/effects/
DGrMatrixConvolutionEffect.h68 KernelWrapper(const KernelWrapper& that) : fSize(that.fSize) { in KernelWrapper()
76 bool isValid() const { return !fSize.isEmpty(); } in isValid()
77 SkISize size() const { return fSize; } in size()
78 bool isSampled() const { return fSize.area() > kMaxUniformSize; } in isSampled()
90 KernelWrapper(SkISize size) : fSize(size) { in KernelWrapper()
96 SkISize fSize = {}; variable
/external/skia/gm/
Danimatedimageblurs.cpp86 : 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
Dperlinnoise.cpp31 SkISize fSize = {80, 80}; member in __anonb3271f2b0111::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 __anonb3271f2b0111::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()
/external/skia/src/gpu/
DGrBlockAllocator.cpp34 , 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 …]
/external/skqp/include/atlastext/
DSkAtlasTextFont.h26 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
/external/skia/modules/skottie/src/layers/
DPrecompLayer.cpp100 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::AnimationBuilder::attachExternalPrecompLayer::SGAdapter
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()
192 CompositionBuilder(*this, layer_info->fSize, *precomp_asset).build(*this); in attachPrecompLayer()

12345678