Home
last modified time | relevance | path

Searched refs:fPaint (Results 1 – 25 of 58) sorted by relevance

123

/external/skia/src/animator/
DSkPaintParts.cpp25 SkPaintPart::SkPaintPart() : fPaint(NULL) { in SkPaintPart()
29 return fPaint; in getParent()
36 fPaint = (SkDrawPaint*) parent; in setParent()
43 if (fPaint->maskFilter != (SkDrawMaskFilter*) -1) in add()
45 fPaint->maskFilter = this; in add()
46 fPaint->fOwnsMaskFilter = true; in add()
57 if (fPaint->isPaint()) { in add()
58 if (fPaint->pathEffect != (SkDrawPathEffect*) -1) in add()
60 fPaint->pathEffect = this; in add()
61 fPaint->fOwnsPathEffect = true; in add()
[all …]
DSkDrawShader.cpp40 if (fPaint->shader != (SkDrawShader*) -1) in add()
42 fPaint->shader = this; in add()
43 fPaint->fOwnsShader = true; in add()
67 if (fPaint->shader != (SkDrawShader*) -1) in add()
69 fPaint->shader = this; in add()
70 fPaint->fOwnsShader = true; in add()
DSkDrawSaveLayer.cpp46 SkPaint* save = maker.fPaint; in draw()
56 SkPaint local = SkPaint(*maker.fPaint); in draw()
57 maker.fPaint = &local; in draw()
59 maker.fPaint = save; in draw()
DSkDrawColor.cpp137 if (fPaint->color != NULL) in add()
139 fPaint->color = this; in add()
140 fPaint->fOwnsColor = true; in add()
181 return fPaint; in getParent()
227 fPaint = (SkDrawPaint*) parent; in setParent()
/external/skia/bench/
DTextBench.cpp20 SkPaint fPaint; member in TextBench
31 fPaint.setAntiAlias(true); in TextBench()
32 fPaint.setTextSize(SkIntToScalar(ps)); in TextBench()
33 fPaint.setLinearText(linearText); in TextBench()
34 fPaint.setColor(color); in TextBench()
39 fCount = fPaint.getTextWidths(fText.c_str(), fText.size(), widths); in TextBench()
58 fName.printf("text_%g", SkScalarToFloat(fPaint.getTextSize())); in onGetName()
59 if (fPaint.isLinearText()) { in onGetName()
66 if (SK_ColorBLACK != fPaint.getColor()) { in onGetName()
67 fName.appendf("_%02X", fPaint.getAlpha()); in onGetName()
[all …]
DPathBench.cpp20 SkPaint fPaint; member in PathBench
26 fPaint.setStyle(flags & kStroke_Flag ? SkPaint::kStroke_Style : in PathBench()
28 fPaint.setStrokeWidth(SkIntToScalar(5)); in PathBench()
29 fPaint.setStrokeJoin(SkPaint::kBevel_Join); in PathBench()
46 SkPaint paint(fPaint); in onDraw()
/external/skia/src/pdf/
DSkPDFGraphicState.cpp62 int index = find(fPaint); in ~SkPDFGraphicState()
202 : fPaint(paint), in SkPDFGraphicState()
214 new SkPDFScalar(fPaint.getAlpha() * SkScalarInvert(0xFF)); in populateDict()
223 SkASSERT(fPaint.getStrokeCap() >= 0 && fPaint.getStrokeCap() <= 2); in populateDict()
224 insert("LC", new SkPDFInt(fPaint.getStrokeCap()))->unref(); in populateDict()
230 SkASSERT(fPaint.getStrokeJoin() >= 0 && fPaint.getStrokeJoin() <= 2); in populateDict()
231 insert("LJ", new SkPDFInt(fPaint.getStrokeJoin()))->unref(); in populateDict()
233 insert("LW", new SkPDFScalar(fPaint.getStrokeWidth()))->unref(); in populateDict()
234 insert("ML", new SkPDFScalar(fPaint.getStrokeMiter()))->unref(); in populateDict()
239 if (fPaint.getXfermode()) in populateDict()
[all …]
/external/skia/include/pdf/
DSkPDFGraphicState.h75 const SkPaint fPaint;
83 const SkPaint* fPaint; variable
88 fPaint(&gs->fPaint) {} in GSCanonicalEntry()
89 explicit GSCanonicalEntry(const SkPaint* paint) : fPaint(paint) {} in GSCanonicalEntry()
/external/skia/samplecode/
DSampleEffects.cpp71 SkPaint fPaint[SK_ARRAY_COUNT(gPaintProcs)]; member in EffectsView
90 fPaint[i].setAntiAlias(true); in EffectsView()
91 fPaint[i].setColor(COLOR); in EffectsView()
92 gPaintProcs[i](&fPaint[i]); in EffectsView()
116 for (size_t i = 0; i < SK_ARRAY_COUNT(fPaint); i++) { in onDrawContent()
117 canvas->drawPath(fPath, fPaint[i]); in onDrawContent()
DSampleMeasure.cpp84 SkPaint fPaint; member in MeasureView
87 fPaint.setAntiAlias(true); in MeasureView()
88 fPaint.setTextSize(SkIntToScalar(64)); in MeasureView()
103 canvas->translate(fPaint.getTextSize(), fPaint.getTextSize()); in onDrawContent()
104 doMeasure(canvas, fPaint, "Hamburgefons"); in onDrawContent()
DSampleDraw.cpp170 fPaint = p; in setPaint()
177 canvas->drawRect(fRect, fPaint); in onDraw()
180 canvas->drawOval(fRect, fPaint); in onDraw()
190 canvas->drawRoundRect(fRect, rx, ry, fPaint); in onDraw()
199 canvas->drawPath(path, fPaint); in onDraw()
215 SkPaint fPaint; member in RDraw
222 fPaint.setAntiAlias(true); in DrawFactory()
225 const SkPaint& getPaint() const { return fPaint; } in getPaint()
228 fPaint = p; in setPaint()
234 SkPaint fPaint; member in DrawFactory
/external/skia/src/views/
DSkStaticTextView.cpp32 SkScalar width = fPaint.measureText(fText.c_str(), fText.size()); in computeSize()
38 …int lines = width > 0 ? SkTextLineBreaker::CountLines(fText.c_str(), fText.size(), fPaint, width) … in computeSize()
40 this->setHeight(lines * fPaint.getFontSpacing() + fMargin.fY * 2); in computeSize()
116 *paint = fPaint; in getPaint()
121 if (fPaint != paint) in setPaint()
123 fPaint = paint; in setPaint()
141 box.draw(canvas, fText.c_str(), fText.size(), fPaint); in onDraw()
173 inflate_paint(dom, node, &fPaint); in onInflate()
DSkListView.cpp212 fPaint[kBG_Attr].setColor(0);
213 fPaint[kNormalText_Attr].setTextSize(SkIntToScalar(14));
214 fPaint[kHiliteText_Attr].setTextSize(SkIntToScalar(14));
215 fPaint[kHiliteText_Attr].setColor(SK_ColorWHITE);
216 fPaint[kHiliteCell_Attr].setColor(SK_ColorBLUE);
332 return fPaint[attr];
351 canvas->drawPaint(fPaint[kBG_Attr]);
367 canvas->drawRect(r, fPaint[kHiliteCell_Attr]);
376 fPaint[kNormalText_Attr].measureText(0, NULL, &ascent, &descent);
383 p = &fPaint[kHiliteText_Attr];
[all …]
DSkBGViewArtist.cpp7 fPaint.setColor(c); in SkBGViewArtist()
17 canvas->drawPaint(fPaint); in onDraw()
22 SkPaint_Inflate(&fPaint, dom, node); in onInflate()
DSkWidgets.cpp345 SkScalar width = fPaint.measureText(fText.c_str(), fText.size(), NULL, NULL);
351 …int lines = width > 0 ? SkTextLineBreaker::CountLines(fText.c_str(), fText.size(), fPaint, width) …
354 (void)fPaint.measureText(0, NULL, &before, &after);
430 *paint = fPaint;
435 if (fPaint != paint)
437 fPaint = paint;
455 box.draw(canvas, fText.c_str(), fText.size(), fPaint);
484 SkPaint_Inflate(&fPaint, dom, node);
DSkTextBox.cpp222 fPaint = &paint; in setText()
226 this->draw(canvas, fText, fLen, *fPaint); in draw()
230 return SkTextLineBreaker::CountLines(fText, fLen, *fPaint, fBox.width()); in countLines()
234 SkScalar spacing = SkScalarMul(fPaint->getTextSize(), fSpacingMul) + fSpacingAdd; in getTextHeight()
DSkWidget.cpp149 SkPaint::Align align = fPaint.getTextAlign();
165 fPaint.measureText(NULL, 0, &y, NULL);
170 if (fInterp->draw(canvas, fText, x, y, fPaint))
179 canvas->drawText(fText.c_str(), fText.size(), x, y, fPaint);
197 SkPaint_Inflate(&fPaint, dom, node);
/external/skia/gpu/src/
DGrTextContext.cpp54 if (kOne_BlendCoeff != fPaint.fSrcBlendCoeff || in flushGlyphs()
55 kISA_BlendCoeff != fPaint.fDstBlendCoeff || in flushGlyphs()
56 fPaint.hasTexture()) { in flushGlyphs()
60 fDrawTarget->setBlendConstant(fPaint.fColor); in flushGlyphs()
67 fDrawTarget->setBlendFunc(fPaint.fSrcBlendCoeff, fPaint.fDstBlendCoeff); in flushGlyphs()
68 fDrawTarget->setColor(fPaint.fColor); in flushGlyphs()
86 const GrMatrix* extMatrix) : fPaint(paint) { in GrTextContext()
118 fDrawTarget = fContext->getTextTarget(fPaint); in GrTextContext()
219 fContext->drawPath(fPaint, *glyph->fPath, kWinding_PathFill, in drawPackedGlyph()
250 fDrawTarget = fContext->getTextTarget(fPaint); in drawPackedGlyph()
/external/skia/src/effects/
DSkLayerRasterizer.cpp30 SkPaint fPaint; member
43 rec->fPaint.~SkPaint(); in ~SkLayerRasterizer()
50 new (&rec->fPaint) SkPaint(paint); in addLayer()
63 const SkPaint& paint = rec->fPaint; in compute_bounds()
145 draw.drawPath(path, rec->fPaint); in onRasterize()
197 new (&rec->fPaint) SkPaint(buffer); in SkLayerRasterizer()
199 new (&rec->fPaint) SkPaint; in SkLayerRasterizer()
200 paint_read(&rec->fPaint, buffer); in SkLayerRasterizer()
217 rec->fPaint.flatten(buffer); in flatten()
219 paint_write(rec->fPaint, buffer); in flatten()
DSkRectShape.cpp21 fPaint.setAntiAlias(true); in SkPaintShape()
95 fPaint.flatten(buffer); in flatten()
99 fPaint.unflatten(buffer); in SkPaintShape()
/external/skia/src/text/
DSkTextLayout.cpp4 fPaint.setAntiAlias(true); in SkTextStyle()
7 SkTextStyle::SkTextStyle(const SkTextStyle& src) : fPaint(src.fPaint) {} in SkTextStyle()
9 SkTextStyle::SkTextStyle(const SkPaint& paint) : fPaint(paint) {} in SkTextStyle()
/external/skia/include/views/
DSkBGViewArtist.h28 const SkPaint& paint() const { return fPaint; } in paint()
29 SkPaint& paint() { return fPaint; } in paint()
37 SkPaint fPaint;
/external/skia/include/text/
DSkTextLayout.h14 const SkPaint& paint() const { return fPaint; } in paint()
15 SkPaint& paint() { return fPaint; } in paint()
20 SkPaint fPaint;
/external/skia/include/effects/
DSkRectShape.h12 SkPaint& paint() { return fPaint; } in paint()
13 const SkPaint& paint() const { return fPaint; } in paint()
22 SkPaint fPaint;
/external/skia/src/core/
DSkCanvas.cpp78 SkPaint* fPaint; // may be null (in the future) member
90 fPaint = paint ? SkNEW_ARGS(SkPaint, (*paint)) : NULL; in DeviceCM()
98 SkDELETE(fPaint); in ~DeviceCM()
248 fPaint = rec->fPaint; in next()
270 const SkPaint* getPaint() const { return fPaint; } in getPaint()
275 const SkPaint* fPaint; // May be null. member in SkDrawIter
289 fPaint = NULL; in AutoDrawLooper()
303 SkASSERT(fPaint); in paint()
304 return *fPaint; in paint()
315 const SkPaint* fPaint; member in AutoDrawLooper
[all …]

123