Searched refs:paint (Results 1 - 25 of 1537) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/skia/experimental/PdfViewer/
H A DSkPdfGraphicsState.cpp12 void SkPdfGraphicsState::applyGraphicsState(SkPaint* paint, bool stroking) { argument
14 fStroking.applyGraphicsState(paint);
16 fNonStroking.applyGraphicsState(paint);
20 // or pdfContext->addPaintOptions(&paint);
21 paint->setAntiAlias(true);
25 paint->setStrokeWidth(SkDoubleToScalar(fLineWidth));
28 paint->setPathEffect(SkDashPathEffect::Create(fDashArray,
36 paint->setXfermodeMode(fBlendModes[0]);
39 //paint->setStrokeMiter(SkDoubleToScalar(fMiterLimit));
/external/skia/experimental/PdfViewer/
H A DSkPdfGraphicsState.cpp12 void SkPdfGraphicsState::applyGraphicsState(SkPaint* paint, bool stroking) { argument
14 fStroking.applyGraphicsState(paint);
16 fNonStroking.applyGraphicsState(paint);
20 // or pdfContext->addPaintOptions(&paint);
21 paint->setAntiAlias(true);
25 paint->setStrokeWidth(SkDoubleToScalar(fLineWidth));
28 paint->setPathEffect(SkDashPathEffect::Create(fDashArray,
36 paint->setXfermodeMode(fBlendModes[0]);
39 //paint->setStrokeMiter(SkDoubleToScalar(fMiterLimit));
/external/chromium_org/third_party/skia/gm/
H A Ddashcubics.cpp52 SkPaint paint; local
53 paint.setAntiAlias(true);
54 paint.setStyle(SkPaint::kStroke_Style);
56 paint.setStrokeWidth(42);
57 canvas->drawPath(path, paint);
59 paint.setColor(SK_ColorRED);
60 paint.setStrokeWidth(21);
61 paint.setPathEffect(pe)->unref();
62 canvas->drawPath(path, paint);
64 paint
[all...]
H A Dpicture.cpp16 SkPaint paint; local
17 paint.setAntiAlias(true);
20 paint.setColor(0x800000FF);
21 canvas->drawRect(SkRect::MakeWH(100, 100), paint);
23 paint.setColor(0x80FF0000);
25 canvas->drawPath(path, paint);
27 paint.setColor(0x8000FF00);
29 canvas->drawPath(path, paint);
31 paint.setColor(0x80FFFFFF);
32 paint
57 SkPaint paint; variable
[all...]
H A Dbigtext.cpp35 SkPaint paint; variable
36 paint.setAntiAlias(true);
37 sk_tool_utils::set_portable_typeface(&paint); member in class:BigTextGM::sk_tool_utils
38 paint.setTextSize(1500);
41 (void)paint.measureText("/", 1, &r);
47 paint.setColor(SK_ColorRED);
48 canvas->drawText("/", 1, pos.fX, pos.fY, paint);
50 paint.setColor(SK_ColorBLUE);
51 canvas->drawPosText("\\", 1, &pos, paint);
H A Dlcdtext.cpp48 SkPaint paint; local
49 paint.setColor(SK_ColorBLACK);
50 paint.setDither(true);
51 paint.setAntiAlias(true);
52 sk_tool_utils::set_portable_typeface(&paint);
53 paint.setSubpixelText(subpixelTextEnabled);
54 paint.setLCDRenderText(lcdRenderTextEnabled);
55 paint.setTextSize(textHeight);
57 canvas->drawText(string.c_str(), string.size(), 0, y, paint);
H A Dgradtext.cpp49 SkPaint paint; local
50 sk_tool_utils::set_portable_typeface(&paint);
55 paint.setColor(SK_ColorRED);
56 canvas->drawRect(r, paint);
59 paint.setShader(make_chrome_solid())->unref();
60 paint.setTextSize(SkIntToScalar(500));
62 canvas->drawText("I", 1, 0, 100, paint);
78 SkPaint paint; local
79 sk_tool_utils::set_portable_typeface(&paint);
81 paint
111 draw_text(SkCanvas* canvas, const SkPaint& paint) argument
117 draw_text3(SkCanvas* canvas, const SkPaint& paint) argument
131 SkPaint paint; local
[all...]
H A Dcolormatrix.cpp31 static void setColorMatrix(SkPaint* paint, const SkColorMatrix& matrix) { argument
32 paint->setColorFilter(SkColorMatrixFilter::Create(matrix))->unref();
35 static void setArray(SkPaint* paint, const SkScalar array[]) { argument
36 paint->setColorFilter(SkColorMatrixFilter::Create(array))->unref();
71 SkPaint paint; local
72 paint.setColor(SkColorSetARGB(255, x * 255 / width, y * 255 / height, 0));
74 SkIntToScalar(y), SK_Scalar1, SK_Scalar1), paint); local
89 SkPaint paint; local
90 paint.setShader(SkGradientShader::CreateLinear(pts, colors, NULL, 2,
92 canvas.drawRect(SkRect::MakeWH(SkIntToScalar(width), SkIntToScalar(height)), paint);
99 SkPaint paint; local
[all...]
H A Dpatheffects.cpp18 static void compose_pe(SkPaint* paint) { argument
19 SkPathEffect* pe = paint->getPathEffect();
28 paint->setPathEffect(compose)->unref();
31 static void hair_pe(SkPaint* paint) { argument
32 paint->setStrokeWidth(0);
35 static void hair2_pe(SkPaint* paint) { argument
36 paint->setStrokeWidth(0);
37 compose_pe(paint);
40 static void stroke_pe(SkPaint* paint) { argument
41 paint
45 dash_pe(SkPaint* paint) argument
63 one_d_pe(SkPaint* paint) argument
80 fill_pe(SkPaint* paint) argument
85 discrete_pe(SkPaint* paint) argument
99 tile_pe(SkPaint* paint) argument
121 SkPaint paint; local
[all...]
/external/skia/gm/
H A Ddashcubics.cpp52 SkPaint paint; local
53 paint.setAntiAlias(true);
54 paint.setStyle(SkPaint::kStroke_Style);
56 paint.setStrokeWidth(42);
57 canvas->drawPath(path, paint);
59 paint.setColor(SK_ColorRED);
60 paint.setStrokeWidth(21);
61 paint.setPathEffect(pe)->unref();
62 canvas->drawPath(path, paint);
64 paint
[all...]
H A Dcolormatrix.cpp31 static void setColorMatrix(SkPaint* paint, const SkColorMatrix& matrix) { argument
32 paint->setColorFilter(SkColorMatrixFilter::Create(matrix))->unref();
35 static void setArray(SkPaint* paint, const SkScalar array[]) { argument
36 paint->setColorFilter(SkColorMatrixFilter::Create(array))->unref();
71 SkPaint paint; local
72 paint.setColor(SkColorSetARGB(255, x * 255 / width, y * 255 / height, 0));
74 SkIntToScalar(y), SK_Scalar1, SK_Scalar1), paint); local
89 SkPaint paint; local
90 paint.setShader(SkGradientShader::CreateLinear(pts, colors, NULL, 2,
92 canvas.drawRect(SkRect::MakeWH(SkIntToScalar(width), SkIntToScalar(height)), paint);
99 SkPaint paint; local
[all...]
H A Dbigtext.cpp35 SkPaint paint; variable
36 paint.setAntiAlias(true);
37 paint.setTextSize(1500);
40 (void)paint.measureText("/", 1, &r);
46 paint.setColor(SK_ColorRED);
47 canvas->drawText("/", 1, pos.fX, pos.fY, paint);
49 paint.setColor(SK_ColorBLUE);
50 canvas->drawPosText("\\", 1, &pos, paint);
H A Dgradtext.cpp49 SkPaint paint; local
54 paint.setColor(SK_ColorRED);
55 canvas->drawRect(r, paint);
58 paint.setShader(make_chrome_solid())->unref();
59 paint.setTextSize(SkIntToScalar(500));
61 canvas->drawText("I", 1, 0, 100, paint);
77 SkPaint paint; local
79 paint.setStyle(SkPaint::kFill_Style);
80 canvas->drawText("Normal Fill Text", 16, 0, 50, paint);
81 paint
114 draw_text(SkCanvas* canvas, const SkPaint& paint) argument
120 draw_text3(SkCanvas* canvas, const SkPaint& paint) argument
134 SkPaint paint; local
[all...]
H A Dlcdtext.cpp48 SkPaint paint; local
49 paint.setColor(SK_ColorBLACK);
50 paint.setDither(true);
51 paint.setAntiAlias(true);
52 paint.setSubpixelText(subpixelTextEnabled);
53 paint.setLCDRenderText(lcdRenderTextEnabled);
54 paint.setTextSize(textHeight);
56 canvas->drawText(string.c_str(), string.size(), 0, y, paint);
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/
H A Dpaint.h41 void paint_destroy(struct vg_paint *paint);
43 void paint_set_color(struct vg_paint *paint,
45 void paint_get_color(struct vg_paint *paint,
48 void paint_set_coloriv(struct vg_paint *paint,
50 void paint_get_coloriv(struct vg_paint *paint,
53 void paint_set_colori(struct vg_paint *paint,
56 VGuint paint_colori(struct vg_paint *paint);
58 void paint_set_type(struct vg_paint *paint, VGPaintType type);
59 VGPaintType paint_type(struct vg_paint *paint);
60 void paint_resolve_type(struct vg_paint *paint);
[all...]
H A Dapi_paint.c30 #include "paint.h"
52 void vegaSetPaint(VGPaint paint, VGbitfield paintModes) argument
56 if (paint == VG_INVALID_HANDLE) {
58 paint = paint_to_handle(ctx->default_paint);
59 } else if (!vg_object_is_valid(paint, VG_OBJECT_PAINT)) {
70 ctx->state.vg.fill_paint = handle_to_paint(paint);
73 ctx->state.vg.stroke_paint = handle_to_paint(paint);
82 VGPaint paint = VG_INVALID_HANDLE; local
90 paint = paint_to_handle(ctx->state.vg.fill_paint);
92 paint
100 vegaSetColor(VGPaint paint, VGuint rgba) argument
123 vegaGetColor(VGPaint paint) argument
143 vegaPaintPattern(VGPaint paint, VGImage pattern) argument
[all...]
/external/mesa3d/src/gallium/state_trackers/vega/
H A Dpaint.h41 void paint_destroy(struct vg_paint *paint);
43 void paint_set_color(struct vg_paint *paint,
45 void paint_get_color(struct vg_paint *paint,
48 void paint_set_coloriv(struct vg_paint *paint,
50 void paint_get_coloriv(struct vg_paint *paint,
53 void paint_set_colori(struct vg_paint *paint,
56 VGuint paint_colori(struct vg_paint *paint);
58 void paint_set_type(struct vg_paint *paint, VGPaintType type);
59 VGPaintType paint_type(struct vg_paint *paint);
60 void paint_resolve_type(struct vg_paint *paint);
[all...]
H A Dapi_paint.c30 #include "paint.h"
52 void vegaSetPaint(VGPaint paint, VGbitfield paintModes) argument
56 if (paint == VG_INVALID_HANDLE) {
58 paint = paint_to_handle(ctx->default_paint);
59 } else if (!vg_object_is_valid(paint, VG_OBJECT_PAINT)) {
70 ctx->state.vg.fill_paint = handle_to_paint(paint);
73 ctx->state.vg.stroke_paint = handle_to_paint(paint);
82 VGPaint paint = VG_INVALID_HANDLE; local
90 paint = paint_to_handle(ctx->state.vg.fill_paint);
92 paint
100 vegaSetColor(VGPaint paint, VGuint rgba) argument
123 vegaGetColor(VGPaint paint) argument
143 vegaPaintPattern(VGPaint paint, VGImage pattern) argument
[all...]
/external/skia/src/core/
H A DSkPaintPriv.cpp15 bool isPaintOpaque(const SkPaint* paint, argument
20 if (!paint) {
25 if (SkXfermode::AsCoeff(paint->getXfermode(), &srcCoeff, &dstCoeff)){
34 if (paint->getAlpha() != 255) {
41 } else if (paint->getShader() && !paint->getShader()->isOpaque()) {
44 if (paint->getColorFilter() &&
45 ((paint->getColorFilter()->getFlags() &
51 if (paint->getAlpha() != 0) {
54 if (paint
80 NeedsDeepCopy(const SkPaint& paint) argument
[all...]
/external/chromium_org/skia/ext/
H A Dpaint_simplifier.cc12 bool PaintHasBitmap(const SkPaint &paint) { argument
13 SkShader* shader = paint.getShader();
34 bool PaintSimplifier::filter(SkPaint* paint, Type type) { argument
36 if (type == kBitmap_Type || PaintHasBitmap(*paint))
42 paint->setAntiAlias(false);
44 paint->setSubpixelText(false);
45 paint->setLCDRenderText(false);
47 paint->setMaskFilter(NULL);
50 //paint->setColor(SkColorSetRGB(255, 127, 127));
/external/chromium_org/third_party/skia/src/core/
H A DSkPaintPriv.cpp15 bool isPaintOpaque(const SkPaint* paint, argument
20 if (!paint) {
25 if (SkXfermode::AsCoeff(paint->getXfermode(), &srcCoeff, &dstCoeff)){
34 if (paint->getAlpha() != 255) {
41 } else if (paint->getShader() && !paint->getShader()->isOpaque()) {
44 if (paint->getColorFilter() &&
45 ((paint->getColorFilter()->getFlags() &
51 if (paint->getAlpha() != 0) {
54 if (paint
80 NeedsDeepCopy(const SkPaint& paint) argument
[all...]
H A DSkPaintPriv.h15 /** Returns true if draw calls that use the paint will completely occlude
17 @param paint The paint to be analyzed, NULL is equivalent to
18 the default paint.
19 @param bmpReplacesShader a bitmap to be used in place of the paint's
21 @return true if paint is opaque
23 bool isPaintOpaque(const SkPaint* paint,
26 /** Returns true if the provided paint has fields which are not
28 @param paint the paint t
[all...]
/external/chromium_org/third_party/skia/tests/
H A DGpuDrawPathTest.cpp23 SkPaint paint; local
24 canvas->drawRect(SkRect(), paint); local
25 canvas->drawPath(SkPath(), paint); local
26 canvas->drawOval(SkRect(), paint); local
27 canvas->drawRect(SkRect(), paint); local
28 canvas->drawRRect(SkRRect(), paint); local
31 paint.setAntiAlias(true);
32 paint.setStyle(SkPaint::kStroke_Style);
33 paint.setColor(SK_ColorGRAY);
34 paint
36 canvas->drawRect(SkRect(), paint); local
37 canvas->drawPath(SkPath(), paint); local
38 canvas->drawOval(SkRect(), paint); local
39 canvas->drawRect(SkRect(), paint); local
40 canvas->drawRRect(SkRRect(), paint); local
[all...]
/external/chromium_org/third_party/WebKit/Source/core/paint/
H A DListItemPainter.cpp6 #include "core/paint/ListItemPainter.h"
8 #include "core/paint/BlockPainter.h"
15 void ListItemPainter::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) function in class:blink::ListItemPainter
20 BlockPainter(m_renderListItem).paint(paintInfo, paintOffset);
/external/chromium_org/third_party/skia/samplecode/
H A DSampleEmboss.cpp50 SkPaint paint; local
52 paint.setAntiAlias(true);
53 paint.setStyle(SkPaint::kStroke_Style);
54 paint.setStrokeWidth(SkIntToScalar(10));
55 paint.setMaskFilter(SkEmbossMaskFilter::Create(
57 paint.setShader(new SkColorShader(SK_ColorBLUE))->unref();
58 paint.setDither(true);
61 SkIntToScalar(30), paint);

Completed in 509 milliseconds

1234567891011>>