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

12

/external/chromium/chrome/browser/ui/cocoa/
H A Dvertical_gradient_view.h13 // Draws a vertical background gradient with a bottom stroke. The gradient and
15 // respectively. Alternatively, you may override the |gradient| and
17 // gradient or color is |nil|, the respective element will not be drawn.
20 // The gradient to draw.
26 // Gets and sets the gradient to paint as background.
27 - (NSGradient*)gradient;
28 - (void)setGradient:(NSGradient*)gradient;
32 - (void)setStrokeColor:(NSColor*)gradient;
/external/webkit/Source/WebCore/rendering/svg/
H A DRenderSVGGradientStop.cpp50 // <stop> elements should only be allowed to make renderers under gradient elements
51 // but I can imagine a few cases we might not be catching, so let's not crash if our parent isn't a gradient.
52 SVGGradientElement* gradient = gradientElement();
53 if (!gradient)
56 RenderObject* renderer = gradient->renderer();
H A DRenderSVGResourceLinearGradient.cpp52 // Determine gradient start/end points
57 gradientData->gradient = Gradient::create(startPoint, endPoint);
58 gradientData->gradient->setSpreadMethod(m_attributes.spreadMethod());
H A DRenderSVGResourceRadialGradient.cpp52 // Determine gradient focal/center points and radius
58 gradientData->gradient = Gradient::create(focalPoint,
63 gradientData->gradient->setSpreadMethod(m_attributes.spreadMethod());
H A DRenderSVGResourceGradient.cpp163 // then the given effect (e.g. a gradient or a filter) will be ignored.
174 // Create gradient object
175 if (!gradientData->gradient) {
178 // CG platforms will handle the gradient space transform for text after applying the
180 // box applied to the gradient space transform now, so the gradient shader can use it.
194 gradientData->gradient->setGradientSpaceTransform(gradientData->userspaceTransform);
197 if (!gradientData->gradient)
200 // Draw gradient
219 context->setFillGradient(gradientData->gradient);
[all...]
H A DRenderSVGResourceGradient.h38 RefPtr<Gradient> gradient; member in struct:WebCore::GradientData
/external/chromium/chrome/browser/resources/
H A Dextensions_infobar.css6 background: -webkit-linear-gradient(#DAE7F9, #B5CBE8);
H A Dextensions_infobar_mac.css6 background: -webkit-linear-gradient(#EBEBEB, #CFCFCF);
/external/webkit/Tools/QtTestBrowser/
H A Dlocationedit.cpp109 QLinearGradient gradient(0, 0, width(), 0);
110 gradient.setColorAt(0, progressColor);
111 gradient.setColorAt(((double) m_progress) / 100, progressColor);
113 gradient.setColorAt((double) m_progress / 100 + 0.001, backgroundColor);
114 p.setBrush(QPalette::Base, gradient);
/external/webkit/Source/WebCore/platform/graphics/filters/
H A DFETurbulence.cpp190 float* gradient; local
194 gradient = paintingData.gradient[channel][i];
195 gradient[0] = static_cast<float>((paintingData.random() % (2 * s_blockSize)) - s_blockSize) / s_blockSize;
196 gradient[1] = static_cast<float>((paintingData.random() % (2 * s_blockSize)) - s_blockSize) / s_blockSize;
197 normalizationFactor = sqrtf(gradient[0] * gradient[0] + gradient[1] * gradient[1]);
198 gradient[
[all...]
H A DFETurbulence.h75 float gradient[4][2 * s_blockSize + 2][2]; member in struct:WebCore::FETurbulence::PaintingData
/external/webkit/Source/WebCore/inspector/front-end/
H A DSummaryBar.js103 var gradient = ctx.createLinearGradient(0, 0, 13, 13);
104 gradient.addColorStop(0.0, "rgba(255, 255, 255, 0.2)");
105 gradient.addColorStop(1.0, "rgba(255, 255, 255, 0.0)");
107 ctx.fillStyle = gradient;
110 gradient = ctx.createLinearGradient(13, 13, 0, 0);
111 gradient.addColorStop(0.0, "rgba(0, 0, 0, 0.2)");
112 gradient.addColorStop(1.0, "rgba(0, 0, 0, 0.0)");
114 ctx.fillStyle = gradient;
316 var gradient = ctx.createLinearGradient(x, y, x, y + h); variable
317 gradient
[all...]
H A Daudits.css117 background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(252, 252, 252)), to(rgb(223, 223, 223)));
131 background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(194, 194, 194)), to(rgb(239, 239, 239)));
138 background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(250, 250, 250)), to(rgb(235, 235, 235)));
161 background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(252, 252, 252)), to(rgb(223, 223, 223)));
169 background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(194, 194, 194)), to(rgb(239, 239, 239)));
174 -webkit-gradient(linear, left top, left bottom, from(rgb(252, 252, 252)), to(rgb(223, 223, 223)));
/external/qemu/distrib/sdl-1.2.15/test/
H A Dtestbitmap.c64 Uint8 gradient; local
131 gradient=((i*255)/screen->h);
132 color = SDL_MapRGB(screen->format, gradient, gradient, gradient);
H A Dgraywin.c62 Uint8 gradient; local
84 gradient=((i*(NUM_COLORS-1))/screen->h);
85 color = SDL_MapRGB(screen->format, gradient, gradient, gradient);
H A Dtestalpha.c22 /* Fill the screen with a gradient */
28 Uint8 gradient; local
47 gradient=((i*255)/screen->h);
48 color = (Uint16)SDL_MapRGB(screen->format, gradient, gradient, gradient);
/external/webkit/Source/WebCore/html/canvas/
H A DCanvasStyle.cpp125 CanvasStyle::CanvasStyle(PassRefPtr<CanvasGradient> gradient) argument
127 , m_gradient(gradient)
172 PassRefPtr<CanvasStyle> CanvasStyle::createFromGradient(PassRefPtr<CanvasGradient> gradient) argument
174 if (!gradient)
176 return adoptRef(new CanvasStyle(gradient));
255 context->setStrokeGradient(canvasGradient()->gradient());
292 context->setFillGradient(canvasGradient()->gradient());
H A DCanvasGradient.h50 Gradient* gradient() const { return m_gradient.get(); } function in class:WebCore::CanvasGradient
/external/webkit/Source/WebKit2/UIProcess/
H A DFindIndicator.cpp161 RefPtr<Gradient> gradient = Gradient::create(FloatPoint(innerPathRect.x(), innerPathRect.y()), FloatPoint(innerPathRect.x(), innerPathRect.maxY())); local
162 gradient->addColorStop(0, gradientLightColor());
163 gradient->addColorStop(1, gradientDarkColor());
164 graphicsContext.setFillGradient(gradient);
/external/webkit/Source/WebCore/css/
H A DCSSGradientValue.cpp112 void CSSGradientValue::addStops(Gradient* gradient, RenderObject* renderer, RenderStyle* rootStyle, float maxLengthForRepeat) argument
130 gradient->addColorStop(offset, color);
134 gradient->setStopsSorted(true);
145 FloatPoint gradientStart = gradient->p0();
148 gradientEnd = gradient->p1();
150 gradientEnd = gradientStart + FloatSize(gradient->endRadius(), 0);
230 // If the gradient is repeating, repeat the color stops.
232 // because we have to know the extent of the gradient, and possible move the end points.
235 // the gradient defines a solid-color image with the color of the last color-stop in the rule.
302 // If the gradient goe
553 RefPtr<Gradient> gradient = Gradient::create(firstPoint, secondPoint); local
845 RefPtr<Gradient> gradient = Gradient::create(firstPoint, firstRadius, secondPoint, secondRadius, aspectRatio); local
[all...]
/external/chromium/chrome/browser/resources/ntp4/
H A Dnew_tab.css39 -webkit-mask-image: -webkit-linear-gradient(bottom, transparent, black 30px);
55 /* TODO(estade): remove this border hack and replace with a webkit-gradient
59 background: -webkit-gradient(linear, left top, right top,
/external/opencv/cv/src/
H A Dcvsnakes.cpp66 // if _CV_SNAKE_GRAD - magnitude of gradient is energy
100 float *gradient = NULL; local
149 gradient = (float *) cvAlloc( roi.height * roi.width * sizeof( float ));
151 if( !gradient )
156 cvFree( &gradient );
159 /* clear map - no gradient computed */
315 gradient[(y*WTILE_SIZE + l) * roi.width + x*WTILE_SIZE + m] =
325 gradient[(pt[i].y + j) * roi.width + pt[i].x + k];
401 cvFree( &gradient );
/external/chromium/chrome/browser/resources/options/
H A Dsubpages_tab_controls.css55 background: -webkit-linear-gradient(white, #F3F3F3); /* very light gray */
/external/webkit/Source/WebCore/rendering/
H A DRenderMediaControlsChromium.cpp153 RefPtr<Gradient> gradient = Gradient::create(sliderTopLeft, sliderTopRight); local
155 gradient->addColorStop(0.0, startColor);
156 gradient->addColorStop(1.0, Color(startColor.red() / 2, startColor.green() / 2, startColor.blue() / 2, startColor.alpha()));
160 context->setFillGradient(gradient);
/external/webkit/Tools/MiniBrowser/qt/
H A DBrowserWindow.cpp197 QLinearGradient gradient(0, 0, width(), 0);
198 gradient.setColorAt(0, progressColor);
199 gradient.setColorAt(((double) progress) / 100, progressColor);
201 gradient.setColorAt((double) progress / 100 + 0.001, backgroundColor);
202 pallete.setBrush(QPalette::Base, gradient);

Completed in 327 milliseconds

12