/external/skia/samplecode/ |
H A D | SampleAARects.cpp | 80 for (int stroke = 0; stroke < 2; ++stroke) { 81 paints[p].setStyle(stroke ? SkPaint::kStroke_Style : SkPaint::kFill_Style);
|
/external/skia/src/animator/ |
H A D | SkDrawPaint.cpp | 48 SK_MEMBER(stroke, Boolean), 69 shader((SkDrawShader*) -1), strikeThru(-1), stroke(-1), 222 // stroke is legacy; style setting if present overrides stroke 223 if (stroke != -1) 224 paint->setStyle(SkToBool(stroke) ? SkPaint::kStroke_Style : SkPaint::kFill_Style);
|
H A D | SkDrawPaint.h | 54 SkBool stroke; member in class:SkDrawPaint
|
/external/skia/src/device/xps/ |
H A D | SkXPSDevice.cpp | 1097 const bool stroke = (SkPaint::kFill_Style != paint.getStyle()); local 1102 (stroke && ( 1111 HRESULT SkXPSDevice::createXpsRect(const SkRect& rect, BOOL stroke, BOOL fill, argument 1119 return this->createXpsQuad(points, stroke, fill, xpsRect); 1122 BOOL stroke, BOOL fill, variable 1147 stroke, stroke, stroke, 1157 HRM((*xpsQuad)->SetIsClosed(stroke), "Could not set quad close."); 1187 //If trying to paint with a stroke, ignor 1246 BOOL stroke = FALSE; local 1296 close_figure(const SkTDArray<XPS_SEGMENT_TYPE>& segmentTypes, const SkTDArray<BOOL>& segmentStrokes, const SkTDArray<FLOAT>& segmentData, BOOL stroke, BOOL fill, IXpsOMGeometryFigure* figure, IXpsOMGeometryFigureCollection* figures) argument 1317 addXpsPathGeometry( IXpsOMGeometryFigureCollection* xpsFigures, BOOL stroke, BOOL fill, const SkPath& path) argument 1619 shadePath(IXpsOMPath* shadedPath, const SkPaint& shaderPaint, const SkMatrix& matrix, BOOL* fill, BOOL* stroke) argument 1744 BOOL stroke; local [all...] |
/external/skia/src/gpu/ |
H A D | GrAAConvexPathRenderer.cpp | 609 const SkStrokeRec& stroke, 613 stroke.isFillStyle() && !path.isInverseFillType() && path.isConvex()); 608 canDrawPath(const SkPath& path, const SkStrokeRec& stroke, const GrDrawTarget* target, bool antiAlias) const argument
|
H A D | GrAAConvexPathRenderer.h | 19 const SkStrokeRec& stroke, 25 const SkStrokeRec& stroke,
|
H A D | GrAAHairLinePathRenderer.cpp | 26 // AA stroke around the center-curve. See comments in push_quad_index_buffer and 830 const SkStrokeRec& stroke, 837 if (!IsStrokeHairlineOrEquivalent(stroke, 888 const SkStrokeRec& stroke, 894 if (IsStrokeHairlineOrEquivalent(stroke, 829 canDrawPath(const SkPath& path, const SkStrokeRec& stroke, const GrDrawTarget* target, bool antiAlias) const argument 887 onDrawPath(const SkPath& path, const SkStrokeRec& stroke, GrDrawTarget* target, bool antiAlias) argument
|
H A D | GrAAHairLinePathRenderer.h | 21 const SkStrokeRec& stroke, 31 const SkStrokeRec& stroke,
|
H A D | GrAARectRenderer.cpp | 360 * As in miter-stroke, index = a + b, and a is the current index, b is the shift 366 * Following comes a bevel-stroke rect and its indices: 399 // Draw the stroke, from outer edge to inner edge, shift is 8. 729 const SkStrokeRec& stroke, 732 SkScalar width = stroke.getWidth(); 766 if (stroke.getJoin() != SkPaint::kMiter_Join || stroke.getMiter() < SK_ScalarSqrt2) { 781 // For bevel-stroke, use 2 SkRect instances(devOutside and devOutsideAssist) 783 // edge, while vertex number of inner edge is 4, the same as miter-stroke. 824 // coverage, one on the exterior of the stroke an 724 strokeAARect(GrGpu* gpu, GrDrawTarget* target, const SkRect& rect, const SkMatrix& combinedMatrix, const SkRect& devRect, const SkStrokeRec& stroke, bool useVertexCoverage) argument [all...] |
H A D | GrAARectRenderer.h | 39 // TODO: potentialy fuse the fill & stroke methods and differentiate 40 // between them by passing in stroke (==NULL means fill). 68 const SkStrokeRec& stroke,
|
H A D | GrClipMaskManager.cpp | 66 const SkStrokeRec& stroke, 78 return NULL == context->getPathRenderer(*path, stroke, gpu, false, type); 93 SkStrokeRec stroke(SkStrokeRec::kFill_InitStyle); 102 if (path_needs_SW_renderer(this->getContext(), fGpu, path, stroke, element->isAA())) { 419 SkStrokeRec stroke(SkStrokeRec::kFill_InitStyle); 424 pr = this->getContext()->getPathRenderer(path, stroke, fGpu, false, type); 429 pr->drawPath(path, stroke, fGpu, element->isAA()); 452 SkStrokeRec stroke(SkStrokeRec::kFill_InitStyle); 456 *pr = this->getContext()->getPathRenderer(path, stroke, fGpu, false, type); 761 SkStrokeRec stroke(SkStrokeRe 63 path_needs_SW_renderer(GrContext* context, GrGpu* gpu, const SkPath& origPath, const SkStrokeRec& stroke, bool doAA) argument [all...] |
H A D | GrContext.cpp | 804 // cases where the RT is fully inside a stroke. 1110 const SkStrokeRec& stroke, 1113 SkASSERT(stroke.isFillStyle()); 1193 SkStrokeRec* stroke = newStrokeInfo.getStrokeRecPtr(); local 1194 if (SkDashPath::FilterDashPath(effectPath.init(), path, stroke, NULL, info)) { 1270 SkTCopyOnFirstWrite<SkStrokeRec> stroke(strokeInfo.getStrokeRec()); 1273 GrPathRenderer* pr = this->getPathRenderer(*pathPtr, *stroke, target, false, type); 1276 if (!GrPathRenderer::IsStrokeHairlineOrEquivalent(*stroke, this->getMatrix(), NULL)) { 1278 if (stroke->applyToPath(tmpPath.init(), *pathPtr)) { 1280 stroke 1108 is_nested_rects(GrDrawTarget* target, const SkPath& path, const SkStrokeRec& stroke, SkRect rects[2], bool* useVertexCoverage) argument 1761 getPathRenderer(const SkPath& path, const SkStrokeRec& stroke, const GrDrawTarget* target, bool allowSW, GrPathRendererChain::DrawType drawType, GrPathRendererChain::StencilSupport* stencilSupport) argument 1881 createPath(const SkPath& inPath, const SkStrokeRec& stroke) argument [all...] |
H A D | GrDefaultPathRenderer.cpp | 154 static inline bool single_pass_path(const SkPath& path, const SkStrokeRec& stroke) { argument 158 if (!stroke.isHairlineStyle() && !path.isInverseFillType()) { 167 const SkStrokeRec& stroke, 169 if (single_pass_path(path, stroke)) { 191 const SkStrokeRec& stroke, 214 const bool isHairline = stroke.isHairlineStyle(); 332 SkTCopyOnFirstWrite<SkStrokeRec> stroke(origStroke); 335 if (IsStrokeHairlineOrEquivalent(*stroke, target->getDrawState().getViewMatrix(), 341 if (!stroke->isHairlineStyle()) { 342 stroke 165 onGetStencilSupport( const SkPath& path, const SkStrokeRec& stroke, const GrDrawTarget*) const argument 190 createGeom(const SkPath& path, const SkStrokeRec& stroke, SkScalar srcSpaceTol, GrDrawTarget* target, GrPrimitiveType* primType, int* vertexCnt, int* indexCnt, GrDrawTarget::AutoReleaseGeometry* arg) argument 510 canDrawPath(const SkPath& path, const SkStrokeRec& stroke, const GrDrawTarget* target, bool antiAlias) const argument 521 onDrawPath(const SkPath& path, const SkStrokeRec& stroke, GrDrawTarget* target, bool antiAlias) argument 531 onStencilPath(const SkPath& path, const SkStrokeRec& stroke, GrDrawTarget* target) argument [all...] |
H A D | GrDrawTarget.cpp | 553 SkPath::FillType fill, SkStrokeRec::Style stroke) { 577 this->onDrawPaths(pathCount, paths, transforms, fill, stroke, 551 drawPaths(int pathCount, const GrPath** paths, const SkMatrix* transforms, SkPath::FillType fill, SkStrokeRec::Style stroke) argument
|
H A D | GrDrawTarget.h | 355 * @param stroke the stroke for drawing all the paths. 359 SkStrokeRec::Style stroke); 521 SkStrokeRec::Style stroke, 523 this->onDrawPaths(pathCount, paths, transforms, fill, stroke, dstCopy); 519 executeDrawPaths(int pathCount, const GrPath** paths, const SkMatrix* transforms, SkPath::FillType fill, SkStrokeRec::Style stroke, const GrDeviceCoordTexture* dstCopy) argument
|
H A D | GrGpu.cpp | 215 GrPath* GrGpu::createPath(const SkPath& path, const SkStrokeRec& stroke) { argument 218 return this->onCreatePath(path, stroke);
|
H A D | GrGpu.h | 138 GrPath* createPath(const SkPath& path, const SkStrokeRec& stroke);
|
H A D | GrInOrderDrawBuffer.cpp | 463 SkStrokeRec::Style stroke, 485 dp->fStroke = stroke; 460 onDrawPaths(int pathCount, const GrPath** paths, const SkMatrix* transforms, SkPath::FillType fill, SkStrokeRec::Style stroke, const GrDeviceCoordTexture* dstCopy) argument
|
H A D | GrOvalRenderer.cpp | 64 static GrEffectRef* Create(bool stroke) { argument 68 if (stroke) { 137 CircleEdgeEffect(bool stroke) : GrVertexEffect() { argument 139 fStroke = stroke; 175 static GrEffectRef* Create(bool stroke) { argument 179 if (stroke) { 267 EllipseEdgeEffect(bool stroke) : GrVertexEffect() { argument 270 fStroke = stroke; 457 const SkRect& oval, const SkStrokeRec& stroke) 472 this->drawCircle(target, useCoverageAA, oval, stroke); 456 drawOval(GrDrawTarget* target, const GrContext* context, bool useAA, const SkRect& oval, const SkStrokeRec& stroke) argument 494 drawCircle(GrDrawTarget* target, bool useCoverageAA, const SkRect& circle, const SkStrokeRec& stroke) argument 601 drawEllipse(GrDrawTarget* target, bool useCoverageAA, const SkRect& ellipse, const SkStrokeRec& stroke) argument 735 drawDIEllipse(GrDrawTarget* target, bool useCoverageAA, const SkRect& ellipse, const SkStrokeRec& stroke) argument 943 drawRRect(GrDrawTarget* target, GrContext* context, bool useAA, const SkRRect& rrect, const SkStrokeRec& stroke) argument [all...] |
H A D | GrOvalRenderer.h | 35 const SkRect& oval, const SkStrokeRec& stroke); 37 const SkRRect& rrect, const SkStrokeRec& stroke); 44 const SkStrokeRec& stroke); 47 const SkStrokeRec& stroke); 50 const SkStrokeRec& stroke);
|
H A D | GrPath.cpp | 10 GrResourceKey GrPath::ComputeKey(const SkPath& path, const SkStrokeRec& stroke) { argument 19 keyData[1] = stroke.needToApply(); 21 keyData[1] |= stroke.getJoin() << 1; 22 keyData[1] |= stroke.getCap() << 3; 23 keyData[2] = static_cast<uint32_t>(stroke.getMiter()); 24 keyData[3] = static_cast<uint32_t>(stroke.getWidth());
|
H A D | GrPath.h | 21 GrPath(GrGpu* gpu, bool isWrapped, const SkPath& skPath, const SkStrokeRec& stroke) argument 24 fStroke(stroke), 28 static GrResourceKey ComputeKey(const SkPath& path, const SkStrokeRec& stroke); 30 bool isEqualTo(const SkPath& path, const SkStrokeRec& stroke) { argument 31 return fSkPath == path && fStroke == stroke;
|
H A D | GrPathRenderer.h | 82 * @param stroke the stroke information (width, join, cap). 85 const SkStrokeRec& stroke, 88 return this->onGetStencilSupport(path, stroke, target); 97 * @param stroke The stroke information (width, join, cap) 112 * @param stroke the stroke information (width, join, cap) 117 const SkStrokeRec& stroke, 121 SkASSERT(this->canDrawPath(path, stroke, targe 84 getStencilSupport(const SkPath& path, const SkStrokeRec& stroke, const GrDrawTarget* target) const argument 116 drawPath(const SkPath& path, const SkStrokeRec& stroke, GrDrawTarget* target, bool antiAlias) argument 135 stencilPath(const SkPath& path, const SkStrokeRec& stroke, GrDrawTarget* target) argument 143 IsStrokeHairlineOrEquivalent(const SkStrokeRec& stroke, const SkMatrix& matrix, SkScalar* outCoverage) argument 177 onStencilPath(const SkPath& path, const SkStrokeRec& stroke, GrDrawTarget* target) argument [all...] |
H A D | GrPathRendererChain.cpp | 35 const SkStrokeRec& stroke, 61 if (fChain[i]->canDrawPath(path, stroke, target, antiAlias)) { 64 stroke, 34 getPathRenderer(const SkPath& path, const SkStrokeRec& stroke, const GrDrawTarget* target, DrawType drawType, StencilSupport* stencilSupport) argument
|
H A D | GrSWMaskHelper.cpp | 63 void GrSWMaskHelper::draw(const SkPath& path, const SkStrokeRec& stroke, SkRegion::Op op, argument 67 if (stroke.isHairlineStyle()) { 71 if (stroke.isFillStyle()) { 75 paint.setStrokeJoin(stroke.getJoin()); 76 paint.setStrokeCap(stroke.getCap()); 77 paint.setStrokeWidth(stroke.getWidth()); 191 const SkStrokeRec& stroke, 201 helper.draw(path, stroke, SkRegion::kReplace_Op, antiAlias, 0xFF); 189 DrawPathMaskToTexture(GrContext* context, const SkPath& path, const SkStrokeRec& stroke, const SkIRect& resultBounds, bool antiAlias, SkMatrix* matrix) argument
|