Home
last modified time | relevance | path

Searched refs:SkPaint (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/core/jni/android/graphics/
DMinikinSkia.cpp36 SkPaint paint; in GetGlyph()
38 paint.setTextEncoding(SkPaint::kUTF32_TextEncoding); in GetGlyph()
45 static void MinikinFontSkia_SetSkiaPaint(const MinikinFont* font, SkPaint* skPaint, const MinikinPa… in MinikinFontSkia_SetSkiaPaint()
46 skPaint->setTextEncoding(SkPaint::kGlyphID_TextEncoding); in MinikinFontSkia_SetSkiaPaint()
57 SkPaint skPaint; in GetHorizontalAdvance()
70 SkPaint skPaint; in GetBounds()
101 uint32_t MinikinFontSkia::packPaintFlags(const SkPaint* paint) { in packPaintFlags()
103 SkPaint::Hinting hinting = paint->getHinting(); in packPaintFlags()
105 flags &= (SkPaint::kAntiAlias_Flag | SkPaint::kFakeBoldText_Flag | SkPaint::kLinearText_Flag | in packPaintFlags()
106 SkPaint::kSubpixelText_Flag | SkPaint::kDevKernText_Flag | in packPaintFlags()
[all …]
DSkiaCanvas.cpp69 const SkPaint* paint, SkCanvas::SaveFlags flags);
92 virtual void drawPaint(const SkPaint& paint);
94 virtual void drawPoint(float x, float y, const SkPaint& paint);
95 virtual void drawPoints(const float* points, int count, const SkPaint& paint);
97 const SkPaint& paint);
98 virtual void drawLines(const float* points, int count, const SkPaint& paint);
99 virtual void drawRect(float left, float top, float right, float bottom, const SkPaint& paint);
101 float rx, float ry, const SkPaint& paint);
102 virtual void drawCircle(float x, float y, float radius, const SkPaint& paint);
103 virtual void drawOval(float left, float top, float right, float bottom, const SkPaint& paint);
[all …]
DPaintImpl.cpp25 Paint::Paint() : SkPaint(), in Paint()
29 Paint::Paint(const Paint& paint) : SkPaint(paint), in Paint()
38 SkPaint::operator=(other); in operator =()
47 return static_cast<const SkPaint&>(a) == static_cast<const SkPaint&>(b) in operator ==()
DDrawFilter.cpp37 SkPaint::FilterLevel desiredLevel) in CompatFlagsDrawFilter()
42 virtual bool filter(SkPaint* paint, Type type) { in filter()
49 const SkPaint::FilterLevel fDesiredLevel;
84 SkPaint::kLow_FilterLevel); in CreatePaintFlagsDF()
87 SkPaint::kNone_FilterLevel); in CreatePaintFlagsDF()
DHarfBuzzNGFaceSkia.cpp51 HarfBuzzFontData(SkPaint* paint) : m_paint(paint) { } in HarfBuzzFontData()
52 SkPaint* m_paint;
55 static void SkiaGetGlyphWidthAndExtents(SkPaint* paint, hb_codepoint_t codepoint, hb_position_t* wi… in SkiaGetGlyphWidthAndExtents()
58 paint->setTextEncoding(SkPaint::kGlyphID_TextEncoding); in SkiaGetGlyphWidthAndExtents()
86 SkPaint* paint = hbFontData->m_paint; in harfbuzzGetGlyph()
88 paint->setTextEncoding(SkPaint::kUTF16_TextEncoding); in harfbuzzGetGlyph()
163 hb_font_t* createFont(hb_face_t* face, SkPaint* paint, float sizeX, float sizeY) { in createFont()
DMinikinSkia.h46 static uint32_t packPaintFlags(const SkPaint* paint);
47 static void unpackPaintFlags(SkPaint* paint, uint32_t paintFlags);
50 static void populateSkPaint(SkPaint* paint, const MinikinFont* font, FontFakery fakery);
DNinePatchImpl.cpp71 const SkBitmap& bitmap, const SkPaint& paint, in drawStretchyPatch()
75 ((SkPaint*)&paint)->setColor(modAlpha(colorHint, paint.getAlpha())); in drawStretchyPatch()
77 ((SkPaint*)&paint)->setColor(initColor); in drawStretchyPatch()
85 ((SkPaint*)&paint)->setColor(c); in drawStretchyPatch()
87 ((SkPaint*)&paint)->setColor(prev); in drawStretchyPatch()
107 const SkPaint* paint, SkRegion** outRegion) { in NinePatch_Draw()
112 SkPaint defaultPaint; in NinePatch_Draw()
178 const SkColor initColor = ((SkPaint*)paint)->getColor(); in NinePatch_Draw()
/frameworks/base/libs/hwui/
DOpenGLRenderer.h147 const SkPaint* paint, int flags) { in saveLayer()
154 const SkPaint* paint, int flags, const SkPath* convexMask);
157 const SkPaint* paint, int flags);
161 virtual status_t drawBitmap(const SkBitmap* bitmap, const SkPaint* paint);
163 TextureVertex* vertices, bool pureTranslate, const Rect& bounds, const SkPaint* paint);
166 float dstRight, float dstBottom, const SkPaint* paint);
167 virtual status_t drawBitmapData(const SkBitmap* bitmap, const SkPaint* paint);
169 const float* vertices, const int* colors, const SkPaint* paint);
171 TextureVertex* vertices, uint32_t indexCount, const SkPaint* paint);
173 float left, float top, float right, float bottom, const SkPaint* paint);
[all …]
DRenderer.h72 static inline bool paintWillNotDraw(const SkPaint& paint) { in paintWillNotDraw()
79 static inline bool paintWillNotDrawText(const SkPaint& paint) { in paintWillNotDrawText()
149 const SkPaint* paint, int flags) = 0;
153 SkPaint paint; in saveLayerAlpha()
186 virtual status_t drawBitmap(const SkBitmap* bitmap, const SkPaint* paint) = 0;
189 float dstRight, float dstBottom, const SkPaint* paint) = 0;
190 virtual status_t drawBitmapData(const SkBitmap* bitmap, const SkPaint* paint) = 0;
192 const float* vertices, const int* colors, const SkPaint* paint) = 0;
194 float left, float top, float right, float bottom, const SkPaint* paint) = 0;
198 const SkPaint* paint) = 0;
[all …]
DDisplayListRenderer.h82 const SkPaint* paint, int flags);
112 virtual status_t drawBitmap(const SkBitmap* bitmap, const SkPaint* paint);
115 float dstRight, float dstBottom, const SkPaint* paint);
116 virtual status_t drawBitmapData(const SkBitmap* bitmap, const SkPaint* paint);
118 const float* vertices, const int* colors, const SkPaint* paint);
120 float left, float top, float right, float bottom, const SkPaint* paint);
124 const SkPaint* paint);
125 virtual status_t drawRects(const float* rects, int count, const SkPaint* paint);
127 float rx, float ry, const SkPaint* paint);
132 virtual status_t drawCircle(float x, float y, float radius, const SkPaint* paint);
[all …]
DPathCache.h34 class SkPaint; variable
113 SkPaint::Join join;
114 SkPaint::Cap cap;
115 SkPaint::Style style;
150 PathDescription(ShapeType shapeType, const SkPaint* paint);
189 PathTexture* getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint);
190 PathTexture* getCircle(float radius, const SkPaint* paint);
191 PathTexture* getOval(float width, float height, const SkPaint* paint);
192 PathTexture* getRect(float width, float height, const SkPaint* paint);
194 bool useCenter, const SkPaint* paint);
[all …]
DTessellationCache.h31 class SkPaint; variable
59 SkPaint::Cap cap;
60 SkPaint::Style style;
72 Description(Type type, const Matrix4& transform, const SkPaint& paint);
74 void setupMatrixAndPaint(Matrix4* matrix, SkPaint* paint) const;
124 void precacheRoundRect(const Matrix4& transform, const SkPaint& paint, in precacheRoundRect()
128 const VertexBuffer* getRoundRect(const Matrix4& transform, const SkPaint& paint,
149 Buffer* getRectBuffer(const Matrix4& transform, const SkPaint& paint,
151 Buffer* getRoundRectBuffer(const Matrix4& transform, const SkPaint& paint,
DGammaFontRenderer.h35 virtual FontRenderer& getFontRenderer(const SkPaint* paint) = 0;
40 virtual void describe(ProgramDescription& description, const SkPaint* paint) const = 0;
73 FontRenderer& getFontRenderer(const SkPaint* paint) { in getFontRenderer()
88 void describe(ProgramDescription& description, const SkPaint* paint) const;
119 FontRenderer& getFontRenderer(const SkPaint* paint) { in getFontRenderer()
135 void describe(ProgramDescription& description, const SkPaint* paint) const { in describe()
159 FontRenderer& getFontRenderer(const SkPaint* paint);
174 void describe(ProgramDescription& description, const SkPaint* paint) const { in describe()
DDisplayListRenderer.cpp120 const SkPaint* paint, int flags) { in saveLayer()
200 status_t DisplayListRenderer::drawBitmap(const SkBitmap* bitmap, const SkPaint* paint) { in drawBitmap()
210 float dstRight, float dstBottom, const SkPaint* paint) { in drawBitmap()
231 status_t DisplayListRenderer::drawBitmapData(const SkBitmap* bitmap, const SkPaint* paint) { in drawBitmapData()
240 const float* vertices, const int* colors, const SkPaint* paint) { in drawBitmapMesh()
253 float left, float top, float right, float bottom, const SkPaint* paint) { in drawPatch()
268 const SkPaint* paint) { in drawRect()
275 float rx, float ry, const SkPaint* paint) { in drawRoundRect()
298 status_t DisplayListRenderer::drawCircle(float x, float y, float radius, const SkPaint* paint) { in drawCircle()
316 const SkPaint* paint) { in drawOval()
[all …]
DPathCache.cpp46 join(SkPaint::kDefault_Join), in PathDescription()
47 cap(SkPaint::kDefault_Cap), in PathDescription()
48 style(SkPaint::kFill_Style), in PathDescription()
55 PathDescription::PathDescription(ShapeType type, const SkPaint* paint): in PathDescription()
82 bool PathCache::canDrawAsConvexPath(SkPath* path, const SkPaint* paint) { in canDrawAsConvexPath()
87 void PathCache::computePathBounds(const SkPath* path, const SkPaint* paint, in computePathBounds()
93 void PathCache::computeBounds(const SkRect& bounds, const SkPaint* paint, in computeBounds()
112 static void initPaint(SkPaint& paint) { in initPaint()
124 static void drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, in drawPath()
128 SkPaint pathPaint(*paint); in drawPath()
[all …]
DFontRenderer.h65 int alpha, SkXfermode::Mode mode, const SkPaint* paint): Functor(), in TextSetupFunctor()
79 const SkPaint* paint;
98 void setFont(const SkPaint* paint, const SkMatrix& matrix);
100 void precache(const SkPaint* paint, const char* text, int numGlyphs, const SkMatrix& matrix);
104 bool renderPosText(const SkPaint* paint, const Rect* clip, const char *text,
109 bool renderTextOnPath(const SkPaint* paint, const Rect* clip, const char *text,
131 DropShadow renderDropShadow(const SkPaint* paint, const char *text, uint32_t startIndex,
DDisplayListOp.h118 DrawOp(const SkPaint* paint) in DrawOp()
202 const SkPaint* getPaint(OpenGLRenderer& renderer) { in getPaint()
235 const SkPaint* mPaint; // should be accessed via getPaint() when applying
241 DrawBoundedOp(float left, float top, float right, float bottom, const SkPaint* paint) in DrawBoundedOp()
244 DrawBoundedOp(const Rect& localBounds, const SkPaint* paint) in DrawBoundedOp()
250 DrawBoundedOp(const float* points, int count, const SkPaint* paint) in DrawBoundedOp()
261 DrawBoundedOp(const SkPaint* paint): DrawOp(paint) { } in DrawBoundedOp()
346 SaveLayerOp(float left, float top, float right, float bottom, const SkPaint* paint, int flags) in SaveLayerOp()
392 const SkPaint* mPaint;
393 SkPaint mCachedPaint;
[all …]
DOpenGLRenderer.cpp58 static GLenum getFilter(const SkPaint* paint) { in getFilter()
59 if (!paint || paint->getFilterLevel() != SkPaint::kNone_FilterLevel) { in getFilter()
602 const SkPaint* paint, int flags, const SkPath* convexMask) { in saveLayer()
662 const SkPaint* paint, int flags) { in saveLayerDeferred()
738 const SkPaint* paint, int flags, const SkPath* convexMask) { in createLayer()
883 SkPaint layerPaint; in composeLayer()
995 SkPaint layerPaint; in composeLayerRect()
1075 SkPaint paint; in composeLayerRegion()
1209 SkPaint paint; in drawRegionRectsDebug()
1217 void OpenGLRenderer::drawRegionRects(const SkRegion& region, const SkPaint& paint, bool dirty) { in drawRegionRects()
[all …]
DPathTessellator.h53 static void tessellatePath(const SkPath& path, const SkPaint* paint,
67 static void tessellatePoints(const float* points, int count, const SkPaint* paint,
81 static void tessellateLines(const float* points, int count, const SkPaint* paint,
DCanvasProperty.h39 CanvasPropertyPaint(const SkPaint& initialValue) : value(initialValue) {} in CanvasPropertyPaint()
41 SkPaint value;
/frameworks/base/include/private/graphics/
DCanvas.h59 const SkPaint* paint, SkCanvas::SaveFlags flags) = 0;
90 virtual void drawPaint(const SkPaint& paint) = 0;
93 virtual void drawPoint(float x, float y, const SkPaint& paint) = 0;
94 virtual void drawPoints(const float* points, int count, const SkPaint& paint) = 0;
96 const SkPaint& paint) = 0;
97 virtual void drawLines(const float* points, int count, const SkPaint& paint) = 0;
99 const SkPaint& paint) = 0;
101 float rx, float ry, const SkPaint& paint) = 0;
102 virtual void drawCircle(float x, float y, float radius, const SkPaint& paint) = 0;
104 const SkPaint& paint) = 0;
[all …]
/frameworks/base/libs/hwui/font/
DFont.h55 FontDescription(const SkPaint* paint, const SkMatrix& matrix);
84 void render(const SkPaint* paint, const char* text, uint32_t start, uint32_t len,
87 void render(const SkPaint* paint, const char* text, uint32_t start, uint32_t len,
97 static Font* create(FontRenderer* state, const SkPaint* paint, const SkMatrix& matrix);
113 void precache(const SkPaint* paint, const char* text, int numGlyphs);
115 void render(const SkPaint* paint, const char *text, uint32_t start, uint32_t len,
119 void measure(const SkPaint* paint, const char* text, uint32_t start, uint32_t len,
124 CachedGlyphInfo* cacheGlyph(const SkPaint* paint, glyph_t glyph, bool precaching);
125 void updateGlyphCache(const SkPaint* paint, const SkGlyph& skiaGlyph,
143 CachedGlyphInfo* getCachedGlyph(const SkPaint* paint, glyph_t textUnit,
DFont.cpp48 Font::FontDescription::FontDescription(const SkPaint* paint, const SkMatrix& rasterMatrix) in FontDescription()
283 CachedGlyphInfo* Font::getCachedGlyph(const SkPaint* paint, glyph_t textUnit, bool precaching) { in getCachedGlyph()
299 void Font::render(const SkPaint* paint, const char *text, uint32_t start, uint32_t len, in render()
305 void Font::render(const SkPaint* paint, const char *text, uint32_t start, uint32_t len, in render()
324 if (paint->getTextAlign() != SkPaint::kLeft_Align) { in render()
327 if (paint->getTextAlign() == SkPaint::kCenter_Align) { in render()
355 void Font::measure(const SkPaint* paint, const char* text, uint32_t start, uint32_t len, in measure()
365 void Font::precache(const SkPaint* paint, const char* text, int numGlyphs) { in precache()
386 void Font::render(const SkPaint* paint, const char* text, uint32_t start, uint32_t len, in render()
406 const SkPaint::Align align = paint->getTextAlign(); in render()
[all …]
/frameworks/minikin/sample/
DMinikinSkia.cpp18 SkPaint paint; in GetGlyph()
20 paint.setTextEncoding(SkPaint::kUTF32_TextEncoding); in GetGlyph()
28 static void MinikinFontSkia_SetSkiaPaint(SkTypeface* typeface, SkPaint* skPaint, const MinikinPaint… in MinikinFontSkia_SetSkiaPaint()
30 skPaint->setTextEncoding(SkPaint::kGlyphID_TextEncoding); in MinikinFontSkia_SetSkiaPaint()
37 SkPaint skPaint; in GetHorizontalAdvance()
50 SkPaint skPaint;
Dexample_skia.cpp82 void drawToSkia(SkCanvas *canvas, SkPaint *paint, Layout *layout, float x, float y) { in drawToSkia()
90 paint->setTextEncoding(SkPaint::kGlyphID_TextEncoding); in drawToSkia()
137 SkPaint paint; in runMinikinTest()
139 paint.setStyle(SkPaint::kStroke_Style); in runMinikinTest()
144 paint.setStyle(SkPaint::kFill_Style); in runMinikinTest()

12