Home
last modified time | relevance | path

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

12345678910>>...50

/third_party/flutter/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.cpp32 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()
222 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()
/third_party/flutter/skia/include/core/
DSkSize.h13 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
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 …]
/third_party/skia/include/core/
DSkSize.h13 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()
/third_party/skia/tests/
DMipMapTest.cpp74 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 …]
DAndroidCodecTest.cpp32 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()
DNdkDecodeTest.cpp34 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 …]
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()
/third_party/flutter/skia/gm/
Dpictureimagegenerator.cpp126 SkISize onISize() override { in onISize()
127 return SkISize::Make(1160, 860); in onISize()
140 SkISize size; in onDraw()
144 { SkISize::Make(200, 100), 1, 1, 1 }, in onDraw()
145 { SkISize::Make(200, 200), 1, 1, 1 }, in onDraw()
146 { SkISize::Make(200, 200), 1, 2, 1 }, in onDraw()
147 { SkISize::Make(400, 200), 2, 2, 1 }, in onDraw()
149 { SkISize::Make(200, 100), 1, 1, 0.9f }, in onDraw()
150 { SkISize::Make(200, 200), 1, 1, 0.75f }, in onDraw()
151 { SkISize::Make(200, 200), 1, 2, 0.5f }, in onDraw()
[all …]
Dbitmaprect.cpp50 SkISize onISize() override { in onISize()
51 return SkISize::Make(640, 480); in onISize()
140 SkISize onISize() override { in onISize()
141 return SkISize::Make(640, 480); in onISize()
199 SkISize onISize() override { in onISize()
200 return SkISize::Make(640, 480); in onISize()
246 SkISize onISize() override { in onISize()
247 return SkISize::Make(640, 480); in onISize()
/third_party/skia/gm/
Dpictureimagegenerator.cpp124 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 …]
/third_party/flutter/skia/bench/
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),
DShapesBench.cpp51 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 …]
/third_party/skia/bench/
DShapesBench.cpp51 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 …]
/third_party/skia/src/gpu/
DGrResourceProvider.h64 sk_sp<GrTexture> createApproxTexture(SkISize dimensions,
72 sk_sp<GrTexture> createTexture(SkISize dimensions,
86 sk_sp<GrTexture> createTexture(SkISize dimensions,
102 sk_sp<GrTexture> createTexture(SkISize dimensions,
118 sk_sp<GrTexture> findAndRefScratchTexture(SkISize dimensions,
130 sk_sp<GrTexture> createCompressedTexture(SkISize dimensions,
296 sk_sp<GrAttachment> makeMSAAAttachment(SkISize dimensions,
308 sk_sp<GrAttachment> getDiscardableMSAAAttachment(SkISize dimensions,
335 static SkISize MakeApprox(SkISize);
347 sk_sp<GrTexture> getExactScratch(SkISize dimensions,
[all …]
DGrDataUtils.h20 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,
DGrImageInfo.h25 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;
/third_party/skia/src/gpu/mtl/
DGrMtlAttachment.h21 SkISize dimensions,
26 SkISize dimensions,
31 SkISize dimensions,
39 SkISize dimensions,
64 SkISize dimensions,
74 SkISize dimensions,
80 SkISize dimensions,
DGrMtlTexture.h21 SkISize dimensions,
27 SkISize,
46 GrMtlTexture(GrMtlGpu*, SkISize, sk_sp<GrMtlAttachment>, GrMipmapStatus);
66 GrMtlTexture(GrMtlGpu*, SkBudgeted, SkISize, sk_sp<GrMtlAttachment>, GrMipmapStatus);
70 SkISize,
/third_party/flutter/engine/flutter/lib/ui/painting/
Dimage_decoder_unittests.cc212 SkISize decoded_size = SkISize::MakeEmpty(); in TEST_F()
327 std::optional<uint32_t> target_height) -> SkISize { in TEST_F()
328 SkISize final_size = SkISize::MakeEmpty(); in TEST_F()
350 ASSERT_EQ(SkISize::Make(3024, 4032), image_dimensions); in TEST_F()
352 ASSERT_EQ(decoded_size(100, {}), SkISize::Make(100, 133)); in TEST_F()
353 ASSERT_EQ(decoded_size({}, 100), SkISize::Make(75, 100)); in TEST_F()
354 ASSERT_EQ(decoded_size(100, 100), SkISize::Make(100, 100)); in TEST_F()
360 SkISize image_dimensions = SkISize::MakeEmpty(); in TEST_F()
412 std::optional<uint32_t> target_height) -> SkISize { in TEST_F()
413 SkISize final_size = SkISize::MakeEmpty(); in TEST_F()
[all …]
/third_party/skia/src/gpu/d3d/
DGrD3DTextureRenderTarget.h29 SkISize dimensions,
36 GrD3DGpu*, SkISize dimensions, int sampleCnt, GrWrapCacheable,
58 SkISize dimensions,
71 SkISize dimensions,
80 SkISize dimensions,
93 SkISize dimensions,
DGrD3DTexture.h21 SkISize dimensions,
27 SkISize dimensions,
49 SkISize dimensions,
65 GrD3DTexture(GrD3DGpu*, SkBudgeted, SkISize dimensions, const GrD3DTextureResourceInfo&,
69 GrD3DTexture(GrD3DGpu*, SkISize dimensions, const GrD3DTextureResourceInfo&,
/third_party/flutter/engine/flutter/shell/platform/embedder/
Dembedder_external_view_embedder.h63 void BeginFrame(SkISize frame_size, GrContext* context) override;
86 SkISize size = SkISize::Make(0, 0);
91 size(SkISize::Make(config.size.width, config.size.height)) {} in RegistryKey()
115 SkISize pending_frame_size_ = SkISize::Make(0, 0);
/third_party/skia/src/gpu/vk/
DGrVkTexture.h26 SkISize dimensions,
33 SkISize dimensions,
62 SkISize dimensions,
83 GrVkTexture(GrVkGpu*, SkBudgeted, SkISize, sk_sp<GrVkImage> texture, GrMipmapStatus);
84 GrVkTexture(GrVkGpu*, SkISize, sk_sp<GrVkImage> texture, GrMipmapStatus,

12345678910>>...50