/external/chromium_org/third_party/skia/gm/ |
H A D | patch.cpp | 26 SkPaint paint; local 36 paint.setColor(SK_ColorBLACK); 37 paint.setStrokeWidth(0.5f); 39 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, bottom, paint); 40 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, bottom + 1, paint); 41 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, top, paint); 42 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, left, paint); 43 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, right, paint); 45 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, top + 1, paint); 46 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, left + 1, paint); 93 SkPaint paint; variable [all...] |
H A D | pathinterior.cpp | 37 SkPaint paint; local 38 paint.setAntiAlias(true); 47 paint.setColor(hasInterior ? 0xFF8888FF : SK_ColorGRAY); 48 canvas->drawPath(path, paint); 49 paint.setStyle(SkPaint::kStroke_Style); 50 paint.setColor(SK_ColorRED); 51 canvas->drawPath(path, paint); 54 paint.setStyle(SkPaint::kFill_Style); 55 paint.setColor(0x8800FF00); 56 canvas->drawRect(rect, paint); [all...] |
H A D | selftest.cpp | 32 SkPaint paint; local 33 paint.setStyle(SkPaint::kFill_Style); 34 paint.setColor(fColor); 35 canvas->drawRectCoords(0, 0, SkIntToScalar(kWidth), SkIntToScalar(kHeight), paint);
|
H A D | shadows.cpp | 16 static void setup(SkPaint* paint, SkColor c, SkScalar strokeWidth) { argument 17 paint->setColor(c); 19 paint->setStyle(SkPaint::kFill_Style); 21 paint->setStyle(SkPaint::kStroke_Style); 22 paint->setStrokeWidth(strokeWidth); 97 SkPaint paint; local 98 paint.setAntiAlias(true); 102 paint.setLooper(shadowLoopers[i]); 105 setup(&paint, gRec[0].fColor, gRec[0].fStrokeWidth); 106 canvas->drawRect(fRect, paint); [all...] |
H A D | shallowgradient.cpp | 67 SkPaint paint; variable 68 paint.setShader(fProc(colors, colorCount, size))->unref(); 69 canvas->drawRect(r, paint);
|
H A D | stringart.cpp | 58 SkPaint paint; local 59 paint.setAntiAlias(true); 60 paint.setStyle(SkPaint::kStroke_Style); 61 paint.setColor(0xFF007700); 63 canvas->drawPath(path, paint);
|
H A D | strokefill.cpp | 35 SkScalar x, SkScalar y, const SkPaint& paint) { 36 SkPaint p(paint); 46 SkPaint paint; local 47 paint.setAntiAlias(true); 48 paint.setTextSize(SkIntToScalar(100)); 49 paint.setStrokeWidth(SkIntToScalar(5)); 51 sk_tool_utils::set_portable_typeface(&paint, "Papyrus"); 52 show_bold(canvas, "Hello", 5, x, y, paint); 54 sk_tool_utils::set_portable_typeface(&paint, "Hiragino Maru Gothic Pro"); 56 show_bold(canvas, hyphen, SK_ARRAY_COUNT(hyphen), x + SkIntToScalar(300), y, paint); 34 show_bold(SkCanvas* canvas, const void* text, int len, SkScalar x, SkScalar y, const SkPaint& paint) argument [all...] |
H A D | strokerect.cpp | 16 SkPaint paint; local 17 paint.setAntiAlias(true); 18 paint.setStyle(doFill ? SkPaint::kStrokeAndFill_Style : SkPaint::kStroke_Style); 20 paint.setColor(SK_ColorGRAY); 21 paint.setStrokeWidth(STROKE_WIDTH); 22 paint.setStrokeJoin(join); 23 canvas->drawRect(rect, paint); 25 paint.setStyle(SkPaint::kStroke_Style); 26 paint.setStrokeWidth(0); 27 paint 65 SkPaint paint; local [all...] |
H A D | verttext.cpp | 62 static void drawBaseline(SkCanvas* canvas, const SkPaint& paint, argument 64 SkScalar total = paint.measureText(gText, gLen); 70 paint.isVerticalText() ? x : x + total, 71 paint.isVerticalText() ? y + total : y, 76 int numChars = paint.getTextWidths(gText, gLen, adv, NULL); 79 if (paint.isVerticalText()) { 93 SkPaint paint; local 94 paint.setAntiAlias(true); 95 paint.setTextSize(SkIntToScalar(TEXT_SIZE)); 96 //paint [all...] |
H A D | verttext2.cpp | 48 SkPaint paint; local 49 paint.setColor(SK_ColorRED); 50 paint.setAntiAlias(true); 53 SkIntToScalar(110), SkIntToScalar(10), paint); 55 SkIntToScalar(110), SkIntToScalar(240), paint); 57 SkIntToScalar(110), SkIntToScalar(470), paint); 76 SkPaint paint; local 77 paint.setColor(SK_ColorBLACK); 78 paint.setAntiAlias(true); 79 paint [all...] |
/external/chromium_org/third_party/skia/samplecode/ |
H A D | GMSampleView.h | 63 SkPaint paint; local 64 paint.setColor(0x40FF8833); 65 canvas->drawRect(r, paint);
|
H A D | SampleFillType.cpp | 41 SkScalar scale, const SkPaint& paint) { 53 canvas->drawPath(fPath, paint); 57 void showFour(SkCanvas* canvas, SkScalar scale, const SkPaint& paint) { argument 59 scale, paint); 61 scale, paint); 63 scale, paint); 65 scale, paint); 71 SkPaint paint; local 74 paint.setAntiAlias(false); 75 paint 40 showPath(SkCanvas* canvas, int x, int y, SkPath::FillType ft, SkScalar scale, const SkPaint& paint) argument [all...] |
H A D | SampleMipMap.cpp | 23 SkPaint paint; local 24 paint.setAntiAlias(true); 26 paint.setColor(SK_ColorRED); 27 canvas.drawOval(r, paint); 28 paint.setColor(SK_ColorBLUE); 29 paint.setStrokeWidth(SkIntToScalar(n)/15); 30 paint.setStyle(SkPaint::kStroke_Style); 31 canvas.drawLine(0, 0, r.fRight, r.fBottom, paint); 32 canvas.drawLine(0, r.fBottom, r.fRight, 0, paint); 79 SkPaint paint; local [all...] |
H A D | SampleRepeatTile.cpp | 19 SkPaint paint; local 29 paint.setColor(colors[ix & 3]); 30 canvas.drawLine(x, 0, x, SkIntToScalar(H - 1), paint); 32 paint.setColor(SK_ColorGRAY); 33 canvas.drawLine(0, 0, SkIntToScalar(W), 0, paint); 36 static void make_paint(SkPaint* paint, SkShader::TileMode tm) { argument 41 paint->setShader(shader)->unref(); 61 SkPaint paint; local 62 make_paint(&paint, SkShader::kRepeat_TileMode); 66 canvas->drawPaint(paint); [all...] |
H A D | SampleTextBox.cpp | 84 SkPaint paint; local 85 paint.setAntiAlias(true); 86 paint.setLCDRenderText(true); 87 paint.setColor(fg); 88 tbox.setText(gText, strlen(gText), paint); 91 paint.setTextSize(SkIntToScalar(i)); 93 canvas->translate(0, tbox.getTextHeight() + paint.getFontSpacing());
|
H A D | SampleTinyBitmap.cpp | 67 SkPaint paint; local 68 paint.setShader(s)->unref(); 69 canvas->drawPaint(paint);
|
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkStrokeRec.cpp | 26 SkStrokeRec::SkStrokeRec(const SkPaint& paint) { argument 27 this->init(paint, paint.getStyle()); 30 SkStrokeRec::SkStrokeRec(const SkPaint& paint, SkPaint::Style styleOverride) { argument 31 this->init(paint, styleOverride); 34 void SkStrokeRec::init(const SkPaint& paint, SkPaint::Style style) { argument 41 fWidth = paint.getStrokeWidth(); 45 if (0 == paint.getStrokeWidth()) { 50 fWidth = paint.getStrokeWidth(); 55 SkDEBUGFAIL("unknown paint styl [all...] |
/external/chromium_org/third_party/skia/src/effects/ |
H A D | SkRectShaderImageFilter.cpp | 78 SkPaint paint; local 81 paint.setShader(SkShader::CreateLocalMatrixShader(fShader, matrix))->unref(); 84 canvas.drawRect(rect, paint);
|
H A D | SkTestImageFilters.cpp | 50 SkPaint paint; local 52 paint.setFilterLevel(SkPaint::kLow_FilterLevel); 54 canvas.drawBitmap(src, 0, 0, &paint);
|
/external/chromium_org/third_party/skia/src/utils/ |
H A D | SkMeshUtils.cpp | 90 const SkColor colors[], const SkPaint& paint) { 94 SkPaint p(paint); 88 Draw(SkCanvas* canvas, const SkBitmap& bitmap, int rows, int cols, const SkPoint verts[], const SkColor colors[], const SkPaint& paint) argument
|
/external/chromium_org/third_party/skia/src/views/animated/ |
H A D | SkBorderView.cpp | 51 SkPaint paint; local 52 SkAnimator::DifferenceType diff = fAnim.draw(canvas, &paint, SkTime::GetMSecs());
|
/external/chromium_org/third_party/skia/tests/ |
H A D | FontObjTest.cpp | 13 static bool is_use_nonlinear_metrics(const SkPaint& paint) { argument 14 return !paint.isSubpixelText() && !paint.isLinearText(); 17 static bool is_enable_auto_hints(const SkPaint& paint) { argument 18 return paint.isAutohinted(); 21 static bool is_enable_bytecode_hints(const SkPaint& paint) { argument 22 return paint.getHinting() >= SkPaint::kFull_Hinting; 25 static void test_cachedfont(skiatest::Reporter* reporter, const SkPaint& paint) { argument 26 SkAutoTUnref<SkFont> font(SkFont::Testing_CreateFromPaint(paint)); 28 // Currently SkFont resolves null into the default, so only test if paint' 77 SkPaint paint; local [all...] |
H A D | LayerDrawLooperTest.cpp | 33 const SkPaint& paint) SK_OVERRIDE { 35 this->INHERITED::drawRect(draw, r, paint); 59 SkPaint paint; local 66 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 67 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrc_Mode)); 68 canvas.drawRect(SkRect::MakeWH(50.0f, 50.0f), paint); 71 paint.reset(); 74 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 75 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)); 76 canvas.drawRect(SkRect::MakeWH(50.0f, 50.0f), paint); 99 SkPaint paint; local 139 SkPaint paint; local [all...] |
H A D | RecordTest.cpp | 62 SkPaint paint; local 63 APPEND(record, SkRecords::DrawRect, paint, rect);
|
H A D | RecorderTest.cpp | 92 SkPaint paint; local 93 paint.setShader(SkShader::CreateEmptyShader())->unref(); 95 REPORTER_ASSERT(r, paint.getShader()->unique()); 99 recorder.saveLayer(&bounds, &paint); 100 REPORTER_ASSERT(r, !paint.getShader()->unique()); 102 REPORTER_ASSERT(r, paint.getShader()->unique());
|