/external/skia/tools/lua/ |
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 = t.rrec [all...] |
/external/skia/src/gpu/ops/ |
GrShadowRRectOp.h | 21 std::unique_ptr<GrDrawOp> Make(GrColor, const SkMatrix& viewMatrix, const SkRRect& rrect,
|
/external/skia/gm/ |
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);
|
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);
|
rrect.cpp | 100 static void draw_rrect_color(SkCanvas* canvas, const SkRRect& rrect) { 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) { 120 proc(rrect, d, d, &rr); 132 return SkString("rrect"); 144 SkRRect rrect[4]; variable 150 rrect[0].setRect(r) [all...] |
bigrrectaaeffect.cpp | 24 BigRRectAAEffectGM(const SkRRect& rrect, const char* name) 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
|
complexclip_blur_tiled.cpp | 52 SkRRect rrect = SkRRect::MakeRectXY(rect.makeInset(20, 20), 25, 25); variable 53 tileCanvas->clipRRect(rrect, kDifference_SkClipOp, true);
|
manypaths.cpp | 99 SkRRect rrect = SkRRect::MakeRectXY(rect, 1, 1); variable 103 canvas->drawRRect(rrect, paint);
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
Geometry.h | 42 inline void ClipRect(BlendRect rrect, BlendRect &brect) 44 if (rrect.bot < brect.bot) brect.bot = rrect.bot; 45 if (rrect.top > brect.top) brect.top = rrect.top; 46 if (rrect.lft < brect.lft) brect.lft = rrect.lft; 47 if (rrect.rgt > brect.rgt) brect.rgt = rrect.rgt;
|
/external/skia/src/gpu/effects/ |
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 295 const SkRRect& rrect = crre.getRRect(); local 449 SkRRect rrect; local [all...] |
/external/skia/src/core/ |
SkMaskCache.h | 27 const SkRRect& rrect, SkMask* mask, 37 const SkRRect& rrect, const SkMask& mask, SkCachedData* data,
|
SkClipStack.h | 71 Element(const SkRRect& rrect, SkClipOp op, bool doAA) { 72 this->initRRect(0, rrect, op, doAA); 174 bool contains(const SkRRect& rrect) const { 177 return this->getRect().contains(rrect.getBounds()); 179 // We don't currently have a generalized rrect-rrect containment. 180 return fRRect.contains(rrect.getBounds()) || rrect == fRRect; 182 return fPath.get()->conservativelyContainsRect(rrect.getBounds()); 253 Element(int saveCount, const SkRRect& rrect, SkClipOp op, bool doAA) [all...] |
SkClipStackDevice.h | 30 void onClipRRect(const SkRRect& rrect, SkClipOp, bool aa) override;
|
SkMaskCache.cpp | 23 RRectBlurKey(SkScalar sigma, const SkRRect& rrect, SkBlurStyle style, SkBlurQuality quality) 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);
|
SkClipStackDevice.cpp | 34 void SkClipStackDevice::onClipRRect(const SkRRect& rrect, SkClipOp op, bool aa) { 35 fClipStack.clipRRect(rrect, this->ctm(), op, aa);
|
/external/skia/src/gpu/ |
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()) {} 54 GrShape(const SkRRect& rrect, const GrStyle& style) 57 fRRectData.fRRect = rrect; 59 fRRectData.fStart = DefaultRRectDirAndStartIndex(rrect, style.hasPathEffect(), 64 GrShape(const SkRRect& rrect, SkPath::Direction dir, unsigned start, bool inverted, 68 fRRectData.fRRect = rrect; 79 fRRectData.fStart = DefaultRRectDirAndStartIndex(rrect, false, &fRRectData.fDir) [all...] |
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, false otherwise [all...] |
/external/skia/samplecode/ |
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.setRectRadii(rect, radii) [all...] |
SampleSVGPong.cpp | 64 sk_sp<SkSVGRect> make_svg_rrect(const SkRRect& rrect) { 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, 202 objectNode = make_svg_rrect(rrect); 205 shadowNode = make_svg_rrect(rrect); [all...] |
/external/skia/tools/debugger/ |
SkObjectParser.cpp | 170 SkRRect rrect; local 171 if (path.isRRect(&rrect)) { 272 SkString* SkObjectParser::RRectToString(const SkRRect& rrect, const char* title) { 278 if (rrect.isEmpty()) { 280 } else if (rrect.isRect()) { 282 } else if (rrect.isOval()) { 284 } else if (rrect.isSimple()) { 286 } else if (rrect.isNinePatch()) { 289 SkASSERT(rrect.isComplex()); 297 mRRect->appendScalar(rrect.rect().left()) [all...] |
/external/skia/src/gpu/instanced/ |
InstancedOp.cpp | 49 void InstancedOp::appendRRectParams(const SkRRect& rrect) { 51 switch (rrect.getType()) { 53 const SkVector& radii = rrect.getSimpleRadii(); 54 this->appendParamsTexel(radii.x(), radii.y(), rrect.width(), rrect.height()); 58 float twoOverW = 2 / rrect.width(); 59 float twoOverH = 2 / rrect.height(); 60 const SkVector& radiiTL = rrect.radii(SkRRect::kUpperLeft_Corner); 61 const SkVector& radiiBR = rrect.radii(SkRRect::kLowerRight_Corner); 80 float twoOverW = 2 / rrect.width() [all...] |
InstancedRenderingTypes.h | 55 inline static ShapeType GetRRectShapeType(const SkRRect& rrect) { 56 SkASSERT(rrect.getType() >= SkRRect::kRect_Type && 57 rrect.getType() <= SkRRect::kComplex_Type); 58 return static_cast<ShapeType>(rrect.getType() - 1);
|
/external/skia/tests/ |
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/ |
PictureOverheadBench.cpp | 99 SkRRect rrect; variable 100 rrect.setOval({0, 0, 1000, 1000}); 105 canvas->drawRRect(rrect, paint);
|
/external/skia/src/utils/ |
SkDumpCanvas.cpp | 38 static void toString(const SkRRect& rrect, SkString* str) { 39 SkRect r = rrect.getBounds(); 43 if (rrect.isOval()) { 45 } else if (rrect.isSimple()) { 46 const SkVector& rad = rrect.getSimpleRadii(); 48 } else if (rrect.isComplex()) { 50 rrect.radii(SkRRect::kUpperLeft_Corner), 51 rrect.radii(SkRRect::kUpperRight_Corner), 52 rrect.radii(SkRRect::kLowerRight_Corner), 53 rrect.radii(SkRRect::kLowerLeft_Corner) [all...] |