HomeSort by relevance Sort by last modified time
    Searched refs:paint (Results 1 - 25 of 1960) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/chromium_org/third_party/skia/experimental/PdfViewer/
SkPdfGraphicsState.cpp 12 void SkPdfGraphicsState::applyGraphicsState(SkPaint* paint, bool stroking) {
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/
SkPdfGraphicsState.cpp 12 void SkPdfGraphicsState::applyGraphicsState(SkPaint* paint, bool stroking) {
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/
dashcubics.cpp 52 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.setColor(SK_ColorGREEN)
    [all...]
picture.cpp 16 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.setXfermodeMode(SkXfermode::kPlus_Mode)
57 SkPaint paint; variable
    [all...]
bigtext.cpp 35 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);
lcdtext.cpp 48 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);
gradtext.cpp 49 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.setStyle(SkPaint::kFill_Style)
131 SkPaint paint; local
    [all...]
colormatrix.cpp 31 static void setColorMatrix(SkPaint* paint, const SkColorMatrix& matrix) {
32 paint->setColorFilter(SkColorMatrixFilter::Create(matrix))->unref();
35 static void setArray(SkPaint* paint, const SkScalar array[]) {
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...]
patheffects.cpp 18 static void compose_pe(SkPaint* paint) {
19 SkPathEffect* pe = paint->getPathEffect();
28 paint->setPathEffect(compose)->unref();
31 static void hair_pe(SkPaint* paint) {
32 paint->setStrokeWidth(0);
35 static void hair2_pe(SkPaint* paint) {
36 paint->setStrokeWidth(0);
37 compose_pe(paint);
40 static void stroke_pe(SkPaint* paint) {
41 paint->setStrokeWidth(12)
121 SkPaint paint; local
    [all...]
  /external/skia/gm/
dashcubics.cpp 52 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.setColor(SK_ColorGREEN)
    [all...]
colormatrix.cpp 31 static void setColorMatrix(SkPaint* paint, const SkColorMatrix& matrix) {
32 paint->setColorFilter(SkColorMatrixFilter::Create(matrix))->unref();
35 static void setArray(SkPaint* paint, const SkScalar array[]) {
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...]
  /external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/
paint.h 41 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...]
api_paint.c 30 #include "paint.h"
52 void vegaSetPaint(VGPaint paint, VGbitfield paintModes)
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 = paint_to_handle(ctx->state.vg.stroke_paint)
    [all...]
  /external/mesa3d/src/gallium/state_trackers/vega/
paint.h 41 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...]
api_paint.c 30 #include "paint.h"
52 void vegaSetPaint(VGPaint paint, VGbitfield paintModes)
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 = paint_to_handle(ctx->state.vg.stroke_paint)
    [all...]
  /external/skia/src/core/
SkPaintPriv.cpp 15 bool isPaintOpaque(const SkPaint* paint,
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->getColorFilter() &
    [all...]
SkPaintPriv.h 15 /** 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 to be analyze
    [all...]
  /external/chromium_org/skia/ext/
paint_simplifier.cc 12 bool PaintHasBitmap(const SkPaint &paint) {
13 SkShader* shader = paint.getShader();
34 bool PaintSimplifier::filter(SkPaint* paint, Type type) {
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/
SkPaintPriv.h 15 /** 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 to be analyze
    [all...]
SkPaintPriv.cpp 15 bool isPaintOpaque(const SkPaint* paint,
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->getColorFilter() &
    [all...]
  /external/chromium_org/third_party/skia/tests/
GpuDrawPathTest.cpp 23 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.setStrokeWidth(SkIntToScalar(20))
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...]
  /frameworks/base/graphics/java/android/graphics/
LayerRasterizer.java 27 the specified paint, but will not retain a reference to the paint
30 public void addLayer(Paint paint, float dx, float dy) {
31 nativeAddLayer(native_instance, paint.mNativePaint, dx, dy);
34 public void addLayer(Paint paint) {
35 nativeAddLayer(native_instance, paint.mNativePaint, 0, 0);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
TypefaceUtils.java 19 import android.graphics.Paint;
37 private static float getCharHeight(final char[] referenceChar, final Paint paint) {
38 final int key = getCharGeometryCacheKey(referenceChar[0], paint);
45 paint.getTextBounds(referenceChar, 0, 1, sTextHeightBounds);
57 private static float getCharWidth(final char[] referenceChar, final Paint paint) {
58 final int key = getCharGeometryCacheKey(referenceChar[0], paint);
65 paint.getTextBounds(referenceChar, 0, 1, sTextWidthBounds);
72 private static int getCharGeometryCacheKey(final char referenceChar, final Paint paint)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/paint/
ListItemPainter.cpp 6 #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/
SampleEmboss.cpp 50 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 545 milliseconds

1 2 3 4 5 6 7 8 91011>>