HomeSort by relevance Sort by last modified time
    Searched refs:skPaint (Results 1 - 18 of 18) sorted by null

  /frameworks/minikin/sample/
MinikinSkia.cpp 2 #include <SkPaint.h>
18 static void MinikinFontSkia_SetSkiaPaint(SkTypeface* typeface, SkPaint* skPaint, const MinikinPaint& paint) {
19 skPaint->setTypeface(typeface);
20 skPaint->setTextEncoding(SkPaint::kGlyphID_TextEncoding);
22 skPaint->setTextSize(paint.size);
27 SkPaint skPaint;
30 MinikinFontSkia_SetSkiaPaint(mTypeface, &skPaint, paint)
    [all...]
  /frameworks/base/libs/hwui/hwui/
MinikinSkia.cpp 19 #include <SkPaint.h>
35 static void MinikinFontSkia_SetSkiaPaint(const MinikinFont* font, SkPaint* skPaint, const MinikinPaint& paint) {
36 skPaint->setTextEncoding(SkPaint::kGlyphID_TextEncoding);
37 skPaint->setTextSize(paint.size);
38 skPaint->setTextScaleX(paint.scaleX);
39 skPaint->setTextSkewX(paint.skewX);
40 MinikinFontSkia::unpackPaintFlags(skPaint, paint.paintFlags);
42 MinikinFontSkia::populateSkPaint(skPaint, font, paint.fakery)
    [all...]
  /external/skia/src/gpu/text/
GrAtlasTextContext.cpp 27 bool GrAtlasTextContext::canDraw(const SkPaint& skPaint,
31 return GrTextUtils::CanDrawAsDistanceFields(skPaint, viewMatrix, props, shaderCaps) ||
32 !SkDraw::ShouldDrawTextAsPaths(skPaint, viewMatrix);
35 GrColor GrAtlasTextContext::ComputeCanonicalColor(const SkPaint& paint, bool lcd) {
70 const GrClip& clip, const SkPaint& skPaint,
85 const SkMaskFilter* mf = skPaint.getMaskFilter();
86 bool canCache = !(skPaint.getPathEffect() ||
102 ComputeCanonicalColor(skPaint, hasLCD)
    [all...]
GrTextUtils.cpp 21 #include "SkPaint.h"
42 const SkSurfaceProps& props, const SkPaint& skPaint,
60 SkGlyphCache* cache = blob->setupCache(runIndex, props, SkPaint::FakeGamma::On,
61 skPaint, &viewMatrix);
65 skPaint.getTextEncoding(), text, byteLength,
66 {x, y}, viewMatrix, skPaint.getTextAlign(),
82 const SkSurfaceProps& props, const SkPaint& skPaint,
102 SkGlyphCache* cache = blob->setupCache(runIndex, props, SkPaint::FakeGamma::On
    [all...]
GrStencilAndCoverTextContext.h 34 const GrClip&, const GrPaint&, const SkPaint&,
39 const GrClip&, const GrPaint&, const SkPaint&,
44 void drawTextBlob(GrContext*, GrDrawContext*, const GrClip&, const SkPaint&,
54 bool canDraw(const SkPaint& skPaint, const SkMatrix&) {
55 return this->internalCanDraw(skPaint);
58 bool internalCanDraw(const SkPaint&);
61 const GrClip& clip, const SkPaint& skPaint,
73 TextRun(const SkPaint& fontAndStroke)
    [all...]
GrStencilAndCoverTextContext.cpp 59 bool GrStencilAndCoverTextContext::internalCanDraw(const SkPaint& skPaint) {
60 if (skPaint.getRasterizer()) {
63 if (skPaint.getMaskFilter()) {
66 if (SkPathEffect* pe = skPaint.getPathEffect()) {
72 return SkPaint::kStroke_Style != skPaint.getStyle() || 0 != skPaint.getStrokeWidth();
77 const SkPaint& skPaint, const SkMatrix& viewMatrix
    [all...]
GrTextUtils.h 25 class SkPaint;
32 * functions. It is not a namespace only because we wish to friend SkPaint
40 const SkPaint&,
46 GrBatchFontCache*, const SkSurfaceProps&, const SkPaint&,
53 static bool CanDrawAsDistanceFields(const SkPaint& skPaint, const SkMatrix& viewMatrix,
58 const SkPaint& skPaint, GrColor color,
64 GrBatchFontCache*, const SkSurfaceProps&, const SkPaint&,
72 const SkPaint& origPaint, const SkMatrix& viewMatrix
    [all...]
GrAtlasTextBlob.cpp 54 SkPaint::FakeGamma fakeGamma,
55 const SkPaint& skPaint,
62 skPaint.getScalerContextDescriptor(desc, props, fakeGamma, viewMatrix);
63 run->fTypeface.reset(SkSafeRef(skPaint.getTypeface()));
168 bool GrAtlasTextBlob::mustRegenerate(const SkPaint& paint,
196 if (fKey.fStyle != SkPaint::kFill_Style &&
258 const SkPaint& skPaint, const SkSurfaceProps& props,
264 uint8_t paintAlpha = skPaint.getAlpha()
    [all...]
GrAtlasTextBlob.h 61 SkPaint::Style fStyle;
72 const SkPaint& paint) {
77 if (key.fStyle != SkPaint::kFill_Style) {
151 SkPaint::FakeGamma fakeGamma,
152 const SkPaint& skPaint,
176 bool mustRegenerate(const SkPaint& paint, GrColor color, const SkMaskFilter::BlurRec& blurRec,
185 const SkPaint& skPaint,
198 const SkPaint& skPaint
    [all...]
GrAtlasTextContext.h 34 bool canDraw(const SkPaint&, const SkMatrix& viewMatrix, const SkSurfaceProps&,
36 void drawText(GrContext*, GrDrawContext*, const GrClip&, const GrPaint&, const SkPaint&,
41 const SkPaint&, const SkMatrix& viewMatrix, const SkSurfaceProps&,
45 void drawTextBlob(GrContext*, GrDrawContext*, const GrClip&, const SkPaint&,
54 inline static GrColor ComputeCanonicalColor(const SkPaint&, bool lcd);
58 const SkPaint& skPaint, GrColor,
68 const SkPaint&, const SkMatrix& viewMatrix,
75 const SkPaint&, const SkMatrix& viewMatrix,
  /external/skia/src/gpu/
GrPathRenderingDrawContext.cpp 19 const SkPaint& skPaint,
33 skPaint, viewMatrix, this->surfaceProps(),
38 const SkPaint& skPaint,
53 grPaint, skPaint, viewMatrix, this->surfaceProps(),
58 void GrPathRenderingDrawContext::drawTextBlob(const GrClip& clip, const SkPaint& skPaint,
72 skPaint, viewMatrix, this->surfaceProps(), blob, x,
SkGrPriv.h 25 class SkPaint;
46 /** Converts an SkPaint to a GrPaint for a given GrContext. The matrix is required in order
47 to convert the SkShader (if any) on the SkPaint. The primitive itself has no color. */
49 const SkPaint& skPaint,
53 /** Same as above but ignores the SkShader (if any) on skPaint. */
55 const SkPaint& skPaint,
58 /** Replaces the SkShader (if any) on skPaint with the passed in GrFragmentProcessor. The processor
62 const SkPaint& skPaint
    [all...]
SkGr.cpp 378 const SkPaint& skPaint,
384 grPaint->setAntiAlias(skPaint.isAntiAlias());
386 // Setup the initial color considering the shader, the SkPaint color, and the presence or not
393 } else if (const SkShader* shader = skPaint.getShader()) {
395 skPaint.getFilterQuality()));
416 GrColor shaderInput = SkColorToOpaqueGrColor(skPaint.getColor());
434 GrColor paintAlpha = SkColorAlphaToGrColor(skPaint.getColor());
441 grPaint->setColor(SkColorToUnpremulGrColor(skPaint.getColor()));
449 GrConstColorProcessor::Create(SkColorToOpaqueGrColor(skPaint.getColor())
    [all...]
GrDrawContext.cpp 109 const SkPaint& skPaint,
122 fAtlasTextContext->drawText(fContext, this, clip, grPaint, skPaint, viewMatrix, fSurfaceProps,
127 const SkPaint& skPaint,
141 fAtlasTextContext->drawPosText(fContext, this, clip, grPaint, skPaint, viewMatrix,
147 void GrDrawContext::drawTextBlob(const GrClip& clip, const SkPaint& skPaint,
160 fAtlasTextContext->drawTextBlob(fContext, this, clip, skPaint, viewMatrix, fSurfaceProps, blob,
  /external/skia/gm/
constcolorprocessor.cpp 102 SkPaint skPaint;
104 skPaint.setShader(fShader);
106 skPaint.setColor(kPaintColors[paintType]);
108 SkAssertResult(SkPaintToGrPaint(context, skPaint, viewMatrix, &grPaint));
125 SkPaint labelPaint;
160 labelPaint.setStyle(SkPaint::kStroke_Style);
mixedtextblobs.cpp 19 static void draw_blob(SkCanvas* canvas, const SkTextBlob* blob, const SkPaint& skPaint,
21 SkPaint clipHairline;
23 clipHairline.setStyle(SkPaint::kStroke_Style);
25 SkPaint paint(skPaint);
50 SkPaint paint;
114 SkPaint paint;
  /external/skia/include/device/xps/
SkXPSDevice.h 23 #include "SkPaint.h"
76 void drawPaint(const SkDraw&, const SkPaint& paint) override;
82 const SkPaint& paint) override;
87 const SkPaint& paint) override;
92 const SkPaint& paint) override;
97 const SkPaint& paint,
105 const SkPaint& paint) override;
111 const SkPaint& paint) override;
117 const SkPaint& paint) override;
123 const SkPoint& offset, const SkPaint& paint) override
    [all...]
  /external/skia/src/device/xps/
SkXPSDevice.cpp 34 #include "SkPaint.h"
    [all...]

Completed in 1152 milliseconds