Lines Matching defs:skPaint
34 #include "third_party/skia/include/core/SkPaint.h"
167 void DebugShowSkiaPaint(const SkPaint& paint) {
168 if (SkPaint::kFill_Style == paint.getStyle()) {
215 const SkPaint& paint,
227 const SkPaint& paint,
239 SkPaint DebugClipPaint() {
240 SkPaint paint;
243 paint.setStyle(SkPaint::kStroke_Style);
248 SkPaint paint = DebugClipPaint();
253 SkPaint paint = DebugClipPaint();
557 SkPaint* paint) {
749 SkPaint skPaint;
750 skPaint.setAntiAlias(true);
752 skPaint.setBlendMode(SkBlendMode::kPlus);
755 m_pDriver->PaintStroke(&skPaint, &m_drawState, skMatrix);
764 skPaint.getFillPath(m_skPath, &strokePath);
771 skPaint.setStyle(SkPaint::kFill_Style);
772 skPaint.setColor(m_fillColor);
776 DebugShowSkiaDrawPath(m_pDriver.Get(), skCanvas, skPaint, *fillPath);
777 skCanvas->drawPath(*fillPath, skPaint);
780 skPaint.setStyle(SkPaint::kStroke_Style);
781 skPaint.setColor(m_strokeColor);
785 DebugShowSkiaDrawPath(m_pDriver.Get(), skCanvas, skPaint, m_skPath);
786 skCanvas->drawPath(m_skPath, skPaint);
906 SkPaint skPaint;
907 skPaint.setAntiAlias(true);
908 skPaint.setColor(m_fillColor);
911 skPaint.setTypeface(typeface);
913 skPaint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
914 skPaint.setHinting(SkPaint::kNo_Hinting);
915 skPaint.setTextScaleX(m_scaleX);
916 skPaint.setTextSize(SkTAbs(m_fontSize));
917 skPaint.setSubpixelText(true);
929 skPaint.glyphsToUnichars(m_glyphs.begin(), m_glyphs.count(), text.begin());
936 m_rsxform.begin(), nullptr, skPaint);
939 m_positions.begin(), skPaint);
1016 SkPaint skPaint;
1017 m_pDriver->PaintStroke(&skPaint, pGraphState, skMatrix);
1019 skPaint.getFillPath(skPath, &dst_path);
1430 void CFX_SkiaDeviceDriver::PaintStroke(SkPaint* spaint,
1433 SkPaint::Cap cap;
1436 cap = SkPaint::kRound_Cap;
1439 cap = SkPaint::kSquare_Cap;
1442 cap = SkPaint::kButt_Cap;
1445 SkPaint::Join join;
1448 join = SkPaint::kRound_Join;
1451 join = SkPaint::kBevel_Join;
1454 join = SkPaint::kMiter_Join;
1487 spaint->setStyle(SkPaint::kStroke_Style);
1566 SkPaint paint;
1570 paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
1571 paint.setHinting(SkPaint::kNo_Hinting);
1791 SkPaint paint;
1873 SkPaint skPaint;
1874 PaintStroke(&skPaint, pGraphState, skMatrix);
1876 skPaint.getFillPath(skPath, &dst_path);
1910 SkPaint skPaint;
1911 skPaint.setAntiAlias(true);
1913 skPaint.setBlendMode(SkBlendMode::kPlus);
1916 PaintStroke(&skPaint, pGraphState, skMatrix);
1928 skPaint.getFillPath(skPath, &strokePath);
1935 skPaint.setStyle(SkPaint::kFill_Style);
1936 skPaint.setColor(fill_color);
1940 DebugShowSkiaDrawPath(this, m_pCanvas, skPaint, *fillPath);
1941 m_pCanvas->drawPath(*fillPath, skPaint);
1944 skPaint.setStyle(SkPaint::kStroke_Style);
1945 skPaint.setColor(stroke_color);
1949 DebugShowSkiaDrawPath(this, m_pCanvas, skPaint, skPath);
1950 m_pCanvas->drawPath(skPath, skPaint);
1967 SkPaint spaint;
2033 SkPaint paint;
2361 SkPaint paint;
2494 SkPaint paint;