Home
last modified time | relevance | path

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

12345678910>>...17

/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 …]
DGpuRectanizerTest.cpp35 const SkTDArray<SkISize>& rects) { in test_rectanizer_inserts()
47 static void test_skyline(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects) { in test_skyline()
54 static void test_pow2(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects) { in test_pow2()
62 SkTDArray<SkISize> rects; in DEF_GPUTEST()
66 rects.push(SkISize::Make(rand.nextRangeU(1, kWidth / 2), in DEF_GPUTEST()
DCodecTest.cpp155 const SkISize& size, SkCodec::Result expectedResult, SkMD5::Digest* digest, in test_codec()
264 SkISize size, in check()
470 check(r, "mandrill.wbmp", SkISize::Make(512, 512), true, false, true); in DEF_TEST()
474 check(r, "baby_tux.webp", SkISize::Make(386, 395), false, true, true); in DEF_TEST()
475 check(r, "color_wheel.webp", SkISize::Make(128, 128), false, true, true); in DEF_TEST()
476 check(r, "yellow_rose.webp", SkISize::Make(400, 301), false, true, true); in DEF_TEST()
480 check(r, "randPixels.bmp", SkISize::Make(8, 8), true, false, true); in DEF_TEST()
481 check(r, "rle.bmp", SkISize::Make(320, 240), true, false, true); in DEF_TEST()
488 check(r, "color_wheel.ico", SkISize::Make(128, 128), true, false, false); in DEF_TEST()
490 check(r, "google_chrome.ico", SkISize::Make(256, 256), false, false, false, true); in DEF_TEST()
[all …]
/external/skia/gm/
Dpictureimagegenerator.cpp103 SkISize onISize() override { in onISize()
104 return SkISize::Make(1160, 860); in onISize()
117 SkISize size; in onDraw()
121 { SkISize::Make(200, 100), 1, 1, 1 }, in onDraw()
122 { SkISize::Make(200, 200), 1, 1, 1 }, in onDraw()
123 { SkISize::Make(200, 200), 1, 2, 1 }, in onDraw()
124 { SkISize::Make(400, 200), 2, 2, 1 }, in onDraw()
126 { SkISize::Make(200, 100), 1, 1, 0.9f }, in onDraw()
127 { SkISize::Make(200, 200), 1, 1, 0.75f }, in onDraw()
128 { SkISize::Make(200, 200), 1, 2, 0.5f }, in onDraw()
[all …]
Dperlinnoise.cpp15 fSize = SkISize::Make(80, 80); in PerlinNoiseGM()
23 virtual SkISize onISize() { in onISize()
24 return SkISize::Make(200, 500); in onISize()
27 void drawRect(SkCanvas* canvas, int x, int y, const SkPaint& paint, const SkISize& size) { in drawRect()
39 SkISize tileSize = SkISize::Make(fSize.width() / 2, fSize.height() / 2); in test()
92 SkISize fSize;
98 fSize = SkISize::Make(80, 80); in PerlinNoiseGM2()
106 virtual SkISize onISize() { in onISize()
107 return SkISize::Make(640, 480); in onISize()
174 SkISize fSize;
Daddarc.cpp22 SkISize onISize() override { return SkISize::Make(1040, 1040); } in onISize()
77 SkISize onISize() override { return SkISize::Make(2*R + 40, 2*R + 40); } in onISize()
128 SkISize onISize() override { return SkISize::Make(520, 520); } in onISize()
178 SkISize onISize() override { return SkISize::Make(520, 520); } in onISize()
240 SkISize onISize() override { return SkISize::Make(620, 330); } in onISize()
299 SkISize onISize() override { return SkISize::Make(620, 330); } in onISize()
Dgradtext.cpp45 virtual SkISize onISize() { return SkISize::Make(500, 480); } in onISize()
74 virtual SkISize onISize() { return SkISize::Make(500, 480); } in onISize()
107 SkISize onISize() override { return SkISize::Make(500, 480); } in onISize()
133 const SkISize& size = this->getISize(); in onDraw()
Dbitmaprect.cpp45 SkISize onISize() override { in onISize()
46 return SkISize::Make(640, 480); in onISize()
135 SkISize onISize() override { in onISize()
136 return SkISize::Make(640, 480); in onISize()
194 SkISize onISize() override { in onISize()
195 return SkISize::Make(640, 480); in onISize()
241 SkISize onISize() override { in onISize()
242 return SkISize::Make(640, 480); in onISize()
Daaa.cpp25 SkISize onISize() override { in onISize()
26 return SkISize::Make(W, H); in onISize()
94 SkISize onISize() override { in onISize()
95 return SkISize::Make(W, H); in onISize()
142 SkISize onISize() override { in onISize()
143 return SkISize::Make(W, H); in onISize()
Dgm.h40 SkISize::Make(W, H), BGCOLOR);) \
63 SkISize getISize() { return this->onISize(); } in getISize()
116 virtual SkISize onISize() = 0;
138 const SkISize& size, in SimpleGM()
147 SkISize onISize() override;
152 SkISize fSize;
Dgradients.cpp183 virtual SkISize onISize() { return SkISize::Make(840, 815); } in onISize()
239 virtual SkISize onISize() { return SkISize::Make(840, 815); } in onISize()
297 virtual SkISize onISize() { return SkISize::Make(840, 815); } in onISize()
350 virtual SkISize onISize() { return SkISize::Make(840, 500); } in onISize()
392 virtual SkISize onISize() { return SkISize::Make(320, 320); } in onISize()
472 virtual SkISize onISize() { return SkISize::Make(640, 510); } in onISize()
514 SkISize onISize() override { return SkISize::Make(1280, 1280); } in onISize()
519 const SkISize dim = this->getISize(); in onDraw()
555 SkISize onISize() override { return SkISize::Make(800, 400); } in onISize()
622 SkISize onISize() override { return SkISize::Make(500, 500); } in onISize()
[all …]
Dstrokes.cpp48 SkISize onISize() override { in onISize()
49 return SkISize::Make(W, H*2); in onISize()
111 SkISize onISize() override { in onISize()
112 return SkISize::Make(W, H*2); in onISize()
168 SkISize onISize() override { in onISize()
169 return SkISize::Make(W, H*2); in onISize()
290 SkISize onISize() override { in onISize()
291 return SkISize::Make(W, H*2); in onISize()
382 SkISize onISize() override { in onISize()
383 return SkISize::Make(1500, 1500); in onISize()
[all …]
Dmanypaths.cpp41 SkISize onISize() override { in onISize()
42 return SkISize::Make(kWidth, kHeight); in onISize()
80 SkISize onISize() override { in onISize()
81 return SkISize::Make(800, 300); in onISize()
Ddiscard.cpp34 SkISize onISize() override { in onISize()
35 return SkISize::Make(100, 100); in onISize()
44 SkISize size = this->getISize(); in onDraw()
/external/skia/include/core/
DSkSize.h79 typedef SkTSize<int32_t> SkISize; typedef
89 static SkSize Make(const SkISize& src) { in Make()
93 SkSize& operator=(const SkISize& src) {
98 SkISize toRound() const { in toRound()
99 SkISize s; in toRound()
104 SkISize toCeil() const { in toCeil()
105 SkISize s; in toCeil()
110 SkISize toFloor() const { in toFloor()
111 SkISize s; in toFloor()
DSkImage.h145 const SkISize yuvSizes[3],
156 const SkISize nv12Sizes[2], GrSurfaceOrigin,
168 static sk_sp<SkImage> MakeFromPicture(sk_sp<SkPicture>, const SkISize& dimensions,
176 SkISize dimensions() const { return SkISize::Make(fWidth, fHeight); } in dimensions()
201 bool readYUV8Planes(const SkISize[3], void* const planes[3], const size_t rowBytes[3],
/external/skia/bench/
DDrawLatticeBench.cpp15 DrawLatticeBench(int* xDivs, int xCount, int* yDivs, int yCount, const SkISize& srcSize, in DrawLatticeBench()
54 SkISize fSrcSize;
64 DEF_BENCH(return new DrawLatticeBench(gDivs9, 2, gDivs9, 2, SkISize::Make(100, 100),
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),
71 DEF_BENCH(return new DrawLatticeBench(gDivs15, 4, gDivs15, 4, 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),
DShapesBench.cpp48 int numShapes, const SkISize& shapesSize, bool perspective) in ShapesBench()
236 SkISize fShapesSize;
256 10000, SkISize::Make(32, 32), false);)
258 10000, SkISize::Make(32, 32), false);)
260 10000, SkISize::Make(32, 33), false);)
262 10000, SkISize::Make(32, 32), false);)
264 10000, SkISize::Make(32, 33), false);)
268 100, SkISize::Make(500, 500), false);)
270 100, SkISize::Make(500, 500), false);)
272 100, SkISize::Make(500, 501), false);)
[all …]
DRectanizerBench.cpp89 SkISize size; in onDraw()
93 size = SkISize::Make(rand.nextRangeU(1, kWidth / 2), in onDraw()
96 size = SkISize::Make(GrNextPow2(rand.nextRangeU(1, kWidth / 2)), in onDraw()
100 size = SkISize::Make(128, 128); in onDraw()
/external/skia/src/gpu/effects/
DGrMatrixConvolutionEffect.h23 const SkISize& kernelSize, in Make()
38 const SkISize& kernelSize,
48 const SkISize& kernelSize() const { return fKernelSize; } in kernelSize()
62 const SkISize& kernelSize,
77 SkISize fKernelSize;
/external/skia/experimental/SkPerlinNoiseShader2/
DSkPerlinNoiseShader2.h66 const SkISize* tileSize = NULL);
69 const SkISize* tileSize = NULL);
82 const SkISize* tileSize = NULL) {
122 const SkISize* tileSize);
130 const SkISize fTileSize;
/external/skia/include/effects/
DSkPerlinNoiseShader.h60 const SkISize* tileSize = nullptr);
63 const SkISize* tileSize = nullptr);
100 const SkISize* tileSize);
108 const SkISize fTileSize;
/external/skia/dm/
DDMSrcSink.h70 virtual SkISize size() const = 0;
79 virtual SkISize size(int) const { return this->size(); } in size()
106 SkISize size() const override;
137 SkISize size() const override;
155 SkISize size() const override;
183 SkISize size() const override;
202 SkISize size() const override;
232 SkISize size() const override;
246 SkISize size() const override;
264 SkISize size() const override;
[all …]
/external/skia/samplecode/
DSampleRectanizer.cpp37 *fRects[0].append() = SkISize::Make(random.nextRangeU(kMinRectSize, kMaxRectSize), in RectanizerView()
39 *fRects[1].append() = SkISize::Make( in RectanizerView()
42 *fRects[2].append() = SkISize::Make(128, 128); in RectanizerView()
143 SkTDArray<SkISize> fRects[3];
144 SkTDArray<SkISize>* fCurRects;
/external/skia/src/codec/
DSkAndroidCodec.cpp210 SkISize SkAndroidCodec::getSampledDimensions(int sampleSize) const { in getSampledDimensions()
212 return SkISize::Make(0, 0); in getSampledDimensions()
231 SkISize SkAndroidCodec::getSampledSubsetDimensions(int sampleSize, const SkIRect& subset) const { in getSampledSubsetDimensions()
233 return SkISize::Make(0, 0); in getSampledSubsetDimensions()
241 return SkISize::Make(0, 0); in getSampledSubsetDimensions()
251 return SkISize::Make(get_scaled_dimension(subset.width(), sampleSize), in getSampledSubsetDimensions()

12345678910>>...17