/external/skqp/samplecode/ |
D | SampleSubpixelTranslate.cpp | 35 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 …]
|
D | SampleChart.cpp | 87 fSize.set(-1, -1); in ChartView() 101 if (canvas->getBaseLayerSize() != fSize) { in onDrawContent() 102 fSize = canvas->getBaseLayerSize(); in onDrawContent() 106 SkScalar ySpread = SkIntToScalar(fSize.fHeight / 20); in onDrawContent() 108 SkScalar height = SkIntToScalar(fSize.fHeight); in onDrawContent() 111 int dataPointCount = SkMax32(fSize.fWidth / kPixelsPerTick + 1, 2); in onDrawContent() 175 SkISize fSize; member in ChartView
|
/external/skia/samplecode/ |
D | SampleSubpixelTranslate.cpp | 35 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/ |
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 | 18 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() 26 fSize = that.fSize; 31 constexpr T* end() const { return fPtr + fSize; } in end() 33 constexpr const T* cend() const { return fPtr + fSize; } in cend() 35 constexpr size_t size() const { return fSize; } in size() 36 constexpr bool empty() const { return fSize == 0; } in empty() 37 constexpr size_t size_bytes() const { return fSize * sizeof(T); } in size_bytes() [all …]
|
D | SkStream.cpp | 158 , fSize(size) in SkFILEStream() 159 , fOffset(SkTMin(offset, fSize)) in SkFILEStream() 160 , fOriginalOffset(SkTMin(originalOffset, fSize)) in SkFILEStream() 184 fSize = 0; in close() 189 if (size > fSize - fOffset) { in read() 190 size = fSize - fOffset; in read() 204 if (fOffset == fSize) { in isAtEnd() 216 return new SkFILEStream(fFILE, fSize, fOriginalOffset, fOriginalOffset); in onDuplicate() 225 fOffset = SkTMin(SkSafeMath::Add(position, fOriginalOffset), fSize); in seek() 239 fOffset = fSize; in move() [all …]
|
/external/skqp/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 | 18 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 …]
|
D | SkStream.cpp | 158 , fSize(size) in SkFILEStream() 159 , fOffset(SkTMin(offset, fSize)) in SkFILEStream() 160 , fOriginalOffset(SkTMin(originalOffset, fSize)) in SkFILEStream() 184 fSize = 0; in close() 189 if (size > fSize - fOffset) { in read() 190 size = fSize - fOffset; in read() 204 if (fOffset == fSize) { in isAtEnd() 216 return new SkFILEStream(fFILE, fSize, fOriginalOffset, fOriginalOffset); in onDuplicate() 225 fOffset = SkTMin(SkSafeMath::Add(position, fOriginalOffset), fSize); in seek() 239 fOffset = fSize; in move() [all …]
|
/external/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
|
/external/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
|
/external/skqp/gm/ |
D | filterbitmap.cpp | 143 : 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 …]
|
D | perlinnoise.cpp | 25 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
|
D | animatedimageblurs.cpp | 77 : 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/gm/ |
D | filterbitmap.cpp | 143 : 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 …]
|
D | perlinnoise.cpp | 25 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
|
D | animatedimageblurs.cpp | 77 : 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/skqp/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
|
/external/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
|
/external/skqp/src/gpu/ |
D | GrMemoryPool.cpp | 38 fSize = 0; in GrMemoryPool() 82 fSize += block->fSize; in allocate() 123 fHead->fFreeSize = fHead->fSize - kHeaderSize; in release() 135 fSize -= block->fSize; in release() 162 block->fSize = blockSize; in CreateBlock() 198 SkASSERT(totalSize == block->fSize); in validate() 215 SkASSERT(fAllocBlockCnt != 0 || fSize == 0); in validate()
|
/external/skia/src/gpu/ |
D | GrMemoryPool.cpp | 38 fSize = 0; in GrMemoryPool() 82 fSize += block->fSize; in allocate() 123 fHead->fFreeSize = fHead->fSize - kHeaderSize; in release() 135 fSize -= block->fSize; in release() 162 block->fSize = blockSize; in CreateBlock() 198 SkASSERT(totalSize == block->fSize); in validate() 215 SkASSERT(fAllocBlockCnt != 0 || fSize == 0); in validate()
|
/external/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
|
/external/skqp/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
|