/external/skia/tools/lua/ |
H A D | classify_rrect_clips.lua | 6 function classify_rrect(rrect) 7 if (rrect:type() == "simple") then 8 local x, y = rrect:radii(0) 14 elseif (rrect:type() == "complex") then 21 local x, y = rrect:radii(i-1) 56 elseif (rrect:type() == "rect") then 58 elseif (rrect:type() == "oval") then 59 local x, y = rrect:radii(0) 65 elseif (rrect:type() == "empty") then 91 local rrect [all...] |
/external/skia/src/gpu/ops/ |
H A D | GrShadowRRectOp.h | 22 std::unique_ptr<GrMeshDrawOp> Make(GrColor, const SkMatrix& viewMatrix, const SkRRect& rrect,
|
H A D | GrOvalOpFactory.h | 35 const SkRRect& rrect,
|
/external/skia/gm/ |
H A D | rrectclipdrawpaint.cpp | 12 // Exercises code in GrRenderTargetContext that attempts to replace a rrect clip/draw paint with 13 // draw rrect. 15 SkRRect rrect = SkRRect::MakeRectXY(SkRect::MakeXYWH(10.f, 10.f, 236.f, 236.f), 30.f, 40.f); local 25 canvas->clipRRect(rrect, true); 32 canvas->clipRRect(rrect, false); 42 canvas->clipRRect(rrect, true); 51 canvas->clipRRect(rrect, false);
|
H A D | pathcontourstart.cpp | 63 SkRRect rrect; 65 rrect.setRectRadii(rect, radii); 68 path.addRRect(rrect, dir, startIndex); 73 SkRRect rrect; 74 rrect.setRect(rect); 77 path.addRRect(rrect, dir, startIndex); 82 SkRRect rrect; 83 rrect.setOval(rect); 86 path.addRRect(rrect, dir, startIndex);
|
H A D | rrect.cpp | 100 static void draw_rrect_color(SkCanvas* canvas, const SkRRect& rrect) { argument 105 if (rrect.isRect()) { 107 } else if (rrect.isOval()) { 109 } else if (rrect.isSimple()) { 114 canvas->drawRRect(rrect, paint); 117 static void drawrr(SkCanvas* canvas, const SkRRect& rrect, InsetProc proc) { argument 120 proc(rrect, d, d, &rr); 132 return SkString("rrect"); 144 SkRRect rrect[4]; variable 150 rrect[ [all...] |
H A D | bigrrectaaeffect.cpp | 24 BigRRectAAEffectGM(const SkRRect& rrect, const char* name) argument 25 : fRRect(rrect) 28 // Each test case draws the rrect with gaps around it. 29 fTestWidth = SkScalarCeilToInt(rrect.width()) + 2 * kGap; 30 fTestHeight = SkScalarCeilToInt(rrect.height()) + 2 * kGap; 78 SkRRect rrect = fRRect; variable 79 rrect.offset(SkIntToScalar(x + kGap), SkIntToScalar(y + kGap)); 80 sk_sp<GrFragmentProcessor> fp(GrRRectEffect::Make(edgeType, rrect)); 103 // gap between rect for each case that is rendered and exterior of rrect
|
H A D | complexclip_blur_tiled.cpp | 52 SkRRect rrect = SkRRect::MakeRectXY(rect.makeInset(20, 20), 25, 25); variable 53 tileCanvas->clipRRect(rrect, kDifference_SkClipOp, true);
|
H A D | manypaths.cpp | 99 SkRRect rrect = SkRRect::MakeRectXY(rect, 1, 1); variable 103 canvas->drawRRect(rrect, paint);
|
/external/skia/src/effects/shadows/ |
H A D | SkAmbientShadowMaskFilter.cpp | 50 const SkRRect& rrect, 169 SkRRect rrect = SkRRect::MakeOval(path.getBounds()); local 171 SkMatrix::I(), strokeRec, rrect, rrect); 173 SkRRect rrect = SkRRect::MakeRect(path.getBounds()); local 175 SkMatrix::I(), strokeRec, rrect, rrect); 188 const SkRRect& rrect, 191 // TODO: support analytic blurring of general rrect 200 if (!rrect 182 directFilterRRectMaskGPU(GrContext*, GrRenderTargetContext* rtContext, GrPaint&& paint, const GrClip& clip, const SkMatrix& viewMatrix, const SkStrokeRec& strokeRec, const SkRRect& rrect, const SkRRect& devRRect) const argument [all...] |
H A D | SkSpotShadowMaskFilter.cpp | 51 const SkRRect& rrect, 186 SkRRect rrect = SkRRect::MakeOval(path.getBounds()); local 188 SkMatrix::I(), strokeRec, rrect, rrect); 190 SkRRect rrect = SkRRect::MakeRect(path.getBounds()); local 192 SkMatrix::I(), strokeRec, rrect, rrect); 204 const SkRRect& rrect, 207 // TODO: support analytic blurring of general rrect 216 if (!rrect 198 directFilterRRectMaskGPU(GrContext*, GrRenderTargetContext* rtContext, GrPaint&& paint, const GrClip& clip, const SkMatrix& viewMatrix, const SkStrokeRec& strokeRec, const SkRRect& rrect, const SkRRect& devRRect) const argument [all...] |
/external/skia/src/gpu/effects/ |
H A D | GrRRectEffect.cpp | 21 // The effects defined here only handle rrect radii >= kRadiusMin. 81 const SkRRect& rrect) { 86 new CircularRRectEffect(edgeType, circularCornerFlags, rrect)); 90 const SkRRect& rrect) 92 , fRRect(rrect) 113 SkRRect rrect; local 114 rrect.setRectXY(SkRect::MakeWH(w, h), r, r); 119 fp = GrRRectEffect::Make(et, rrect); 152 // The inner rect is the rrect bounds inset by the radius. Its left, top, right, and bottom 153 // edges correspond to components x, y, z, and w, respectively. When a side of the rrect ha 79 Make(GrPrimitiveEdgeType edgeType, uint32_t circularCornerFlags, const SkRRect& rrect) argument 89 CircularRRectEffect(GrPrimitiveEdgeType edgeType, uint32_t circularCornerFlags, const SkRRect& rrect) argument 296 const SkRRect& rrect = crre.getRRect(); local 416 Make(GrPrimitiveEdgeType edgeType, const SkRRect& rrect) argument 423 EllipticalRRectEffect(GrPrimitiveEdgeType edgeType, const SkRRect& rrect) argument 450 SkRRect rrect; local [all...] |
/external/skia/src/core/ |
H A D | SkMaskCache.h | 27 const SkRRect& rrect, SkMask* mask, 37 const SkRRect& rrect, const SkMask& mask, SkCachedData* data,
|
H A D | SkClipStack.h | 72 Element(const SkRRect& rrect, SkClipOp op, bool doAA) { argument 73 this->initRRect(0, rrect, op, doAA); 175 bool contains(const SkRRect& rrect) const { 178 return this->getRect().contains(rrect.getBounds()); 180 // We don't currently have a generalized rrect-rrect containment. 181 return fRRect.contains(rrect.getBounds()) || rrect == fRRect; 183 return fPath.get()->conservativelyContainsRect(rrect.getBounds()); 259 Element(int saveCount, const SkRRect& rrect, SkClipO argument 289 initRRect(int saveCount, const SkRRect& rrect, SkClipOp op, bool doAA) argument [all...] |
H A D | SkClipStackDevice.h | 30 void onClipRRect(const SkRRect& rrect, SkClipOp, bool aa) override;
|
H A D | SkMaskCache.cpp | 23 RRectBlurKey(SkScalar sigma, const SkRRect& rrect, SkBlurStyle style, SkBlurQuality quality) argument 27 , fRRect(rrect) 56 const char* getCategory() const override { return "rrect-blur"; } 78 const SkRRect& rrect, SkMask* mask, SkResourceCache* localCache) { 80 RRectBlurKey key(sigma, rrect, style, quality); 91 const SkRRect& rrect, const SkMask& mask, SkCachedData* data, 93 RRectBlurKey key(sigma, rrect, style, quality); 77 FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, const SkRRect& rrect, SkMask* mask, SkResourceCache* localCache) argument 90 Add(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, const SkRRect& rrect, const SkMask& mask, SkCachedData* data, SkResourceCache* localCache) argument
|
/external/skia/src/gpu/ |
H A D | GrShape.h | 19 * Represents a geometric shape (rrect or path) and the GrStyle that it should be rendered with. 31 * Currently this can only be constructed from a path, rect, or rrect though it can become a path 45 explicit GrShape(const SkRRect& rrect) : GrShape(rrect, GrStyle::SimpleFill()) {} argument 54 GrShape(const SkRRect& rrect, const GrStyle& style) argument 57 fRRectData.fRRect = rrect; 59 fRRectData.fStart = DefaultRRectDirAndStartIndex(rrect, style.hasPathEffect(), 64 GrShape(const SkRRect& rrect, SkPath::Direction dir, unsigned start, bool inverted, argument 68 fRRectData.fRRect = rrect; 79 fRRectData.fStart = DefaultRRectDirAndStartIndex(rrect, fals 99 GrShape(const SkRRect& rrect, const SkPaint& paint) argument 136 asRRect(SkRRect* rrect, SkPath::Direction* dir, unsigned* start, bool* inverted) const argument 429 DefaultRRectDirAndStartIndex(const SkRRect& rrect, bool hasPathEffect, SkPath::Direction* dir) argument [all...] |
H A D | GrClip.h | 26 virtual bool quickContains(const SkRRect& rrect) const { 27 return this->quickContains(rrect.getBounds()); 47 * intersection with a rrect. This will only return true if the rrect does not fully contain 48 * the render target bounds. Moreover, the returned rrect need not be contained by the render 52 * @param rrect If return is true rrect will contain the rrect equivalent to the clip within 54 * @param aa If return is true aa will indicate whether the rrect clip is antialiased. 55 * @return true if the clip is equivalent to a single rrect, fals [all...] |
/external/skia/samplecode/ |
H A D | SampleClock.cpp | 56 SkRRect rrect; variable 58 rrect.setRectRadii(rect, radii); 69 canvas->drawRRect(rrect, paintFill); 84 rrect.setRectRadii(rect, radii); 97 canvas->drawRRect(rrect, paintFill); 124 rrect.setRectRadii(rect, radii); 125 canvas->drawRRect(rrect, paintFill); 145 rrect.setRectRadii(rect, radii); 146 canvas->drawRRect(rrect, paintFill); 167 rrect [all...] |
H A D | SampleSVGPong.cpp | 64 sk_sp<SkSVGRect> make_svg_rrect(const SkRRect& rrect) { argument 66 node->setX(SkSVGLength(rrect.rect().x())); 67 node->setY(SkSVGLength(rrect.rect().y())); 68 node->setWidth(SkSVGLength(rrect.width())); 69 node->setHeight(SkSVGLength(rrect.height())); 70 node->setRx(SkSVGLength(rrect.getSimpleRadii().x())); 71 node->setRy(SkSVGLength(rrect.getSimpleRadii().y())); 200 void initialize(const SkRRect& rrect, SkColor color, argument 202 objectNode = make_svg_rrect(rrect); 205 shadowNode = make_svg_rrect(rrect); [all...] |
/external/skia/tools/debugger/ |
H A D | SkObjectParser.cpp | 169 SkRRect rrect; local 170 if (path.isRRect(&rrect)) { 271 SkString* SkObjectParser::RRectToString(const SkRRect& rrect, const char* title) { argument 277 if (rrect.isEmpty()) { 279 } else if (rrect.isRect()) { 281 } else if (rrect.isOval()) { 283 } else if (rrect.isSimple()) { 285 } else if (rrect.isNinePatch()) { 288 SkASSERT(rrect.isComplex()); 296 mRRect->appendScalar(rrect [all...] |
/external/skia/tests/ |
H A D | MaskCacheTest.cpp | 36 SkRRect rrect; local 37 rrect.setRectXY(rect, 30, 30); 42 SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, quality, rrect, &mask, &cache); 51 SkMaskCache::Add(sigma, style, quality, rrect, mask, data, &cache); 58 data = SkMaskCache::FindAndRef(sigma, style, quality, rrect, &mask, &cache);
|
/external/skia/bench/ |
H A D | PictureOverheadBench.cpp | 99 SkRRect rrect; variable 100 rrect.setOval({0, 0, 1000, 1000}); 105 canvas->drawRRect(rrect, paint);
|
/external/skia/src/gpu/instanced/ |
H A D | InstancedRenderingTypes.h | 55 inline static ShapeType GetRRectShapeType(const SkRRect& rrect) { argument 56 SkASSERT(rrect.getType() >= SkRRect::kRect_Type && 57 rrect.getType() <= SkRRect::kComplex_Type); 58 return static_cast<ShapeType>(rrect.getType() - 1);
|
H A D | InstancedRendering.cpp | 68 std::unique_ptr<GrDrawOp> InstancedRendering::recordRRect(const SkRRect& rrect, argument 73 this->recordShape(GetRRectShapeType(rrect), rrect.rect(), viewMatrix, 74 std::move(paint), rrect.rect(), aa, info)) { 75 op->appendRRectParams(rrect); 261 void InstancedRendering::Op::appendRRectParams(const SkRRect& rrect) { argument 263 switch (rrect.getType()) { 265 const SkVector& radii = rrect.getSimpleRadii(); 266 this->appendParamsTexel(radii.x(), radii.y(), rrect.width(), rrect [all...] |