Home
last modified time | relevance | path

Searched refs:SkISize (Results 1 – 25 of 912) sorted by relevance

12345678910>>...37

/external/skia/tests/
DMipMapTest.cpp73 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 …]
DAndroidCodecTest.cpp28 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()
DGpuRectanizerTest.cpp33 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()
DCodecTest.cpp172 const SkImageInfo& info, const SkISize& size, SkCodec::Result expectedResult, in test_codec()
283 SkISize size, in check()
473 check(r, "images/mandrill.wbmp", SkISize::Make(512, 512), true, false, true); in DEF_TEST()
477 check(r, "images/baby_tux.webp", SkISize::Make(386, 395), false, true, true); in DEF_TEST()
478 check(r, "images/color_wheel.webp", SkISize::Make(128, 128), false, true, true); in DEF_TEST()
479 check(r, "images/yellow_rose.webp", SkISize::Make(400, 301), false, true, true); in DEF_TEST()
483 check(r, "images/randPixels.bmp", SkISize::Make(8, 8), true, false, true); in DEF_TEST()
484 check(r, "images/rle.bmp", SkISize::Make(320, 240), true, false, true); in DEF_TEST()
491 check(r, "images/color_wheel.ico", SkISize::Make(128, 128), true, false, false); in DEF_TEST()
493 check(r, "images/google_chrome.ico", SkISize::Make(256, 256), false, false, false, true); in DEF_TEST()
[all …]
/external/skqp/tests/
DMipMapTest.cpp73 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 …]
DAndroidCodecTest.cpp28 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()
DGpuRectanizerTest.cpp33 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()
DCodecTest.cpp172 const SkImageInfo& info, const SkISize& size, SkCodec::Result expectedResult, in test_codec()
283 SkISize size, in check()
473 check(r, "images/mandrill.wbmp", SkISize::Make(512, 512), true, false, true); in DEF_TEST()
477 check(r, "images/baby_tux.webp", SkISize::Make(386, 395), false, true, true); in DEF_TEST()
478 check(r, "images/color_wheel.webp", SkISize::Make(128, 128), false, true, true); in DEF_TEST()
479 check(r, "images/yellow_rose.webp", SkISize::Make(400, 301), false, true, true); in DEF_TEST()
483 check(r, "images/randPixels.bmp", SkISize::Make(8, 8), true, false, true); in DEF_TEST()
484 check(r, "images/rle.bmp", SkISize::Make(320, 240), true, false, true); in DEF_TEST()
491 check(r, "images/color_wheel.ico", SkISize::Make(128, 128), true, false, false); in DEF_TEST()
493 check(r, "images/google_chrome.ico", SkISize::Make(256, 256), false, false, false, true); in DEF_TEST()
[all …]
/external/skqp/include/core/
DSkSize.h13 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/
DSkSize.h13 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/gm/
Dpictureimagegenerator.cpp107 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 …]
Dperlinnoise.cpp25 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;
Dbitmaprect.cpp44 SkISize onISize() override { in onISize()
45 return SkISize::Make(640, 480); in onISize()
134 SkISize onISize() override { in onISize()
135 return SkISize::Make(640, 480); in onISize()
193 SkISize onISize() override { in onISize()
194 return SkISize::Make(640, 480); in onISize()
240 SkISize onISize() override { in onISize()
241 return SkISize::Make(640, 480); in onISize()
/external/skqp/gm/
Dpictureimagegenerator.cpp107 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 …]
Dperlinnoise.cpp25 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;
Dbitmaprect.cpp44 SkISize onISize() override { in onISize()
45 return SkISize::Make(640, 480); in onISize()
134 SkISize onISize() override { in onISize()
135 return SkISize::Make(640, 480); in onISize()
193 SkISize onISize() override { in onISize()
194 return SkISize::Make(640, 480); in onISize()
240 SkISize onISize() override { in onISize()
241 return SkISize::Make(640, 480); in onISize()
Dgm.h42 SkISize::Make(W, H), BGCOLOR);) \
65 SkISize getISize() { return this->onISize(); } in getISize()
105 virtual SkISize onISize() = 0;
128 const SkISize& size, in SimpleGM()
137 SkISize onISize() override;
142 SkISize fSize;
/external/skia/bench/
DShapesBench.cpp49 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 …]
DDrawLatticeBench.cpp16 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),
/external/skqp/bench/
DShapesBench.cpp49 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 …]
DDrawLatticeBench.cpp16 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),
/external/skqp/src/gpu/effects/
DGrMatrixConvolutionEffect.h21 const SkISize& kernelSize, in Make()
35 const SkISize& kernelSize,
45 const SkISize& kernelSize() const { return fKernelSize; } in kernelSize()
62 const SkISize& kernelSize,
84 SkISize fKernelSize;
/external/skia/src/gpu/effects/
DGrMatrixConvolutionEffect.h21 const SkISize& kernelSize, in Make()
35 const SkISize& kernelSize,
45 const SkISize& kernelSize() const { return fKernelSize; } in kernelSize()
62 const SkISize& kernelSize,
84 SkISize fKernelSize;
/external/skqp/modules/skottie/gm/
DSkottieGM.cpp52 SkISize onISize() override { in onISize()
53 return SkISize::Make(kSize, kSize); in onISize()
101 SkISize onISize() override { in onISize()
102 return SkISize::Make(kSize, kSize); in onISize()
174 SkISize onISize() override { in onISize()
175 return SkISize::Make(kSize, kSize); in onISize()
/external/skia/modules/skottie/gm/
DSkottieGM.cpp52 SkISize onISize() override { in onISize()
53 return SkISize::Make(kSize, kSize); in onISize()
103 SkISize onISize() override { in onISize()
104 return SkISize::Make(kSize, kSize); in onISize()
178 SkISize onISize() override { in onISize()
179 return SkISize::Make(kSize, kSize); in onISize()

12345678910>>...37