Searched refs:stroke (Results 1 - 25 of 80) sorted by relevance

1234

/external/skia/src/gpu/
H A DGrPath.cpp16 void GrPath::ComputeKey(const SkPath& path, const SkStrokeRec& stroke, GrUniqueKey* key) { argument
19 *reinterpret_cast<uint64_t*>(&builder[0]) = ComputeStrokeKey(stroke);
23 uint64_t GrPath::ComputeStrokeKey(const SkStrokeRec& stroke) { argument
44 if (!stroke.needToApply()) {
48 uint64_t key = stroke.getStyle();
49 key |= stroke.getJoin() << kJoinShift;
50 key |= stroke.getCap() << kCapShift;
51 key |= get_top_n_float_bits<kWidthBits>(stroke.getWidth()) << kWidthShift;
52 key |= get_top_n_float_bits<kMiterBits>(stroke.getMiter()) << kMiterShift;
H A DGrDashLinePathRenderer.cpp24 const GrStrokeInfo& stroke,
27 if (stroke.isDashed() && path.isLine(pts)) {
28 return GrDashingEffect::CanDrawDashLine(pts, stroke, viewMatrix);
38 const GrStrokeInfo& stroke,
43 viewMatrix, pts, useAA, stroke);
20 canDrawPath(const GrDrawTarget* target, const GrPipelineBuilder* pipelineBuilder, const SkMatrix& viewMatrix, const SkPath& path, const GrStrokeInfo& stroke, bool antiAlias) const argument
33 onDrawPath(GrDrawTarget* target, GrPipelineBuilder* pipelineBuilder, GrColor color, const SkMatrix& viewMatrix, const SkPath& path, const GrStrokeInfo& stroke, bool useAA) argument
H A DGrPath.h21 * Initialize to a path with a fixed stroke. Stroke must not be hairline.
23 GrPath(GrGpu* gpu, const SkPath& skPath, const SkStrokeRec& stroke) argument
26 fStroke(stroke),
30 static void ComputeKey(const SkPath& path, const SkStrokeRec& stroke, GrUniqueKey* key);
33 bool isEqualTo(const SkPath& path, const SkStrokeRec& stroke) { argument
34 return fSkPath == path && fStroke.hasEqualEffect(stroke);
H A DGrPathRenderer.h82 * @param stroke the stroke information (width, join, cap).
87 const GrStrokeInfo& stroke) const {
89 return this->onGetStencilSupport(target, pipelineBuilder, path, stroke);
101 * @param stroke The stroke information (width, join, cap)
120 * @param stroke the stroke information (width, join, cap)
128 const GrStrokeInfo& stroke,
131 SkASSERT(this->canDrawPath(target, ds, viewMatrix, path, stroke, antiAlia
123 drawPath(GrDrawTarget* target, GrPipelineBuilder* ds, GrColor color, const SkMatrix& viewMatrix, const SkPath& path, const GrStrokeInfo& stroke, bool antiAlias) argument
146 stencilPath(GrDrawTarget* target, GrPipelineBuilder* ds, const SkMatrix& viewMatrix, const SkPath& path, const GrStrokeInfo& stroke) argument
158 IsStrokeHairlineOrEquivalent(const GrStrokeInfo& stroke, const SkMatrix& matrix, SkScalar* outCoverage) argument
199 onStencilPath(GrDrawTarget* target, GrPipelineBuilder* pipelineBuilder, const SkMatrix& viewMatrix, const SkPath& path, const GrStrokeInfo& stroke) argument
[all...]
H A DGrStencilAndCoverPathRenderer.cpp60 const GrStrokeInfo& stroke,
62 return !stroke.getStrokeRec().isHairlineStyle() &&
63 !stroke.isDashed() &&
76 static GrPath* get_gr_path(GrGpu* gpu, const SkPath& skPath, const SkStrokeRec& stroke) { argument
79 GrPath::ComputeKey(skPath, stroke, &key);
82 if (NULL == path || !path->isEqualTo(skPath, stroke)) {
83 path.reset(gpu->pathRendering()->createPath(skPath, stroke));
93 const GrStrokeInfo& stroke) {
96 SkAutoTUnref<GrPath> p(get_gr_path(fGpu, path, stroke.getStrokeRec()));
105 const GrStrokeInfo& stroke,
56 canDrawPath(const GrDrawTarget* target, const GrPipelineBuilder* pipelineBuilder, const SkMatrix& viewMatrix, const SkPath& path, const GrStrokeInfo& stroke, bool antiAlias) const argument
89 onStencilPath(GrDrawTarget* target, GrPipelineBuilder* pipelineBuilder, const SkMatrix& viewMatrix, const SkPath& path, const GrStrokeInfo& stroke) argument
100 onDrawPath(GrDrawTarget* target, GrPipelineBuilder* pipelineBuilder, GrColor color, const SkMatrix& viewMatrix, const SkPath& path, const GrStrokeInfo& stroke, bool antiAlias) argument
[all...]
H A DGrOvalRenderer.h33 const SkStrokeRec& stroke);
40 const SkStrokeRec& stroke);
56 const SkStrokeRec& stroke);
63 const SkStrokeRec& stroke);
70 const SkStrokeRec& stroke);
H A DGrPathRange.cpp17 const SkStrokeRec& stroke)
21 fStroke(stroke) {
29 const SkStrokeRec& stroke)
32 fStroke(stroke) {
15 GrPathRange(GrGpu* gpu, PathGenerator* pathGenerator, const SkStrokeRec& stroke) argument
27 GrPathRange(GrGpu* gpu, int numPaths, const SkStrokeRec& stroke) argument
H A DGrPathRendererChain.cpp38 const GrStrokeInfo& stroke,
63 if (fChain[i]->canDrawPath(target, pipelineBuilder, viewMatrix, path, stroke, antiAlias)) {
66 fChain[i]->getStencilSupport(target, pipelineBuilder, path, stroke);
34 getPathRenderer(const GrDrawTarget* target, const GrPipelineBuilder* pipelineBuilder, const SkMatrix& viewMatrix, const SkPath& path, const GrStrokeInfo& stroke, DrawType drawType, StencilSupport* stencilSupport) argument
H A DGrPathRendering.cpp52 const SkStrokeRec& stroke) {
60 return this->createPathRange(generator, stroke);
68 // Don't bake stroke information into the glyphs, we'll let the GPU do the stroking.
78 return this->createPathRange(generator, stroke);
50 createGlyphs(const SkTypeface* typeface, const SkDescriptor* desc, const SkStrokeRec& stroke) argument
H A DGrPathRange.h20 * Represents a contiguous range of GPU path objects, all with a common stroke.
61 GrPathRange(GrGpu*, PathGenerator*, const SkStrokeRec& stroke);
67 GrPathRange(GrGpu*, int numPaths, const SkStrokeRec& stroke);
H A DGrDefaultPathRenderer.cpp159 static inline bool single_pass_path(const SkPath& path, const SkStrokeRec& stroke) { argument
163 if (!stroke.isHairlineStyle() && !path.isInverseFillType()) {
174 const GrStrokeInfo& stroke) const {
175 if (single_pass_path(path, stroke.getStrokeRec())) {
543 SkTCopyOnFirstWrite<GrStrokeInfo> stroke(origStroke);
547 if (IsStrokeHairlineOrEquivalent(*stroke, viewMatrix, &hairlineCoverage)) {
550 if (!stroke->getStrokeRec().isHairlineStyle()) {
551 stroke.writable()->getStrokeRecPtr()->setHairlineStyle();
555 const bool isHairline = stroke->getStrokeRec().isHairlineStyle();
578 if (single_pass_path(path, stroke
709 canDrawPath(const GrDrawTarget* target, const GrPipelineBuilder* pipelineBuilder, const SkMatrix& viewMatrix, const SkPath& path, const GrStrokeInfo& stroke, bool antiAlias) const argument
721 onDrawPath(GrDrawTarget* target, GrPipelineBuilder* pipelineBuilder, GrColor color, const SkMatrix& viewMatrix, const SkPath& path, const GrStrokeInfo& stroke, bool antiAlias) argument
737 onStencilPath(GrDrawTarget* target, GrPipelineBuilder* pipelineBuilder, const SkMatrix& viewMatrix, const SkPath& path, const GrStrokeInfo& stroke) argument
[all...]
/external/chromium-trace/trace-viewer/tracing/tracing/ui/base/
H A Dline_chart.css8 stroke-width: 1.5px;
H A Dsunburst_chart.css15 stroke: black;
19 stroke: #fff;
H A Dpie_chart.css15 stroke: black;
/external/skia/experimental/AndroidPathRenderer/
H A DGrAndroidPathRenderer.h17 const SkStrokeRec& stroke,
23 const SkStrokeRec& stroke,
H A DGrAndroidPathRenderer.cpp17 const SkStrokeRec& stroke,
20 return ((stroke.isFillStyle() || stroke.getStyle() == SkStrokeRec::kStroke_Style)
30 const SkStrokeRec& stroke,
36 android::uirenderer::PathRenderer::ConvexPathVertices(origPath, stroke, antiAlias, NULL,
16 canDrawPath(const SkPath& path, const SkStrokeRec& stroke, const GrDrawTarget* target, bool antiAlias) const argument
29 onDrawPath(const SkPath& origPath, const SkStrokeRec& stroke, GrDrawTarget* target, bool antiAlias) argument
/external/skia/experimental/StrokePathRenderer/
H A DGrStrokePathRenderer.h21 const SkStrokeRec& stroke,
27 const SkStrokeRec& stroke,
H A DGrStrokePathRenderer.cpp57 const SkStrokeRec& stroke,
65 const bool requiresAACircle = (stroke.getCap() == SkPaint::kRound_Cap) ||
66 (stroke.getJoin() == SkPaint::kRound_Join);
77 return ((stroke.getStyle() == SkStrokeRec::kStroke_Style) && (maxNbVerts < maxVBSize) &&
83 const SkStrokeRec& stroke,
90 SkScalar width = stroke.getWidth();
96 SkPaint::Join join = stroke.getJoin();
97 SkScalar miterLimit = stroke.getMiter();
272 switch (stroke.getCap()) {
/external/mesa3d/src/gallium/state_trackers/vega/
H A Dvg_state.c54 state->stroke.line_width.f = 1.0f;
55 state->stroke.line_width.i = 1;
56 state->stroke.cap_style = VG_CAP_BUTT;
57 state->stroke.join_style = VG_JOIN_MITER;
58 state->stroke.miter_limit.f = 4.0f;
59 state->stroke.miter_limit.i = 4;
60 state->stroke.dash_pattern_num = 0;
61 state->stroke.dash_phase.f = 0.0f;
62 state->stroke.dash_phase.i = 0;
63 state->stroke
[all...]
H A Darc.h72 struct stroker *stroke,
76 struct stroker *stroke,
H A Dapi_params.c111 state->stroke.line_width.f = value;
112 state->stroke.line_width.i = float_to_int_floor(*((VGuint*)(&value)));
115 state->stroke.miter_limit.f = value;
116 state->stroke.miter_limit.i = float_to_int_floor(*((VGuint*)(&value)));
119 state->stroke.dash_phase.f = value;
120 state->stroke.dash_phase.i = float_to_int_floor(*((VGuint*)(&value)));
186 state->stroke.line_width.f = value;
187 state->stroke.line_width.i = value;
194 state->stroke.cap_style = value;
201 state->stroke
[all...]
/external/skia/src/gpu/gl/
H A DGrGLPathRange.cpp14 GrGLPathRange::GrGLPathRange(GrGLGpu* gpu, PathGenerator* pathGenerator, const SkStrokeRec& stroke) argument
15 : INHERITED(gpu, pathGenerator, stroke),
25 const SkStrokeRec& stroke)
26 : INHERITED(gpu, numPaths, stroke),
21 GrGLPathRange(GrGLGpu* gpu, GrGLuint basePathID, int numPaths, size_t gpuMemorySize, const SkStrokeRec& stroke) argument
H A DGrGLPath.cpp94 const SkStrokeRec& stroke) {
171 if (stroke.needToApply()) {
172 SkASSERT(!stroke.isHairlineStyle());
174 PathParameterf(pathID, GR_GL_PATH_STROKE_WIDTH, SkScalarToFloat(stroke.getWidth())));
176 PathParameterf(pathID, GR_GL_PATH_MITER_LIMIT, SkScalarToFloat(stroke.getMiter())));
177 GrGLenum join = join_to_gl_join(stroke.getJoin());
179 GrGLenum cap = cap_to_gl_cap(stroke.getCap());
184 GrGLPath::GrGLPath(GrGLGpu* gpu, const SkPath& path, const SkStrokeRec& stroke) argument
185 : INHERITED(gpu, path, stroke),
188 InitPathObject(gpu, fPathID, fSkPath, stroke);
91 InitPathObject(GrGLGpu* gpu, GrGLuint pathID, const SkPath& skPath, const SkStrokeRec& stroke) argument
[all...]
H A DGrGLPath.h30 GrGLPath(GrGLGpu* gpu, const SkPath& path, const SkStrokeRec& stroke);
H A DGrGLPathRendering.cpp94 GrPath* GrGLPathRendering::createPath(const SkPath& inPath, const SkStrokeRec& stroke) { argument
95 return SkNEW_ARGS(GrGLPath, (fGpu, inPath, stroke));
99 const SkStrokeRec& stroke) {
100 return SkNEW_ARGS(GrGLPathRange, (fGpu, pathGenerator, stroke));
105 const SkStrokeRec& stroke) {
107 return GrPathRendering::createGlyphs(typeface, desc, stroke);
120 return GrPathRendering::createGlyphs(typeface, NULL, stroke);
134 SkAutoTUnref<GrGLPath> templatePath(SkNEW_ARGS(GrGLPath, (fGpu, SkPath(), stroke)));
144 return GrPathRendering::createGlyphs(typeface, NULL, stroke);
151 return SkNEW_ARGS(GrGLPathRange, (fGpu, basePathID, numPaths, gpuMemorySize, stroke));
98 createPathRange(GrPathRange::PathGenerator* pathGenerator, const SkStrokeRec& stroke) argument
103 createGlyphs(const SkTypeface* typeface, const SkDescriptor* desc, const SkStrokeRec& stroke) argument
160 const SkStrokeRec& stroke = path->getStroke(); local
180 const SkStrokeRec& stroke = path->getStroke(); local
207 const SkStrokeRec& stroke = pathRange->getStroke(); local
[all...]

Completed in 6365 milliseconds

1234