Home
last modified time | relevance | path

Searched refs:fit (Results 1 – 25 of 1033) sorted by relevance

12345678910>>...42

/third_party/flutter/flutter/packages/flutter/test/gestures/
Dlsq_solver_test.dart15 test('Least-squares fit: linear polynomial to line', () {
21 final PolynomialFit fit = solver.solve(1);
23 expect(fit.coefficients.length, 2);
24 expect(approx(fit.coefficients[0], 1.0), isTrue);
25 expect(approx(fit.coefficients[1], 0.0), isTrue);
26 expect(approx(fit.confidence, 1.0), isTrue);
29 test('Least-squares fit: linear polynomial to sloped line', () {
35 final PolynomialFit fit = solver.solve(1);
37 expect(fit.coefficients.length, 2);
38 expect(approx(fit.coefficients[0], 1.0), isTrue);
[all …]
/third_party/skia/src/gpu/
DGrTextureRenderTargetProxy.cpp31 SkBackingFit fit, in GrTextureRenderTargetProxy() argument
37 : GrSurfaceProxy(format, dimensions, fit, budgeted, isProtected, surfaceFlags, useAllocator) in GrTextureRenderTargetProxy()
39 , GrRenderTargetProxy(caps, format, dimensions, sampleCnt, fit, budgeted, isProtected, in GrTextureRenderTargetProxy()
41 , GrTextureProxy(format, dimensions, mipMapped, mipmapStatus, fit, budgeted, isProtected, in GrTextureRenderTargetProxy()
54 SkBackingFit fit, in GrTextureRenderTargetProxy() argument
60 : GrSurfaceProxy(std::move(callback), format, dimensions, fit, budgeted, isProtected, in GrTextureRenderTargetProxy()
64 , GrRenderTargetProxy(LazyInstantiateCallback(), format, dimensions, sampleCnt, fit, in GrTextureRenderTargetProxy()
68 fit, budgeted, isProtected, surfaceFlags, useAllocator, in GrTextureRenderTargetProxy()
154 SkBackingFit fit; in callbackDesc() local
156 fit = SkBackingFit::kApprox; in callbackDesc()
[all …]
DGrSurfaceProxy.cpp29 static bool is_valid_lazy(const SkISize& dimensions, SkBackingFit fit) { in is_valid_lazy() argument
34 return ((dimensions.fWidth < 0 && dimensions.fHeight < 0 && SkBackingFit::kApprox == fit) || in is_valid_lazy()
46 SkBackingFit fit, in GrSurfaceProxy() argument
54 , fFit(fit) in GrSurfaceProxy()
66 SkBackingFit fit, in GrSurfaceProxy() argument
74 , fFit(fit) in GrSurfaceProxy()
81 SkASSERT(is_valid_lazy(dimensions, fit)); in GrSurfaceProxy()
86 SkBackingFit fit, in GrSurfaceProxy() argument
92 , fFit(fit) in GrSurfaceProxy()
262 SkBackingFit fit, in Copy() argument
[all …]
DGrRecordingContextPriv.cpp42 SkBackingFit fit, in createDevice() argument
50 return skgpu::v1::Device::Make(this->context(), budgeted, ii, fit, sampleCount, in createDevice()
119 SkBackingFit fit, in makeSC() argument
135 fit, in makeSC()
153 SkBackingFit fit, in makeSFC() argument
165 fit, in makeSFC()
181 fit, in makeSFC()
208 SkBackingFit fit, in makeSFC() argument
225 fit, in makeSFC()
243 fit, in makeSFC()
[all …]
DGrTextureProxy.cpp24 SkBackingFit fit, in GrTextureProxy() argument
30 : INHERITED(format, dimensions, fit, budgeted, isProtected, surfaceFlags, useAllocator) in GrTextureProxy()
49 SkBackingFit fit, in GrTextureProxy() argument
55 : INHERITED(std::move(callback), format, dimensions, fit, budgeted, isProtected, in GrTextureProxy()
191 SkBackingFit fit; in callbackDesc() local
193 fit = SkBackingFit::kApprox; in callbackDesc()
196 fit = this->isFunctionallyExact() ? SkBackingFit::kExact : SkBackingFit::kApprox; in callbackDesc()
201 fit, in callbackDesc()
DGrProxyProvider.cpp127 SkBackingFit fit, in testingOnly_createInstantiatedProxy() argument
148 if (SkBackingFit::kApprox == fit) { in testingOnly_createInstantiatedProxy()
177 SkBackingFit fit, in testingOnly_createInstantiatedProxy() argument
189 fit, in testingOnly_createInstantiatedProxy()
273 SkBackingFit fit, in createProxyFromBitmap() argument
276 SkASSERT(fit == SkBackingFit::kExact || mipMapped == GrMipmapped::kNo); in createProxyFromBitmap()
305 proxy = this->createNonMippedProxyFromBitmap(copyBitmap, fit, budgeted); in createProxyFromBitmap()
328 SkBackingFit fit, in createNonMippedProxyFromBitmap() argument
356 GrInternalSurfaceFlags::kNone, fit, budgeted, GrProtected::kNo, UseAllocator::kYes); in createNonMippedProxyFromBitmap()
428 SkBackingFit fit, in createProxy() argument
[all …]
DGrSurfaceProxyView.h102 SkBackingFit fit, in Copy() argument
109 fit, in Copy()
117 SkBackingFit fit, in Copy() argument
123 fit, in Copy()
/third_party/flutter/flutter/packages/flutter/test/painting/
Dbox_fit_test.dart39 void _testZeroAndNegativeSizes(BoxFit fit) {
42 result = applyBoxFit(fit, const Size(-400.0, 2000.0), const Size(100.0, 1000.0));
46 result = applyBoxFit(fit, const Size(400.0, -2000.0), const Size(100.0, 1000.0));
50 result = applyBoxFit(fit, const Size(400.0, 2000.0), const Size(-100.0, 1000.0));
54 result = applyBoxFit(fit, const Size(400.0, 2000.0), const Size(100.0, -1000.0));
58 result = applyBoxFit(fit, const Size(0.0, 2000.0), const Size(100.0, 1000.0));
62 result = applyBoxFit(fit, const Size(400.0, 0.0), const Size(100.0, 1000.0));
66 result = applyBoxFit(fit, const Size(400.0, 2000.0), const Size(0.0, 1000.0));
70 result = applyBoxFit(fit, const Size(400.0, 2000.0), const Size(100.0, 0.0));
/third_party/flutter/skia/src/gpu/
DGrTextureRenderTargetProxy.cpp30 SkBackingFit fit, in GrTextureRenderTargetProxy() argument
34 : GrSurfaceProxy(format, desc, GrRenderable::kYes, origin, texSwizzle, fit, budgeted, in GrTextureRenderTargetProxy()
37 , GrRenderTargetProxy(caps, format, desc, sampleCnt, origin, texSwizzle, outSwizzle, fit, in GrTextureRenderTargetProxy()
39 , GrTextureProxy(format, desc, origin, mipMapped, mipMapsStatus, texSwizzle, fit, budgeted, in GrTextureRenderTargetProxy()
53 SkBackingFit fit, in GrTextureRenderTargetProxy() argument
58 texSwizzle, fit, budgeted, isProtected, surfaceFlags) in GrTextureRenderTargetProxy()
62 texSwizzle, outSwizzle, fit, budgeted, isProtected, surfaceFlags, in GrTextureRenderTargetProxy()
65 mipMapsStatus, texSwizzle, fit, budgeted, isProtected, surfaceFlags) {} in GrTextureRenderTargetProxy()
DGrRecordingContext.cpp169 SkBackingFit fit, in makeDeferredTextureContext() argument
196 fit, budgeted, isProtected); in makeDeferredTextureContext()
212 SkBackingFit fit, in makeDeferredRenderTargetContext() argument
245 origin, fit, budgeted, isProtected); in makeDeferredRenderTargetContext()
289 SkBackingFit fit, in makeDeferredRenderTargetContextWithFallback() argument
303 rtc = this->makeDeferredRenderTargetContext(fit, width, height, colorType, colorSpace, in makeDeferredRenderTargetContextWithFallback()
339 SkBackingFit fit, in makeDeferredTextureContext() argument
349 return fContext->makeDeferredTextureContext(fit, width, height, colorType, alphaType, in makeDeferredTextureContext()
355 SkBackingFit fit, in makeDeferredRenderTargetContext() argument
366 return fContext->makeDeferredRenderTargetContext(fit, width, height, colorType, in makeDeferredRenderTargetContext()
[all …]
DGrSurfaceProxy.cpp32 static bool is_valid_fully_lazy(const GrSurfaceDesc& desc, SkBackingFit fit) { in is_valid_fully_lazy() argument
36 SkBackingFit::kApprox == fit; in is_valid_fully_lazy()
56 const GrSwizzle& textureSwizzle, SkBackingFit fit, in GrSurfaceProxy() argument
66 , fFit(fit) in GrSurfaceProxy()
76 SkASSERT(is_valid_fully_lazy(desc, fit) || is_valid_partially_lazy(desc)); in GrSurfaceProxy()
89 const GrSwizzle& textureSwizzle, SkBackingFit fit) in GrSurfaceProxy() argument
98 , fFit(fit) in GrSurfaceProxy()
349 SkBackingFit fit, in Copy() argument
374 fit, width, height, colorType, kUnknown_SkAlphaType, nullptr, mipMapped, in Copy()
385 fit, width, height, colorType, nullptr, 1, mipMapped, src->origin(), nullptr, in Copy()
[all …]
DGrProxyProvider.cpp124 SkBackingFit fit, in testingOnly_createInstantiatedProxy() argument
148 if (SkBackingFit::kApprox == fit) { in testingOnly_createInstantiatedProxy()
170 SkBackingFit fit, in testingOnly_createInstantiatedProxy() argument
180 fit, in testingOnly_createInstantiatedProxy()
251 SkBackingFit fit, in createTextureProxy() argument
291 [desc, format, sampleCnt, budgeted, srcImage, fit, in createTextureProxy()
298 desc, format, GrRenderable::kNo, sampleCnt, budgeted, fit, GrProtected::kNo, in createTextureProxy()
302 GrMipMapsStatus::kNotAllocated, surfaceFlags, fit, budgeted, GrProtected::kNo); in createTextureProxy()
471 SkBackingFit fit, in createProxy() argument
518 texSwizzle, outSwizzle, fit, budgeted, isProtected, surfaceFlags)); in createProxy()
[all …]
DGrRenderTargetProxy.cpp25 const GrSwizzle& outputSwizzle, SkBackingFit fit, in GrRenderTargetProxy() argument
28 : INHERITED(format, desc, GrRenderable::kYes, origin, textureSwizzle, fit, budgeted, in GrRenderTargetProxy()
39 SkBackingFit fit, SkBudgeted budgeted, GrProtected isProtected, in GrRenderTargetProxy() argument
42 textureSwizzle, fit, budgeted, isProtected, surfaceFlags) in GrRenderTargetProxy()
/third_party/skia/tests/
DProxyTest.cpp48 SkBackingFit fit, in check_rendertarget() argument
66 if (SkBackingFit::kExact == fit) { in check_rendertarget()
81 SkBackingFit fit) { in check_texture() argument
124 for (auto fit : {SkBackingFit::kExact, SkBackingFit::kApprox}) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
137 if (SkBackingFit::kApprox == fit) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
149 fit, budgeted, GrProtected::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
166 fit, caps.maxWindowRectangles()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
173 if (SkBackingFit::kApprox == fit) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
185 fit, budgeted, GrProtected::kNo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
198 fit); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DTextureProxyTest.cpp43 SkBackingFit fit) { in deferred_tex() argument
49 proxyProvider->createProxy(format, kSize, GrRenderable::kNo, 1, GrMipmapped::kNo, fit, in deferred_tex()
59 SkBackingFit fit) { in deferred_texRT() argument
65 proxyProvider->createProxy(format, kSize, GrRenderable::kYes, 1, GrMipmapped::kNo, fit, in deferred_texRT()
73 GrProxyProvider* proxyProvider, SkBackingFit fit) { in wrapped() argument
75 kSize, kColorType, GrRenderable::kNo, 1, fit, SkBudgeted::kYes, GrProtected::kNo); in wrapped()
82 GrProxyProvider* proxyProvider, SkBackingFit fit) { in wrapped_with_key() argument
94 kSize, kColorType, GrRenderable::kNo, 1, fit, SkBudgeted::kYes, GrProtected::kNo); in wrapped_with_key()
347 for (auto fit : { SkBackingFit::kExact, SkBackingFit::kApprox }) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
350 basic_test(direct, reporter, create(reporter, direct, proxyProvider, fit), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/flutter/skia/tests/
DProxyTest.cpp48 SkBackingFit fit, in check_rendertarget() argument
66 if (SkBackingFit::kExact == fit) { in check_rendertarget()
82 SkBackingFit fit) { in check_texture() argument
97 if (SkBackingFit::kExact == fit) { in check_texture()
119 for (auto fit : { SkBackingFit::kExact, SkBackingFit::kApprox }) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
139 if (SkBackingFit::kApprox == fit) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
152 format, desc, GrRenderable::kYes, numSamples, origin, fit, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
171 fit, caps.maxWindowRectangles()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
178 if (SkBackingFit::kApprox == fit) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
191 format, desc, GrRenderable::kNo, numSamples, origin, fit, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DTextureProxyTest.cpp41 GrProxyProvider* proxyProvider, SkBackingFit fit) { in deferred_tex() argument
48 kBottomLeft_GrSurfaceOrigin, fit, in deferred_tex()
56 GrProxyProvider* proxyProvider, SkBackingFit fit) { in deferred_texRT() argument
64 kBottomLeft_GrSurfaceOrigin, fit, in deferred_texRT()
72 GrProxyProvider* proxyProvider, SkBackingFit fit) { in wrapped() argument
74 kSize, kColorType, GrRenderable::kNo, 1, kBottomLeft_GrSurfaceOrigin, fit, in wrapped()
82 GrProxyProvider* proxyProvider, SkBackingFit fit) { in wrapped_with_key() argument
94 kSize, kColorType, GrRenderable::kNo, 1, kBottomLeft_GrSurfaceOrigin, fit, in wrapped_with_key()
101 static sk_sp<GrTextureProxy> create_wrapped_backend(GrContext* context, SkBackingFit fit, in create_wrapped_backend() argument
317 for (auto fit : { SkBackingFit::kExact, SkBackingFit::kApprox }) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
/third_party/flutter/flutter/packages/flutter/lib/src/painting/
Ddecoration_image.dart44 this.fit,
69 final BoxFit fit;
101 /// horizontally and vertically to fit the image into its destination. The
106 /// The stretching will be applied in order to make the image fit into the box
107 /// specified by [fit]. When [centerSlice] is not null, [fit] defaults to
147 && fit == typedOther.fit
155 …int get hashCode => hashValues(image, colorFilter, fit, alignment, centerSlice, repeat, matchTextD…
163 if (fit != null &&
164 !(fit == BoxFit.fill && centerSlice != null) &&
165 !(fit == BoxFit.scaleDown && centerSlice == null))
[all …]
/third_party/flutter/flutter/packages/flutter/test/widgets/
Dsemantics_4_test.dart25 fit: StackFit.expand,
35 fit: StackFit.expand,
87 fit: StackFit.expand,
97 fit: StackFit.expand,
135 fit: StackFit.expand,
142 fit: StackFit.expand,
Dfitted_box_test.dart91 fit: BoxFit.cover,
122 fit: BoxFit.cover,
147 fit: BoxFit.scaleDown,
188 fit: BoxFit.scaleDown,
229 fit: BoxFit.scaleDown,
270 fit: BoxFit.scaleDown,
300 { // change fit
311 fit: BoxFit.fill,
349 fit: BoxFit.contain,
371 fit: BoxFit.cover,
[all …]
/third_party/flutter/skia/docs/examples/
DMatrix_ScaleToFit.cpp14 for (auto fit : { SkMatrix::kFill_ScaleToFit, SkMatrix::kStart_ScaleToFit,
19 if (!matrix.setRectToRect(bounds, rect, fit)) {
26 canvas->drawString(labels[fit], 10, 255, paint);
/third_party/skia/docs/examples/
DMatrix_ScaleToFit.cpp14 for (auto fit : { SkMatrix::kFill_ScaleToFit, SkMatrix::kStart_ScaleToFit,
19 if (!matrix.setRectToRect(bounds, rect, fit)) {
26 canvas->drawString(labels[fit], 10, 255, paint);
/third_party/flutter/engine/flutter/shell/platform/fuchsia/flutter/
Dplatform_view.h27 using OnMetricsUpdate = fit::function<void(const fuchsia::ui::gfx::Metrics&)>;
29 fit::function<void(float width_change_factor, float height_change_factor)>;
48 fit::closure on_session_listener_error_callback,
67 fit::closure session_listener_error_callback_;
89 fit::function<void(
/third_party/curl/lib/
Ddynbuf.c70 size_t fit = len + indx + 1; /* new string + old string + zero byte */ in dyn_nappend() local
78 if(fit > s->toobig) { in dyn_nappend()
85 if(fit < MIN_FIRST_ALLOC) in dyn_nappend()
88 a = fit; in dyn_nappend()
91 while(a < fit) in dyn_nappend()
/third_party/json/benchmarks/thirdparty/benchmark/src/
Dcomplexity.cc102 double fit = result.coef * fitting_curve(n[i]); in MinimalLeastSq() local
103 rms += pow((time[i] - fit), 2); in MinimalLeastSq()
137 for (const auto& fit : fit_curves) { in MinimalLeastSq() local
138 LeastSq current_fit = MinimalLeastSq(n, time, FittingCurve(fit)); in MinimalLeastSq()
141 best_fit.complexity = fit; in MinimalLeastSq()

12345678910>>...42