/external/skia/samplecode/ |
H A D | SampleHairCurves.cpp | 31 SkPaint paint; local 32 paint.setAntiAlias(true); 33 paint.setStyle(SkPaint::kStroke_Style); 34 paint.setStrokeWidth(0); 115 paint.setColor(SK_ColorBLACK); 116 canvas->drawPath(curves, paint); 117 paint.setColor(SK_ColorRED); 118 //canvas->drawPath(hulls, paint); 119 paint.setStyle(SkPaint::kFill_Style); 120 paint [all...] |
H A D | SampleLCD.cpp | 36 SkPaint paint; local 37 paint.setAntiAlias(true); 48 paint.setTextSize(textSize); 51 paint.setLCDRenderText(false); 52 canvas->drawText(text, len, x0, y, paint); 53 paint.setLCDRenderText(true); 54 canvas->drawText(text, len, x1, y, paint); 56 y += paint.getFontSpacing();
|
H A D | SampleLayerMask.cpp | 32 SkPaint paint; local 33 paint.setAntiAlias(true); 44 c.drawOval(bounds, paint); 46 paint.setXfermodeMode(SkXfermode::kDstIn_Mode); 47 canvas->drawBitmap(mask, r.fLeft, r.fTop, &paint); 52 paint.setXfermodeMode(SkXfermode::kDstOut_Mode); 53 canvas->drawPath(p, paint);
|
H A D | SampleLines.cpp | 56 SkPaint paint; local 57 // paint.setAntiAlias(true); 58 paint.setStyle(SkPaint::kStroke_Style); 59 paint.setStrokeWidth(SkScalarHalf(SkIntToScalar(3))); 60 paint.setColor(0xFFFF8800); 61 // paint.setColor(0xFFFFFFFF); 62 canvas->drawRect(r, paint); 73 SkPaint paint; 76 paint.setColor(SK_ColorWHITE); 77 paint [all...] |
H A D | SampleManyRects.cpp | 63 SkPaint paint; local 64 paint.setColor(fRandom.nextU()); 65 canvas->drawRect(rect, paint);
|
H A D | SampleSpiral.cpp | 29 SkPaint paint; local 30 paint.setAntiAlias(true); 31 paint.setStyle(SkPaint::kStroke_Style); 32 paint.setStrokeWidth(SkScalarHalf(SkIntToScalar(3))); 33 paint.setStyle(SkPaint::kFill_Style); 44 paint.setColor(0xFFF00FF0 - i * 0x04000000); 50 canvas->drawRect(r, paint);
|
H A D | SampleStringArt.cpp | 50 SkPaint paint; variable 51 paint.setAntiAlias(true); 52 paint.setStyle(SkPaint::kStroke_Style); 53 paint.setColor(0xFF007700); 55 canvas->drawPath(path, paint);
|
H A D | SampleStrokeRect.cpp | 29 SkPaint paint; local 30 paint.setAntiAlias(true); 31 paint.setStyle(SkPaint::kStroke_Style); 32 paint.setStrokeWidth(SkIntToScalar(20)); 51 canvas->translate(paint.getStrokeWidth(), paint.getStrokeWidth()); 53 paint.setStrokeJoin(gJoin[i]); 59 canvas->drawRect(r, paint);
|
H A D | SampleTextureDomain.cpp | 49 SkPaint paint; local 50 paint.setFilterLevel(SkPaint::kLow_FilterLevel); 56 canvas->drawBitmapRectToRect(fBM, &srcRect, dstRect, &paint); 68 &paint); 74 image->draw(canvas, &srcRect, dstRect, &paint); 85 paint.setMaskFilter(mf)->unref(); 86 image->draw(canvas, &srcRect, dstRect, &paint); 96 paint.setMaskFilter(mf)->unref(); 101 canvas->drawBitmapRectToRect(fBM, NULL, dstRect, &paint);
|
H A D | SampleWritePixels.cpp | 26 SkPaint paint; local 27 paint.setColor(SK_ColorBLUE); 28 canvas.drawCircle(SkIntToScalar(W)/2, SkIntToScalar(H)/2, SkIntToScalar(W)/2, paint);
|
/external/skia/src/animator/ |
H A D | SkXMLAnimatorWriter.cpp | 77 SkPaint paint; local 79 s.draw(canvas, &paint, 0);
|
/external/skia/src/pdf/ |
H A D | SkPDFGraphicState.h | 53 * @param paint The SkPaint to emulate. 55 static SkPDFGraphicState* GetGraphicStateForPaint(const SkPaint& paint); 91 explicit GSCanonicalEntry(const SkPaint* paint) argument 93 fPaint(paint) {} 101 explicit SkPDFGraphicState(const SkPaint& paint); 107 static int Find(const SkPaint& paint);
|
/external/skia/src/views/ |
H A D | SkParsePaint.cpp | 63 void SkPaint_Inflate(SkPaint* paint, const SkDOM& dom, const SkDOM::Node* node) argument 65 SkASSERT(paint); 72 paint->setStrokeWidth(x); 74 paint->setTextSize(x); 81 paint->setStyle(b ? SkPaint::kStroke_Style : SkPaint::kFill_Style); 83 paint->setAntiAlias(b); 85 paint->setLinearText(b); 90 SkColor c = paint->getColor(); 92 paint->setColor(c); 99 paint [all...] |
/external/skia/tests/ |
H A D | AndroidPaintTest.cpp | 25 // We want to make sure that Android's paint options survive a flatten/unflatten round trip. 32 SkPaint paint; local 33 paint.setPaintOptionsAndroid(options); 36 Reconstruct(paint, &reconstructed); 42 // Opposite test of above: make sure the serialized default values of a paint overwrite 43 // non-default values on the paint we're unflattening into. 61 // A paint with default android options should serialize to something smaller than 62 // a paint with non-default android options.
|
H A D | FontMgrTest.cpp | 43 SkPaint paint; local 44 paint.setTextSize(18); 45 font.reset(SkFont::Testing_CreateFromPaint(paint)); 47 REPORTER_ASSERT(reporter, font->getSize() == paint.getTextSize());
|
H A D | PipeTest.cpp | 37 SkPaint paint; local 38 paint.setShader(shader)->unref(); 39 pipeCanvas->drawPaint(paint);
|
H A D | QuickRejectTest.cpp | 62 SkPaint paint; local 68 canvas.drawBitmap(src, 0, 0, &paint); 76 canvas.drawBitmap(src, SkIntToScalar(-10), 0, &paint); 83 paint.setLooper(new TestLooper)->unref(); 84 canvas.drawBitmap(src, SkIntToScalar(-10), 0, &paint);
|
H A D | ReadWriteAlphaTest.cpp | 87 SkPaint paint; local 91 paint.setColor(SK_ColorWHITE); 93 canvas.drawRect(rect, paint);
|
H A D | RecordTest.cpp | 57 SkPaint paint; local 58 SkNEW_PLACEMENT_ARGS(record.append<SkRecords::DrawRect>(), SkRecords::DrawRect, (paint, rect));
|
H A D | RecorderTest.cpp | 59 SkPaint paint; local 60 paint.setShader(SkNEW(SkEmptyShader))->unref(); 62 REPORTER_ASSERT(r, paint.getShader()->unique()); 66 recorder.saveLayer(&bounds, &paint); 67 REPORTER_ASSERT(r, !paint.getShader()->unique()); 69 REPORTER_ASSERT(r, paint.getShader()->unique());
|
H A D | ScaledImageCache.cpp | 22 SkPaint paint; local 23 paint.setFilterLevel(SkPaint::kHigh_FilterLevel); 27 &paint);
|
H A D | ShaderImageFilterTest.cpp | 37 SkPaint paint; local 39 paint.setImageFilter(SkRectShaderImageFilter::Create(s, &cr))->unref(); 40 canvasFilter.drawRect(r, paint); 48 SkPaint paint; local 49 paint.setShader(s)->unref(); 50 canvasShader.drawRect(r, paint);
|
H A D | StrokeTest.cpp | 23 SkPaint paint; local 25 paint.setStyle(SkPaint::kStroke_Style); 26 paint.setStrokeWidth(width); 38 paint.setStrokeJoin(joins[i]); 42 paint.getFillPath(path, &fillPath);
|
H A D | TLSTest.cpp | 20 SkPaint paint; local 24 paint.setTextSize(SkIntToScalar(i)); 25 paint.setAntiAlias(false); 26 paint.measureText(text, len); 27 paint.setAntiAlias(true); 28 paint.measureText(text, len);
|
/external/skia/tools/ |
H A D | skpmaker.cpp | 32 SkPaint paint; local 33 paint.setStyle(SkPaint::kFill_Style); 34 paint.setColor(SK_ColorBLACK); 35 canvas->drawRectCoords(0, 0, SkIntToScalar(width), SkIntToScalar(height), paint); 36 paint.setColor(color); 39 paint);
|