Home
last modified time | relevance | path

Searched refs:gradient (Results 1 - 25 of 34) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/src/Renderer/
H A DSetupProcessor.cpp109 state.gradient[interpolant][component].attribute = Unused; in update()
110 state.gradient[interpolant][component].flat = false; in update()
111 state.gradient[interpolant][component].wrap = false; in update()
152 state.gradient[interpolant][component].attribute = input; in update()
153 state.gradient[interpolant][component].flat = flat; in update()
171 state.gradient[interpolant][component].attribute = T0 + semantic.index; in update()
172 state.gradient[interpolant][component].flat = semantic.flat || (point && !sprite); in update()
175 state.gradient[interpolant][component].attribute = C0 + semantic.index; in update()
176 state.gradient[interpolant][component].flat = semantic.flat || flatShading; in update()
H A DSetupProcessor.hpp75 Gradient gradient[MAX_FRAGMENT_INPUTS][4]; member
H A DColor.hpp52 static Color<T> gradient(const Color<T> &c1, const Color<T> &c2, float d);
448 inline Color<T> Color<T>::gradient(const Color<T> &c1, const Color<T> &c2, float d) in gradient() function in sw::Color
/third_party/skia/tests/
H A DShaderImageFilterTest.cpp36 sk_sp<SkShader> gradient = SkGradientShader::MakeRadial( in test_unscaled() local
42 paint.setImageFilter(SkImageFilters::Shader(gradient, &ir)); in test_unscaled()
49 paint.setShader(gradient); in test_unscaled()
84 sk_sp<SkShader> gradient = SkGradientShader::MakeRadial( in test_scaled() local
90 paint.setImageFilter(SkImageFilters::Shader(gradient, &ir)); in test_scaled()
98 paint.setShader(gradient); in test_scaled()
H A DGradientTest.cpp300 // A linear gradient interval can, due to numerical imprecision (likely in the divide)
376 // Passes if a valid solid color is computed for the degenerate gradient in test_unsorted_degenerate()
377 // (unsorted positions are fixed during regular gradient construction, so this ensures the in test_unsorted_degenerate()
387 sk_sp<SkShader> gradient = SkGradientShader::MakeLinear(points, colors, nullptr, positions, 3, in test_unsorted_degenerate() local
390 // The degenerate gradient shouldn't be null in test_unsorted_degenerate()
391 REPORTER_ASSERT(r, SkToBool(gradient)); in test_unsorted_degenerate()
401 as_SB(gradient)->asFragmentProcessor(args); in test_unsorted_degenerate()
486 nullptr, // hits the legacy gradient impl in test_linear_fuzzer()
/third_party/skia/experimental/docs/
H A DcanvasBackend.js102 if ('gradient' in paint) {
103 var gradient = paint.gradient.split('.');
104 var gradName = gradient[1];
106 var g = window[gradient[0]][gradient[1]];
H A DsvgBackend.js180 if ('gradient' in paint) {
181 var gradient = paint.gradient.split('.');
182 var gradName = gradient[1];
/third_party/vk-gl-cts/external/openglcts/modules/common/
H A DglcPackedPixelsTests.cpp750 bool compare(GLvoid* gradient, GLvoid* data, const PixelFormat& outputFormat, const PixelType& outputType,
753 void getFloatBuffer(GLvoid* gradient, int samplerIsIntUintFloat, const PixelFormat& format, const PixelType& type,
759 void makeBuffer(const GLvoid* gradient, const PixelFormat& format, int samplerIsIntUintFloat, int elementCount,
763 void makeBufferPackedInt(const GLvoid* gradient, const PixelFormat& format, int elementCount,
767 void makeBufferPackedUint(const GLvoid* gradient, const PixelFormat& format, int elementCount,
771 void makeBufferPackedFloat(const GLvoid* gradient, const PixelFormat& format, int elementCount,
2144 // compare output gradient to input gradient
2420 bool RectangleTest::compare(GLvoid* gradient, GLvoid* data, const PixelFormat& outputFormat,
2423 // Compares the reference gradient dat
[all...]
/third_party/skia/modules/skottie/src/layers/shapelayer/
H A DFillStroke.cpp131 sk_sp<AnimatablePropertyContainer> gradient) { in AttachFill()
136 std::move(gradient), in AttachFill()
143 sk_sp<AnimatablePropertyContainer> gradient) { in AttachStroke()
148 std::move(gradient), in AttachStroke()
128 AttachFill(const skjson::ObjectValue& jpaint, const AnimationBuilder* abuilder, sk_sp<sksg::PaintNode> paint_node, sk_sp<AnimatablePropertyContainer> gradient) AttachFill() argument
140 AttachStroke(const skjson::ObjectValue& jpaint, const AnimationBuilder* abuilder, sk_sp<sksg::PaintNode> paint_node, sk_sp<AnimatablePropertyContainer> gradient) AttachStroke() argument
H A DGradient.cpp51 GradientAdapter(sk_sp<sksg::Gradient> gradient, in GradientAdapter() argument
57 : fGradient(std::move(gradient)) in GradientAdapter()
109 SkDebugf("!! Invalid gradient stop array size: %zu\n", fStops.size());
151 // larger-pos stop against the previously computed gradient stop values.
/third_party/skia/src/gpu/gradients/
H A DGrGradientShader.cpp27 // use the textured gradient
35 // MakeColorizer to transparently take care of hard stops at the end points of the gradient.
164 // precision capabilities of half floats, which can lead to inaccurate gradient calculations in make_unrolled_colorizer()
242 // The "looping" colorizer uses a real loop to binary-search the array of gradient stops.
344 // 3 color gradient is two intervals, but a 4 color gradient with a hard stop is also in build_intervals()
345 // two intervals. At the most extreme end, an 8 interval gradient made entirely of hard in build_intervals()
350 // Already reached our output limit, and haven't run out of color stops. This gradient in build_intervals()
381 // Definitely cannot represent this gradient configuration in make_unrolled_binary_colorizer()
404 // Definitely cannot represent this gradient configuratio in make_looping_binary_colorizer()
740 std::unique_ptr<GrFragmentProcessor> gradient; make_gradient() local
[all...]
/third_party/skia/gm/
H A Dcrbug_224618.cpp40 sk_sp<SkShader> gradient = SkGradientShader::MakeRadial( variable
47 bgPaint.setShader(gradient);
H A Dimagefiltersclipped.cpp98 sk_sp<SkImageFilter> gradient(SkImageFilters::Image(fGradientCircle));
109 SkIntToScalar(12), std::move(gradient), checkerboard),
H A Dimagefiltersscaled.cpp81 sk_sp<SkImageFilter> gradient(SkImageFilters::Image(fGradientCircle));
101 std::move(gradient), checkerboard),
H A Ddrawquadset.cpp48 // Always draw the same gradient in draw_gradient_tiles()
56 auto gradient = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkTileMode::kMirror); in draw_gradient_tiles() local
58 paint.setShader(gradient); in draw_gradient_tiles()
H A Dimagefilterstransformed.cpp79 sk_sp<SkImageFilter> gradient(SkImageFilters::Image(fGradientCircle));
85 std::move(gradient), checkerboard),
/third_party/ffmpeg/libavfilter/
H A Dvf_siti.c174 float gradient; in convolve_sobel() local
201 gradient = sqrt(x_conv_sum * x_conv_sum + y_conv_sum * y_conv_sum); \ in convolve_sobel()
202 dst[(j - 1) * (s->width - 2) + (i - 1)] = gradient; \ in convolve_sobel()
/third_party/skia/src/svg/
H A DSkSVGDevice.cpp411 // TODO: other gradient support
585 AutoElement gradient("linearGradient", fWriter);
587 gradient.addAttribute("id", id);
588 gradient.addAttribute("gradientUnits", "userSpaceOnUse");
589 gradient.addAttribute("x1", info.fPoint[0].x());
590 gradient.addAttribute("y1", info.fPoint[0].y());
591 gradient.addAttribute("x2", info.fPoint[1].x());
592 gradient.addAttribute("y2", info.fPoint[1].y());
/third_party/skia/third_party/externals/swiftshader/src/Device/
H A DSetupProcessor.hpp65 SpirvShader::InterfaceComponent gradient[MAX_INTERFACE_COMPONENTS]; member
H A DSetupProcessor.cpp88 state.gradient[interpolant] = fragmentShader->inputs[interpolant]; in update()
/third_party/ffmpeg/libavcodec/
H A Datrac9dec.c76 int gradient[31]; member
146 b->gradient[i] = grad_value[i >= grad_range[0]]; in parse_gradient()
149 b->gradient[i] = base + sign*((int)(scale*curve[i - grad_range[0]])); in parse_gradient()
169 c->precision_coarse[i] += c->precision_mask[i] - b->gradient[i]; in calc_precision()
186 c->precision_coarse[i] = c->scalefactors[i] - b->gradient[i]; in calc_precision()
729 /* Calculate bit alloc gradient */ in atrac9_decode_block()
/third_party/skia/samplecode/
H A DSampleFilterBounds.cpp114 sk_sp<SkShader> gradient = SkGradientShader::MakeLinear( in draw_scale_key() local
118 keyPaint.setShader(gradient); in draw_scale_key()
/third_party/libinput/src/
H A Devdev.h750 * finding the point with the same gradient as dy/dx. in evdev_hysteresis()
753 double gradient = (double)dy / dx; in evdev_hysteresis() local
754 lag_x = margin_distance / sqrt(gradient * gradient + 1); in evdev_hysteresis()
757 } else { /* Infinite gradient */ in evdev_hysteresis()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
H A DProgramPrelude.cpp179 void gradient();
1458 PROGRAM_PRELUDE_DECLARE(gradient,
2129 gradient(),
2266 gradient(),
/third_party/skia/src/core/
H A DSkRasterPipeline.h93 M(gradient) \

Completed in 21 milliseconds

12