/external/skia/src/gpu/ |
GrPath.cpp | 11 static inline void write_style_key(uint32_t* key, const GrStyle& style) { 12 // Pass 1 for the scale since the GPU will apply the style not GrStyle::applyToPath(). 13 GrStyle::WriteKey(key, style, GrStyle::Apply::kPathEffectAndStrokeRec, SK_Scalar1); 19 int styleCnt = GrStyle::KeySize(shape.style(), GrStyle::Apply::kPathEffectAndStrokeRec); 37 bool GrPath::isEqualTo(const SkPath& path, const GrStyle& style) const { 39 int cnt0 = GrStyle::KeySize(fStyle, GrStyle::Apply::kPathEffectAndStrokeRec); 40 int cnt1 = GrStyle::KeySize(style, GrStyle::Apply::kPathEffectAndStrokeRec) [all...] |
GrPath.h | 13 #include "GrStyle.h" 24 GrPath(GrGpu* gpu, const SkPath& skPath, const GrStyle& style) 41 bool isEqualTo(const SkPath& path, const GrStyle& style) const; 50 GrStyle fStyle;
|
GrStyle.h | 23 class GrStyle { 29 static const GrStyle& SimpleFill() { 30 static const GrStyle kFill(SkStrokeRec::kFill_InitStyle); 38 static const GrStyle& SimpleHairline() { 39 static const GrStyle kHairline(SkStrokeRec::kHairline_InitStyle); 60 * Computes the key length for a GrStyle. The return will be negative if it cannot be turned 65 static int KeySize(const GrStyle&, Apply, uint32_t flags = 0); 70 * value for the combination of GrStyle, Apply and flags params. This is written so that the key 74 static void WriteKey(uint32_t*, const GrStyle&, Apply, SkScalar scale, uint32_t flags = 0); 76 GrStyle() : GrStyle(SkStrokeRec::kFill_InitStyle) { [all...] |
GrBlurUtils.h | 18 class GrStyle; 56 const GrStyle&,
|
GrPathRendering.h | 20 class GrStyle; 86 * @param GrStyle the style applied to the path. Styles with non-dash path effects are not 90 virtual sk_sp<GrPath> createPath(const SkPath&, const GrStyle&) = 0; 96 * @param GrStyle the common style applied to each path in the range. Styles with non-dash 100 virtual sk_sp<GrPathRange> createPathRange(GrPathRange::PathGenerator*, const GrStyle&) = 0; 122 * @param GrStyle Common style that the GPU will apply to every path. Note that 130 const SkDescriptor*, const GrStyle&);
|
GrShape.h | 11 #include "GrStyle.h" 19 * Represents a geometric shape (rrect or path) and the GrStyle that it should be rendered with. 43 explicit GrShape(const SkPath& path) : GrShape(path, GrStyle::SimpleFill()) {} 45 explicit GrShape(const SkRRect& rrect) : GrShape(rrect, GrStyle::SimpleFill()) {} 47 explicit GrShape(const SkRect& rect) : GrShape(rect, GrStyle::SimpleFill()) {} 49 GrShape(const SkPath& path, const GrStyle& style) : fStyle(style) { 54 GrShape(const SkRRect& rrect, const GrStyle& style) 65 const GrStyle& style) 84 GrShape(const SkRect& rect, const GrStyle& style) 124 const GrStyle& style() const { return fStyle; [all...] |
GrRenderTargetContext.h | 32 class GrStyle; 109 const GrStyle* style = nullptr); 151 const GrStyle& style); 199 const GrStyle& style); 249 const GrStyle& style); 265 const GrStyle& style); 289 const GrStyle& style); 409 const GrClip&, GrPaint&&, GrAA, const SkMatrix&, const SkPath&, const GrStyle&);
|
GrStyle.cpp | 8 #include "GrStyle.h" 11 int GrStyle::KeySize(const GrStyle &style, Apply apply, uint32_t flags) { 33 void GrStyle::WriteKey(uint32_t *key, const GrStyle &style, Apply apply, SkScalar scale, 43 // 2. WriteKey with apply == kPathEffectOnly followed by WriteKey of a GrStyle made 106 void GrStyle::initPathEffect(sk_sp<SkPathEffect> pe) { 129 bool GrStyle::applyPathEffect(SkPath* dst, SkStrokeRec* strokeRec, const SkPath& src) const { 158 bool GrStyle::applyPathEffectToPath(SkPath *dst, SkStrokeRec *remainingStroke, 170 bool GrStyle::applyToPath(SkPath* dst, SkStrokeRec::InitStyle* style, const SkPath& src [all...] |
GrResourceProvider.h | 29 class GrStyle; 149 sk_sp<GrPath> createPath(const SkPath&, const GrStyle&); 150 sk_sp<GrPathRange> createPathRange(GrPathRange::PathGenerator*, const GrStyle&); 152 const SkDescriptor*, const GrStyle&);
|
GrShape.cpp | 192 void GrShape::setInheritedKey(const GrShape &parent, GrStyle::Apply apply, SkScalar scale) { 214 styleKeyFlags |= GrStyle::kClosed_KeyFlag; 217 styleKeyFlags |= GrStyle::kNoJoins_KeyFlag; 219 int styleCnt = GrStyle::KeySize(parent.fStyle, apply, styleKeyFlags); 236 GrStyle::WriteKey(fInheritedKey.get() + parentCnt, parent.fStyle, apply, scale, 262 GrShape::GrShape(const GrShape& parent, GrStyle::Apply apply, SkScalar scale) { 268 (GrStyle::Apply::kPathEffectOnly == apply && !parent.style().pathEffect())) { 293 tmpParent.init(*srcForPathEffect, GrStyle(strokeRec, nullptr)); 300 if (GrStyle::Apply::kPathEffectAndStrokeRec == apply && strokeRec.needToApply()) { 308 tmpParent.init(this->path(), GrStyle(strokeRec, nullptr)) [all...] |
GrTestUtils.h | 24 class GrStyle; 46 void TestStyle(SkRandom*, GrStyle*);
|
GrSWMaskHelper.h | 24 class GrStyle;
|
GrBlurUtils.cpp | 16 #include "GrStyle.h" 137 GrStyle(fillOrHairline)); 148 const GrStyle& style, 162 SkScalar scale = GrStyle::MatrixToScaleFactor(viewMatrix); 252 const GrStyle& style, 269 GrStyle style(paint);
|
GrRenderTargetContext.cpp | 367 GrStyle::SimpleFill()); 488 const GrStyle* style) { 490 style = &GrStyle::SimpleFill(); 546 &GrStyle::SimpleFill()); 553 GrStyle::SimpleFill()); 560 &GrStyle::SimpleFill()); 564 &GrStyle::SimpleFill()); [all...] |
GrClipStackClip.cpp | 115 GrShape shape(path, GrStyle::SimpleFill()); 473 GrShape shape(clipPath, GrStyle::SimpleFill()); 485 GrShape shape(path, GrStyle::SimpleFill());
|
GrResourceProvider.cpp | 363 sk_sp<GrPath> GrResourceProvider::createPath(const SkPath& path, const GrStyle& style) { 369 const GrStyle& style) { 377 const GrStyle& style) {
|
/external/skia/src/gpu/ops/ |
GrDashOp.h | 16 class GrStyle; 28 const SkPoint pts[2], AAMode, const GrStyle& style, 30 bool CanDrawDashLine(const SkPoint pts[2], const GrStyle& style, const SkMatrix& viewMatrix);
|
GrOvalOpFactory.h | 17 class GrStyle; 46 const GrStyle&,
|
/external/skia/src/gpu/gl/ |
GrGLPathRange.h | 12 #include "GrStyle.h" 29 GrGLPathRange(GrGLGpu*, PathGenerator*, const GrStyle&); 40 const GrStyle&); 57 const GrStyle fStyle;
|
GrGLPath.h | 15 class GrStyle; 36 GrGLPath(GrGLGpu*, const SkPath&, const GrStyle&);
|
GrGLPathRendering.h | 20 class GrStyle; 38 sk_sp<GrPath> createPath(const SkPath&, const GrStyle&) override; 40 const GrStyle&) override;
|
GrGLPathRange.cpp | 13 GrGLPathRange::GrGLPathRange(GrGLGpu* gpu, PathGenerator* pathGenerator, const GrStyle& style) 26 const GrStyle& style)
|
/external/skia/tests/ |
GpuDrawPathTest.cpp | 98 GrStyle styles[] = { 99 GrStyle::SimpleFill(), 100 GrStyle::SimpleHairline(), 101 GrStyle(strokePaint) 104 for (const GrStyle& style : styles) { 116 GrPath::ComputeKey(GrShape(path1, GrStyle::SimpleFill()), &key1, &isVolatile); 119 GrPath::ComputeKey(GrShape(path2, GrStyle::SimpleFill()), &key2, &isVolatile); 134 GrPath::ComputeKey(GrShape(path2, GrStyle::SimpleFill()), &tempKey, &isVolatile);
|
DFPathRendererTest.cpp | 40 GrStyle style(rec, nullptr); 43 shape = shape.applyStyle(GrStyle::Apply::kPathEffectAndStrokeRec, 1.f);
|
/external/skia/src/gpu/text/ |
GrStencilAndCoverTextContext.cpp | 201 static inline int style_key_cnt(const GrStyle& style) { 202 int cnt = GrStyle::KeySize(style, GrStyle::Apply::kPathEffectAndStrokeRec); 208 static inline void write_style_key(uint32_t* dst, const GrStyle& style) { 209 // Pass 1 for the scale since the GPU will apply the style not GrStyle::applyToPath(). 210 GrStyle::WriteKey(dst, style, GrStyle::Apply::kPathEffectAndStrokeRec, SK_Scalar1); 231 GrStyle style(skPaint); 357 fStyle = GrStyle(strokeRec, fStyle.refPathEffect()); 372 fStyle = GrStyle(strokeRec, fStyle.refPathEffect()) [all...] |