/external/skqp/tests/ |
D | MipMapTest.cpp | 73 SkISize size = SkMipMap::ComputeLevelSize(width, height, i); in test_mipmap_generation() 162 SkISize fExpectedMipMapLevelSize; 168 {-100, 100, 0, SkISize::Make(0, 0)}, in DEF_TEST() 169 {100, -100, 0, SkISize::Make(0, 0)}, in DEF_TEST() 170 {-100, -100, 0, SkISize::Make(0, 0)}, in DEF_TEST() 176 {0, 100, 0, SkISize::Make(0, 0)}, in DEF_TEST() 177 {100, 0, 0, SkISize::Make(0, 0)}, in DEF_TEST() 178 {0, 0, 0, SkISize::Make(0, 0)}, in DEF_TEST() 181 {1, 100, 0, SkISize::Make(1, 50)}, in DEF_TEST() 182 {100, 1, 0, SkISize::Make(50, 1)}, in DEF_TEST() [all …]
|
D | AndroidCodecTest.cpp | 28 static SkISize times(const SkISize& size, float factor) { in times() 32 static SkISize plus(const SkISize& size, int term) { in plus() 36 static bool invalid(const SkISize& size) { in invalid() 68 const SkISize downscales[] = { in DEF_TEST() 79 for (SkISize size : downscales) { in DEF_TEST() 103 const SkISize upscales[] = { in DEF_TEST() 106 for (SkISize size : upscales) { in DEF_TEST() 119 const SkISize sampledDims = codec->getSampledDimensions(sampleSize); in DEF_TEST() 120 SkISize size = sampledDims; in DEF_TEST() 218 const SkISize expectedDims = { 100, 80 }; in DEF_TEST()
|
D | GpuRectanizerTest.cpp | 33 const SkTDArray<SkISize>& rects) { in test_rectanizer_inserts() 45 static void test_skyline(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects) { in test_skyline() 52 static void test_pow2(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects) { in test_pow2() 60 SkTDArray<SkISize> rects; in DEF_GPUTEST() 64 rects.push_back(SkISize::Make(rand.nextRangeU(1, kWidth / 2), in DEF_GPUTEST()
|
/external/skqp/include/core/ |
D | SkSize.h | 13 struct SkISize { struct 17 static SkISize Make(int32_t w, int32_t h) { return {w, h}; } in Make() argument 19 static SkISize MakeEmpty() { return {0, 0}; } in MakeEmpty() argument 21 void set(int32_t w, int32_t h) { *this = SkISize{w, h}; } in set() argument 39 static inline bool operator==(const SkISize& a, const SkISize& b) { argument 43 static inline bool operator!=(const SkISize& a, const SkISize& b) { return !(a == b); } 53 static SkSize Make(const SkISize& src) { in Make() 57 SkSize& operator=(const SkISize& src) { 80 SkISize toRound() const { return {SkScalarRoundToInt(fWidth), SkScalarRoundToInt(fHeight)}; } in toRound() 82 SkISize toCeil() const { return {SkScalarCeilToInt(fWidth), SkScalarCeilToInt(fHeight)}; } in toCeil() [all …]
|
/external/skia/include/core/ |
D | SkSize.h | 13 struct SkISize { struct 17 static constexpr SkISize Make(int32_t w, int32_t h) { return {w, h}; } in Make() argument 19 static constexpr SkISize MakeEmpty() { return {0, 0}; } in MakeEmpty() argument 21 void set(int32_t w, int32_t h) { *this = SkISize{w, h}; } in set() argument 41 static inline bool operator==(const SkISize& a, const SkISize& b) { argument 45 static inline bool operator!=(const SkISize& a, const SkISize& b) { return !(a == b); } 55 static SkSize Make(const SkISize& src) { in Make() 78 SkISize toRound() const { return {SkScalarRoundToInt(fWidth), SkScalarRoundToInt(fHeight)}; } in toRound() 80 SkISize toCeil() const { return {SkScalarCeilToInt(fWidth), SkScalarCeilToInt(fHeight)}; } in toCeil() 82 SkISize toFloor() const { return {SkScalarFloorToInt(fWidth), SkScalarFloorToInt(fHeight)}; } in toFloor()
|
/external/skia/tests/ |
D | MipMapTest.cpp | 74 SkISize size = SkMipmap::ComputeLevelSize(width, height, i); in test_mipmap_generation() 163 SkISize fExpectedMipMapLevelSize; 169 {-100, 100, 0, SkISize::Make(0, 0)}, in DEF_TEST() 170 {100, -100, 0, SkISize::Make(0, 0)}, in DEF_TEST() 171 {-100, -100, 0, SkISize::Make(0, 0)}, in DEF_TEST() 177 {0, 100, 0, SkISize::Make(0, 0)}, in DEF_TEST() 178 {100, 0, 0, SkISize::Make(0, 0)}, in DEF_TEST() 179 {0, 0, 0, SkISize::Make(0, 0)}, in DEF_TEST() 182 {1, 100, 0, SkISize::Make(1, 50)}, in DEF_TEST() 183 {100, 1, 0, SkISize::Make(50, 1)}, in DEF_TEST() [all …]
|
D | AndroidCodecTest.cpp | 32 static SkISize times(const SkISize& size, float factor) { in times() 36 static SkISize plus(const SkISize& size, int term) { in plus() 40 static bool invalid(const SkISize& size) { in invalid() 72 const SkISize downscales[] = { in DEF_TEST() 83 for (SkISize size : downscales) { in DEF_TEST() 107 const SkISize upscales[] = { in DEF_TEST() 110 for (SkISize size : upscales) { in DEF_TEST() 123 const SkISize sampledDims = codec->getSampledDimensions(sampleSize); in DEF_TEST() 124 SkISize size = sampledDims; in DEF_TEST()
|
D | NdkDecodeTest.cpp | 34 SkISize fSize; in DEF_TEST() 244 for (SkISize dims : { in DEF_TEST() 245 SkISize{width*2, height*2}, in DEF_TEST() 246 SkISize{width + 1, height + 1}, in DEF_TEST() 269 for (SkISize dims : { in DEF_TEST() 270 SkISize{width/2, height/2}, in DEF_TEST() 271 SkISize{width/4, height/4}, in DEF_TEST() 272 SkISize{width/7, height/7}, in DEF_TEST() 273 SkISize{width - 1, height - 1}, in DEF_TEST() 274 SkISize{1, 1}, in DEF_TEST() [all …]
|
D | GpuRectanizerTest.cpp | 33 const SkTDArray<SkISize>& rects) { in test_rectanizer_inserts() 45 static void test_skyline(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects) { in test_skyline() 52 static void test_pow2(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects) { in test_pow2() 60 SkTDArray<SkISize> rects; in DEF_GPUTEST() 64 rects.push_back(SkISize::Make(rand.nextRangeU(1, kWidth / 2), in DEF_GPUTEST()
|
/external/skqp/gm/ |
D | pictureimagegenerator.cpp | 107 SkISize onISize() override { in onISize() 108 return SkISize::Make(1160, 860); in onISize() 121 SkISize size; in onDraw() 125 { SkISize::Make(200, 100), 1, 1, 1 }, in onDraw() 126 { SkISize::Make(200, 200), 1, 1, 1 }, in onDraw() 127 { SkISize::Make(200, 200), 1, 2, 1 }, in onDraw() 128 { SkISize::Make(400, 200), 2, 2, 1 }, in onDraw() 130 { SkISize::Make(200, 100), 1, 1, 0.9f }, in onDraw() 131 { SkISize::Make(200, 200), 1, 1, 0.75f }, in onDraw() 132 { SkISize::Make(200, 200), 1, 2, 0.5f }, in onDraw() [all …]
|
D | perlinnoise.cpp | 25 fSize = SkISize::Make(80, 80); in PerlinNoiseGM() 33 virtual SkISize onISize() { in onISize() 34 return SkISize::Make(200, 500); in onISize() 37 void drawRect(SkCanvas* canvas, int x, int y, const SkPaint& paint, const SkISize& size) { in drawRect() 49 SkISize tileSize = SkISize::Make(fSize.width() / 2, fSize.height() / 2); in test() 102 SkISize fSize; 108 fSize = SkISize::Make(80, 80); in PerlinNoiseGM2() 116 virtual SkISize onISize() { in onISize() 117 return SkISize::Make(640, 480); in onISize() 184 SkISize fSize;
|
/external/skia/gm/ |
D | pictureimagegenerator.cpp | 124 SkISize onISize() override { in onISize() 125 return SkISize::Make(1160, 860); in onISize() 138 SkISize size; in onDraw() 142 { SkISize::Make(200, 100), 1, 1, 1 }, in onDraw() 143 { SkISize::Make(200, 200), 1, 1, 1 }, in onDraw() 144 { SkISize::Make(200, 200), 1, 2, 1 }, in onDraw() 145 { SkISize::Make(400, 200), 2, 2, 1 }, in onDraw() 147 { SkISize::Make(200, 100), 1, 1, 0.9f }, in onDraw() 148 { SkISize::Make(200, 200), 1, 1, 0.75f }, in onDraw() 149 { SkISize::Make(200, 200), 1, 2, 0.5f }, in onDraw() [all …]
|
/external/skqp/bench/ |
D | DrawLatticeBench.cpp | 16 DrawLatticeBench(int* xDivs, int xCount, int* yDivs, int yCount, const SkISize& srcSize, in DrawLatticeBench() 56 SkISize fSrcSize; 66 DEF_BENCH(return new DrawLatticeBench(gDivs9, 2, gDivs9, 2, SkISize::Make(100, 100), 68 DEF_BENCH(return new DrawLatticeBench(gDivs9, 2, gDivs9, 2, SkISize::Make(100, 100), 70 DEF_BENCH(return new DrawLatticeBench(gDivs9, 2, gDivs9, 2, SkISize::Make(100, 100), 73 DEF_BENCH(return new DrawLatticeBench(gDivs15, 4, gDivs15, 4, SkISize::Make(100, 100), 75 DEF_BENCH(return new DrawLatticeBench(gDivs15, 4, gDivs15, 4, SkISize::Make(100, 100), 77 DEF_BENCH(return new DrawLatticeBench(gDivs15, 4, gDivs15, 4, SkISize::Make(100, 100),
|
D | ShapesBench.cpp | 49 int numShapes, const SkISize& shapesSize, bool perspective) in ShapesBench() 235 SkISize fShapesSize; 255 10000, SkISize::Make(32, 32), false);) 257 10000, SkISize::Make(32, 32), false);) 259 10000, SkISize::Make(32, 33), false);) 261 10000, SkISize::Make(32, 32), false);) 263 10000, SkISize::Make(32, 33), false);) 267 100, SkISize::Make(500, 500), false);) 269 100, SkISize::Make(500, 500), false);) 271 100, SkISize::Make(500, 501), false);) [all …]
|
/external/skia/bench/ |
D | ShapesBench.cpp | 51 int numShapes, const SkISize& shapesSize, bool perspective) in ShapesBench() 237 SkISize fShapesSize; 257 10000, SkISize::Make(32, 32), false);) 259 10000, SkISize::Make(32, 32), false);) 261 10000, SkISize::Make(32, 33), false);) 263 10000, SkISize::Make(32, 32), false);) 265 10000, SkISize::Make(32, 33), false);) 269 100, SkISize::Make(500, 500), false);) 271 100, SkISize::Make(500, 500), false);) 273 100, SkISize::Make(500, 501), false);) [all …]
|
/external/skia/src/gpu/ |
D | GrResourceProvider.h | 63 sk_sp<GrTexture> createApproxTexture(SkISize dimensions, 70 sk_sp<GrTexture> createTexture(SkISize dimensions, 83 sk_sp<GrTexture> createTexture(SkISize dimensions, 98 sk_sp<GrTexture> createTexture(SkISize dimensions, 113 sk_sp<GrTexture> findAndRefScratchTexture(SkISize dimensions, 124 sk_sp<GrTexture> createCompressedTexture(SkISize dimensions, 275 sk_sp<GrAttachment> makeMSAAAttachment(SkISize dimensions, 306 static SkISize MakeApprox(SkISize); 318 sk_sp<GrTexture> getExactScratch(SkISize dimensions, 328 sk_sp<GrAttachment> refScratchMSAAAttachment(SkISize dimensions, [all …]
|
D | GrDataUtils.h | 20 size_t GrNumBlocks(SkImage::CompressionType, SkISize baseDimensions); 28 SkISize GrCompressedDimensions(SkImage::CompressionType, SkISize baseDimensions); 33 size_t GrComputeTightCombinedBufferSize(size_t bytesPerPixel, SkISize baseDimensions, 36 void GrFillInCompressedData(SkImage::CompressionType, SkISize dimensions, GrMipmapped, char* dest,
|
D | GrImageInfo.h | 25 GrImageInfo(GrColorType ct, SkAlphaType at, sk_sp<SkColorSpace> cs, const SkISize& dimensions) in GrImageInfo() 28 GrImageInfo(const GrColorInfo& info, const SkISize& dimensions) in GrImageInfo() 31 GrImageInfo(GrColorInfo&& info, const SkISize& dimensions) in GrImageInfo() 51 GrImageInfo makeDimensions(SkISize dimensions) const { in makeDimensions() 69 SkISize dimensions() const { return fDimensions; } in dimensions() 83 SkISize fDimensions;
|
/external/skia/src/gpu/mtl/ |
D | GrMtlTextureRenderTarget.h | 18 SkISize, 24 SkISize, 46 SkISize, 54 SkISize, 59 SkISize, 67 SkISize,
|
D | GrMtlTexture.h | 21 SkISize, 26 SkISize, 44 GrMtlTexture(GrMtlGpu*, SkISize, id<MTLTexture>, GrMipmapStatus); 64 GrMtlTexture(GrMtlGpu*, SkBudgeted, SkISize, id<MTLTexture>, GrMipmapStatus); 68 SkISize,
|
D | GrMtlRenderTarget.h | 25 SkISize, 45 SkISize, 50 GrMtlRenderTarget(GrMtlGpu* gpu, SkISize, id<MTLTexture> colorTexture); 77 SkISize, 82 GrMtlRenderTarget(GrMtlGpu* gpu, SkISize, id<MTLTexture> colorTexture, Wrapped);
|
/external/skia/src/gpu/vk/ |
D | GrVkAttachment.h | 23 SkISize dimensions, 28 SkISize dimensions, 34 SkISize dimensions, 43 SkISize dimensions, 75 SkISize dimensions, 85 SkISize dimensions, 94 SkISize dimensions,
|
D | GrVkTexture.h | 26 SkISize dimensions, 33 SkISize dimensions, 62 SkISize dimensions, 83 GrVkTexture(GrVkGpu*, SkBudgeted, SkISize, sk_sp<GrVkAttachment> texture, GrMipmapStatus); 84 GrVkTexture(GrVkGpu*, SkISize, sk_sp<GrVkAttachment> texture, GrMipmapStatus,
|
/external/skia/src/gpu/d3d/ |
D | GrD3DTextureRenderTarget.h | 29 SkISize dimensions, 36 GrD3DGpu*, SkISize dimensions, int sampleCnt, GrWrapCacheable, 58 SkISize dimensions, 71 SkISize dimensions, 80 SkISize dimensions, 93 SkISize dimensions,
|
D | GrD3DTexture.h | 21 SkISize dimensions, 27 SkISize dimensions, 48 SkISize dimensions, 64 GrD3DTexture(GrD3DGpu*, SkBudgeted, SkISize dimensions, const GrD3DTextureResourceInfo&, 68 GrD3DTexture(GrD3DGpu*, SkISize dimensions, const GrD3DTextureResourceInfo&,
|