/frameworks/base/libs/hwui/tests/unit/ |
D | FatalTestCanvas.h | 31 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) { in onDrawDRRect() argument 35 const SkPaint& paint) { in onDrawText() 39 const SkPaint& paint) { in onDrawPosText() 43 const SkPaint& paint) { in onDrawPosTextH() 47 const SkMatrix* matrix, const SkPaint& paint) { in onDrawTextOnPath() 51 const SkRect* cullRect, const SkPaint& paint) { in onDrawTextRSXform() 54 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint) { in onDrawTextBlob() 58 SkBlendMode, const SkPaint& paint) { in onDrawPatch() 61 void onDrawPaint(const SkPaint&) { in onDrawPaint() argument 64 void onDrawRect(const SkRect&, const SkPaint&) { in onDrawRect() argument [all …]
|
D | RecordingCanvasTests.cpp | 68 canvas.drawRect(0, 0, 50, 50, SkPaint()); in OPENGL_PIPELINE_TEST() 69 canvas.drawRect(50, 50, 100, 100, SkPaint()); in OPENGL_PIPELINE_TEST() 85 canvas.drawRect(0, 0, 50, 50, SkPaint()); // rejected at record time in OPENGL_PIPELINE_TEST() 93 SkPaint emptyPaint; in OPENGL_PIPELINE_TEST() 114 canvas.drawArc(0, 0, 200, 200, 0, 180, true, SkPaint()); in OPENGL_PIPELINE_TEST() 115 canvas.drawArc(0, 0, 100, 100, 0, 360, true, SkPaint()); in OPENGL_PIPELINE_TEST() 130 SkPaint paint; in OPENGL_PIPELINE_TEST() 147 canvas.drawRect(10, 20, 90, 180, SkPaint()); in OPENGL_PIPELINE_TEST() 160 canvas.drawRoundRect(0, 0, 100, 100, 10, 10, SkPaint()); in OPENGL_PIPELINE_TEST() 167 canvas.drawRoundRect(0, 0, 100, 100, 0, -1, SkPaint()); in OPENGL_PIPELINE_TEST() [all …]
|
D | BakedOpStateTests.cpp | 32 SkPaint paint; in TEST() 67 SkPaint paint; in TEST() 160 SkPaint strokedPaint; in TEST() 162 strokedPaint.setStyle(SkPaint::kStroke_Style); in TEST() 182 SkPaint paint; in TEST() 230 SkPaint paint; in TEST() 231 paint.setStyle(SkPaint::kStrokeAndFill_Style); in TEST() 244 SkPaint paint; in TEST() 245 paint.setStyle(SkPaint::kStrokeAndFill_Style); in TEST() 259 SkPaint paint; in TEST() [all …]
|
/frameworks/base/libs/hwui/ |
D | SkiaCanvasProxy.h | 56 virtual void onDrawPaint(const SkPaint& paint) override; 58 const SkPaint&) override; 59 virtual void onDrawOval(const SkRect&, const SkPaint&) override; 60 virtual void onDrawRect(const SkRect&, const SkPaint&) override; 61 virtual void onDrawRRect(const SkRRect&, const SkPaint&) override; 62 virtual void onDrawPath(const SkPath& path, const SkPaint&) override; 64 const SkPaint&) override; 66 const SkPaint*) override; 68 const SkPaint* paint, SrcRectConstraint) override; 70 const SkRect& dst, const SkPaint*) override; [all …]
|
D | RecordingCanvas.h | 110 virtual int saveLayer(float left, float top, float right, float bottom, const SkPaint* paint, 114 SkPaint paint; in saveLayerAlpha() 148 virtual void drawPaint(const SkPaint& paint) override; 151 virtual void drawPoint(float x, float y, const SkPaint& paint) override { in drawPoint() 155 virtual void drawPoints(const float* points, int floatCount, const SkPaint& paint) override; 157 const SkPaint& paint) override { in drawLine() 161 virtual void drawLines(const float* points, int floatCount, const SkPaint& paint) override; 162 …virtual void drawRect(float left, float top, float right, float bottom, const SkPaint& paint) over… 163 virtual void drawRegion(const SkRegion& region, const SkPaint& paint) override; 165 float rx, float ry, const SkPaint& paint) override; [all …]
|
D | PathCache.h | 37 class SkPaint; variable 62 PathTask(const SkPath* path, const SkPaint* paint, PathTexture* texture): in PathTask() 70 const SkPaint paint; 131 SkPaint::Join join; 132 SkPaint::Cap cap; 133 SkPaint::Style style; 168 PathDescription(ShapeType shapeType, const SkPaint* paint); 201 PathTexture* getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint); 202 PathTexture* getCircle(float radius, const SkPaint* paint); 203 PathTexture* getOval(float width, float height, const SkPaint* paint); [all …]
|
D | SkiaCanvas.h | 83 const SkPaint* paint, SaveFlags::Flags flags) override; 108 virtual void drawPaint(const SkPaint& paint) override; 110 virtual void drawPoint(float x, float y, const SkPaint& paint) override; 111 virtual void drawPoints(const float* points, int count, const SkPaint& paint) override; 113 const SkPaint& paint) override; 114 virtual void drawLines(const float* points, int count, const SkPaint& paint) override; 116 const SkPaint& paint) override; 117 virtual void drawRegion(const SkRegion& region, const SkPaint& paint) override; 119 float rx, float ry, const SkPaint& paint) override; 120 virtual void drawCircle(float x, float y, float radius, const SkPaint& paint) override; [all …]
|
D | SkiaCanvasProxy.cpp | 44 void SkiaCanvasProxy::onDrawPaint(const SkPaint& paint) { in onDrawPaint() 49 const SkPaint& paint) { in onDrawPoints() 69 SkPaint strokedPaint(paint); in onDrawPoints() 70 strokedPaint.setStyle(SkPaint::kStroke_Style); in onDrawPoints() 86 void SkiaCanvasProxy::onDrawOval(const SkRect& rect, const SkPaint& paint) { in onDrawOval() 90 void SkiaCanvasProxy::onDrawRect(const SkRect& rect, const SkPaint& paint) { in onDrawRect() 94 void SkiaCanvasProxy::onDrawRRect(const SkRRect& roundRect, const SkPaint& paint) { in onDrawRRect() 108 bool useCenter, const SkPaint& paint) { in onDrawArc() 113 void SkiaCanvasProxy::onDrawPath(const SkPath& path, const SkPaint& paint) { in onDrawPath() 118 const SkPaint* paint) { in onDrawBitmap() [all …]
|
D | TessellationCache.h | 64 SkPaint::Cap cap; 65 SkPaint::Style style; 77 Description(Type type, const Matrix4& transform, const SkPaint& paint); 78 void setupMatrixAndPaint(Matrix4* matrix, SkPaint* paint) const; 156 void precacheRoundRect(const Matrix4& transform, const SkPaint& paint, in precacheRoundRect() 160 const VertexBuffer* getRoundRect(const Matrix4& transform, const SkPaint& paint, 180 Buffer* getRectBuffer(const Matrix4& transform, const SkPaint& paint, 182 Buffer* getRoundRectBuffer(const Matrix4& transform, const SkPaint& paint,
|
D | SkiaCanvas.cpp | 187 const SkPaint* paint, SaveFlags::Flags flags) { in saveLayer() 197 SkPaint alphaPaint; in saveLayerAlpha() 442 void SkiaCanvas::drawPaint(const SkPaint& paint) { in drawPaint() 450 void SkiaCanvas::drawPoints(const float* points, int count, const SkPaint& paint, in drawPoints() 464 void SkiaCanvas::drawPoint(float x, float y, const SkPaint& paint) { in drawPoint() 468 void SkiaCanvas::drawPoints(const float* points, int count, const SkPaint& paint) { in drawPoints() 473 const SkPaint& paint) { in drawLine() 477 void SkiaCanvas::drawLines(const float* points, int count, const SkPaint& paint) { in drawLines() 483 const SkPaint& paint) { in drawRect() 489 void SkiaCanvas::drawRegion(const SkRegion& region, const SkPaint& paint) { in drawRegion() [all …]
|
D | PathCache.cpp | 64 , join(SkPaint::kDefault_Join) in PathDescription() 65 , cap(SkPaint::kDefault_Cap) in PathDescription() 66 , style(SkPaint::kFill_Style) in PathDescription() 74 PathDescription::PathDescription(ShapeType type, const SkPaint* paint) in PathDescription() 128 static void computePathBounds(const SkPath* path, const SkPaint* paint, PathTexture* texture, in computePathBounds() 143 static void initPaint(SkPaint& paint) { in initPaint() 154 static sk_sp<Bitmap> drawPath(const SkPath* path, const SkPaint* paint, PathTexture* texture, in drawPath() 165 SkPaint pathPaint(*paint); in drawPath() 268 const SkPaint* paint) { in addTexture() 358 PathTexture* PathCache::get(const SkPath* path, const SkPaint* paint) { in get() [all …]
|
D | PathTessellator.h | 29 class SkPaint; variable 77 static void tessellatePath(const SkPath& path, const SkPaint* paint, 91 static void tessellatePoints(const float* points, int count, const SkPaint* paint, 105 static void tessellateLines(const float* points, int count, const SkPaint* paint,
|
D | RecordingCanvas.cpp | 119 const SkPaint* paint, SaveFlags::Flags flags) { in saveLayer() 254 void RecordingCanvas::drawPaint(const SkPaint& paint) { in drawPaint() 270 void RecordingCanvas::drawPoints(const float* points, int floatCount, const SkPaint& paint) { in drawPoints() 281 void RecordingCanvas::drawLines(const float* points, int floatCount, const SkPaint& paint) { in drawLines() 292 void RecordingCanvas::drawRect(float left, float top, float right, float bottom, const SkPaint& pai… in drawRect() 302 void RecordingCanvas::drawSimpleRects(const float* rects, int vertexCount, const SkPaint* paint) { in drawSimpleRects() 335 void RecordingCanvas::drawRegion(const SkRegion& region, const SkPaint& paint) { in drawRegion() 338 if (paint.getStyle() == SkPaint::kFill_Style in drawRegion() 364 float rx, float ry, const SkPaint& paint) { in drawRoundRect() 399 void RecordingCanvas::drawCircle(float x, float y, float radius, const SkPaint& paint) { in drawCircle() [all …]
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | DumpOpsCanvas.h | 55 void onDrawPaint(const SkPaint&) override { in onDrawPaint() argument 59 void onDrawPath(const SkPath&, const SkPaint&) override { in onDrawPath() argument 63 void onDrawRect(const SkRect&, const SkPaint&) override { in onDrawRect() argument 67 void onDrawRegion(const SkRegion&, const SkPaint&) override { in onDrawRegion() argument 71 void onDrawOval(const SkRect&, const SkPaint&) override { in onDrawOval() argument 75 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) override { in onDrawArc() argument 79 void onDrawRRect(const SkRRect&, const SkPaint&) override { in onDrawRRect() argument 83 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override { in onDrawDRRect() argument 87 void onDrawText(const void*, size_t, SkScalar, SkScalar, const SkPaint&) override { in onDrawText() argument 91 void onDrawPosText(const void*, size_t, const SkPoint[], const SkPaint&) override { in onDrawPosText() argument [all …]
|
D | SkiaRecordingCanvas.cpp | 148 inline static const SkPaint* nonAAPaint(const SkPaint* origPaint, SkPaint* tmpPaint) { in nonAAPaint() 158 void SkiaRecordingCanvas::drawBitmap(Bitmap& bitmap, float left, float top, const SkPaint* paint) { in drawBitmap() 160 SkPaint tmpPaint; in drawBitmap() 171 const SkPaint* paint) { in drawBitmap() 175 SkPaint tmpPaint; in drawBitmap() 184 float dstBottom, const SkPaint* paint) { in drawBitmap() 188 SkPaint tmpPaint; in drawBitmap() 197 float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) { in drawNinePatch() 218 SkPaint tmpPaint; in drawNinePatch()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinSkia.cpp | 33 static void MinikinFontSkia_SetSkiaPaint(const minikin::MinikinFont* font, SkPaint* skPaint, in MinikinFontSkia_SetSkiaPaint() 35 skPaint->setTextEncoding(SkPaint::kGlyphID_TextEncoding); in MinikinFontSkia_SetSkiaPaint() 46 SkPaint skPaint; in GetHorizontalAdvance() 59 SkPaint skPaint; in GetBounds() 117 uint32_t MinikinFontSkia::packPaintFlags(const SkPaint* paint) { in packPaintFlags() 119 SkPaint::Hinting hinting = paint->getHinting(); in packPaintFlags() 121 flags &= (SkPaint::kAntiAlias_Flag | SkPaint::kFakeBoldText_Flag | SkPaint::kLinearText_Flag | in packPaintFlags() 122 SkPaint::kSubpixelText_Flag | SkPaint::kDevKernText_Flag | in packPaintFlags() 123 SkPaint::kEmbeddedBitmapText_Flag | SkPaint::kAutoHinting_Flag | in packPaintFlags() 124 SkPaint::kVerticalText_Flag); in packPaintFlags() [all …]
|
D | Canvas.h | 181 const SkPaint* paint, SaveFlags::Flags flags) = 0; 215 virtual void drawPaint(const SkPaint& paint) = 0; 218 virtual void drawPoint(float x, float y, const SkPaint& paint) = 0; 219 virtual void drawPoints(const float* points, int floatCount, const SkPaint& paint) = 0; 221 const SkPaint& paint) = 0; 222 virtual void drawLines(const float* points, int floatCount, const SkPaint& paint) = 0; 224 const SkPaint& paint) = 0; 225 virtual void drawRegion(const SkRegion& region, const SkPaint& paint) = 0; 227 float rx, float ry, const SkPaint& paint) = 0; 228 virtual void drawCircle(float x, float y, float radius, const SkPaint& paint) = 0; [all …]
|
D | PaintImpl.cpp | 22 SkPaint(), mLetterSpacing(0), mWordSpacing(0), mFontFeatureSettings(), in Paint() 26 Paint::Paint(const Paint& paint) : SkPaint(paint), in Paint() 33 Paint::Paint(const SkPaint& paint) : SkPaint(paint), in Paint() 42 SkPaint::operator=(other); in operator =() 53 return static_cast<const SkPaint&>(a) == static_cast<const SkPaint&>(b) in operator ==()
|
D | Canvas.cpp | 39 const SkPaint& paint, Canvas* canvas) { in drawStroke() 45 void Canvas::drawTextDecorations(float x, float y, float length, const SkPaint& paint) { in drawTextDecorations() 49 SkPaint paintCopy(paint); in drawTextDecorations() 55 if (flags & (SkPaint::kUnderlineText_ReserveFlag | SkPaint::kStrikeThruText_ReserveFlag)) { in drawTextDecorations() 58 if (flags & SkPaint::kUnderlineText_ReserveFlag) { in drawTextDecorations() 72 if (flags & SkPaint::kStrikeThruText_ReserveFlag) { in drawTextDecorations() 82 static void simplifyPaint(int color, SkPaint* paint) { in simplifyPaint() 88 paint->setStrokeJoin(SkPaint::kRound_Join); in simplifyPaint() 95 const SkPaint& paint, float x, float y, minikin::MinikinRect& bounds, in DrawTextFunctor() 132 SkPaint outlinePaint(paint); in operator ()() [all …]
|
D | MinikinSkia.h | 24 class SkPaint; variable 51 static uint32_t packPaintFlags(const SkPaint* paint); 52 static void unpackPaintFlags(SkPaint* paint, uint32_t paintFlags); 55 static void populateSkPaint(SkPaint* paint, const minikin::MinikinFont* font,
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | ShapeAnimation.cpp | 36 std::function<void(Canvas&, float, const SkPaint&)> ops[] = { in createContent() 37 [](Canvas& canvas, float size, const SkPaint& paint) { in createContent() 40 [](Canvas& canvas, float size, const SkPaint& paint) { in createContent() 43 [](Canvas& canvas, float size, const SkPaint& paint) { in createContent() 52 [](Canvas& canvas, float size, const SkPaint& paint) { in createContent() 56 [](Canvas& canvas, float size, const SkPaint& paint) { in createContent() 60 [](Canvas& canvas, float size, const SkPaint& paint) { in createContent() 63 [](Canvas& canvas, float size, const SkPaint& paint) { in createContent() 73 SkPaint paint; in createContent() 75 SkPaint::Style styles[] = { in createContent() [all …]
|
D | ListViewAnimation.cpp | 39 SkPaint paint; in createRandomCharIcon() 48 paint.setTextAlign(SkPaint::kCenter_Align); in createRandomCharIcon() 66 SkPaint paint; in createBoxBitmap() 69 paint.setStyle(filled ? SkPaint::kStrokeAndFill_Style : SkPaint::kStroke_Style); in createBoxBitmap() 80 SkPaint roundRectPaint; in createListItem() 85 SkPaint textPaint; in createListItem() 86 textPaint.setTextEncoding(SkPaint::kGlyphID_TextEncoding); in createListItem()
|
/frameworks/base/libs/hwui/font/ |
D | Font.h | 57 FontDescription(const SkPaint* paint, const SkMatrix& matrix); 86 void render(const SkPaint* paint, const glyph_t* glyphs, 89 void render(const SkPaint* paint, const glyph_t* glyphs, 99 static Font* create(FontRenderer* state, const SkPaint* paint, const SkMatrix& matrix); 115 void precache(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs); 117 void render(const SkPaint* paint, const glyph_t* glyphs, 121 void measure(const SkPaint* paint, const glyph_t* glyphs, 126 CachedGlyphInfo* cacheGlyph(const SkPaint* paint, glyph_t glyph, bool precaching); 127 void updateGlyphCache(const SkPaint* paint, const SkGlyph& skiaGlyph, 145 CachedGlyphInfo* getCachedGlyph(const SkPaint* paint, glyph_t textUnit,
|
/frameworks/base/libs/hwui/utils/ |
D | PaintUtils.h | 35 static inline GLenum getFilter(const SkPaint* paint) { in getFilter() 42 static bool isOpaquePaint(const SkPaint* paint) { in isOpaquePaint() 78 static inline bool getTextShadow(const SkPaint* paint, TextShadow* textShadow) { in getTextShadow() 92 static inline bool hasTextShadow(const SkPaint* paint) { in hasTextShadow() 96 static inline SkBlendMode getBlendModeDirect(const SkPaint* paint) { in getBlendModeDirect() 100 static inline int getAlphaDirect(const SkPaint* paint) { in getAlphaDirect()
|
/frameworks/base/core/jni/android/graphics/ |
D | HarfBuzzNGFaceSkia.cpp | 55 explicit HarfBuzzFontData(SkPaint* paint) : m_paint(paint) { } in HarfBuzzFontData() 56 SkPaint* m_paint; 59 static void SkiaGetGlyphWidthAndExtents(SkPaint* paint, hb_codepoint_t codepoint, hb_position_t* wi… in SkiaGetGlyphWidthAndExtents() 62 paint->setTextEncoding(SkPaint::kGlyphID_TextEncoding); in SkiaGetGlyphWidthAndExtents() 86 SkPaint* paint = hbFontData->m_paint; in harfbuzzGetGlyph() 87 paint->setTextEncoding(SkPaint::kUTF32_TextEncoding); in harfbuzzGetGlyph() 166 hb_font_t* createFont(hb_face_t* face, SkPaint* paint, float sizeX, float sizeY) { in createFont()
|