/third_party/skia/experimental/graphite/src/geom/ |
H A D | Rect.h | 27 class Rect { class 29 AI Rect() = default; 30 AI Rect(float l, float t, float r, float b) : fVals(NegateBotRight({l,t,r,b})) {} in Rect() function in skgpu::Rect 31 AI Rect(float2 topLeft, float2 botRight) : fVals(topLeft, -botRight) {} in Rect() function in skgpu::Rect 32 AI Rect(const SkRect& r) : fVals(NegateBotRight(float4::Load(r.asScalars()))) {} in Rect() function in skgpu::Rect 34 AI static Rect XYWH(float x, float y, float w, float h) { in XYWH() 35 return Rect(x, y, x + w, y + h); in XYWH() 37 AI static Rect XYWH(float2 topLeft, float2 size) { in XYWH() 38 return Rect(topLeft, topLeft + size); in XYWH() 40 AI static Rect W in XYWH() 148 AI Rect(float4 vals) : fVals(vals) {} // vals.zw must already be negated. Rect() function in skgpu::Rect [all...] |
H A D | BoundsManager.h | 12 #include "experimental/graphite/src/geom/Rect.h" 35 virtual CompressedPaintersOrder getMostRecentDraw(const Rect& bounds) const = 0; 37 virtual bool isOccluded(const Rect& bounds, PaintersDepth z) const = 0; 39 virtual void recordDraw(const Rect& bounds, 54 CompressedPaintersOrder getMostRecentDraw(const Rect& bounds) const override { 58 bool isOccluded(const Rect& bounds, PaintersDepth z) const override { return false; } 60 void recordDraw(const Rect& bounds, CompressedPaintersOrder order, PaintersDepth z, 77 CompressedPaintersOrder getMostRecentDraw(const Rect& bounds) const override { 87 bool isOccluded(const Rect& bounds, PaintersDepth z) const override { 97 void recordDraw(const Rect [all...] |
H A D | Transform.cpp | 10 #include "experimental/graphite/src/geom/Rect.h" 17 Rect map_rect(const SkM44& m, const Rect& r) { in map_rect() 18 // TODO: Can Rect's (l,t,-r,-b) structure be used to optimize mapRect? in map_rect() 45 Rect Transform::mapRect(const Rect& rect) const { return map_rect(fM, rect); } in mapRect() 46 Rect Transform::inverseMapRect(const Rect& rect) const { return map_rect(fInvM, rect); } in inverseMapRect()
|
H A D | IntersectionTree.cpp | 25 bool intersects(Rect rect) override { 35 Node* addNonIntersecting(Rect rect, SkArenaAlloc* arena) override { 46 SK_ALWAYS_INLINE static float GetLoVal(const Rect& rect) { in GetLoVal() 49 SK_ALWAYS_INLINE static float GetHiVal(const Rect& rect) { in GetHiVal() 86 bool intersects(Rect rect) override { 92 float4 comp = Rect::ComplementRect(rect).fVals; 108 Node* addNonIntersecting(Rect rect, SkArenaAlloc* arena) override { 118 void appendToList(Rect rect) { in appendToList() 130 Rect loadRect(int i) const { 131 return Rect [all...] |
H A D | Transform_graphite.h | 15 class Rect; 63 Rect mapRect(const Rect& rect) const; 64 Rect inverseMapRect(const Rect& rect) const;
|
H A D | Shape.h | 16 #include "experimental/graphite/src/geom/Rect.h" 41 explicit Shape(const Rect& rect) { this->setRect(rect); } in Shape() 86 bool conservativeContains(const Rect& rect) const; 98 Rect bounds() const; 107 const Rect& rect() const { SkASSERT(this->isRect()); return fRect; } in rect() 124 fRect = Rect(p0, p1); in setLine() 127 void setRect(const SkRect& rect) { this->setRect(Rect(rect)); } in setRect() 128 void setRect(const Rect& rect) { in setRect() 164 Rect fRect; // p0 = top-left, p1 = bot-right if type is kLine (may be unsorted)
|
H A D | IntersectionTree.h | 11 #include "experimental/graphite/src/geom/Rect.h" 24 bool add(Rect rect) { in add() 41 virtual bool intersects(Rect) = 0; 42 virtual Node* addNonIntersecting(Rect, SkArenaAlloc*) = 0;
|
H A D | Shape.cpp | 29 bool Shape::conservativeContains(const Rect& rect) const { in conservativeContains() 44 case Type::kRect: return fRect.contains(Rect::Point(point)); in conservativeContains() 72 Rect Shape::bounds() const { in bounds() 74 case Type::kEmpty: return Rect(0, 0, 0, 0); in bounds()
|
/third_party/typescript/tests/baselines/reference/ |
H A D | declarationEmitExpandoWithGenericConstraint.js | 7 export interface Rect<p extends Point> { 13 export const Rect = <p extends Point>(a: p, b: p): Rect<p> => ({ a, b }); 20 exports.Rect = exports.Point = void 0;
23 var Rect = function (a, b) { return ({ a: a, b: b }); };
function 24 exports.Rect = Rect;
33 export interface Rect<p extends Point> {
41 export declare const Rect: <p extends Point>(a: p, b: p) => Rect< [all...] |
H A D | parser519458.js | 2 import rect = module("rect"); var bar = new rect.Rect(); 8 var bar = new rect.Rect();
|
/third_party/skia/tests/graphite/ |
H A D | IntersectionTreeTest.cpp | 38 Rect rect = Rect::XYWH(rand.nextRangeF(0, 500), in DEF_GRAPHITE_TEST() 52 Rect rect = Rect::XYWH(rand.nextRangeF(0, 500), in DEF_GRAPHITE_TEST() 65 CHECK(tree.add(Rect(float2(-std::numeric_limits<float>::infinity()), in DEF_GRAPHITE_TEST() 67 CHECK(!tree.add(Rect::WH(1,1))); in DEF_GRAPHITE_TEST() 68 CHECK(!tree.add(Rect::WH(1,std::numeric_limits<float>::infinity()))); in DEF_GRAPHITE_TEST() 69 CHECK(tree.add(Rect::WH(0, 0))); in DEF_GRAPHITE_TEST() 70 CHECK(tree.add(Rect::WH(-1, 1))); in DEF_GRAPHITE_TEST() 71 CHECK(tree.add(Rect in DEF_GRAPHITE_TEST() [all...] |
H A D | RectTest.cpp | 8 #include "experimental/graphite/src/geom/Rect.h" 17 const Rect rect = skRect; in DEF_GRAPHITE_TEST() 19 CHECK(rect == skRect); // promotes 'skRect' to a Rect for == in DEF_GRAPHITE_TEST() 26 const Rect rect2(l,t,r,b); in DEF_GRAPHITE_TEST() 30 CHECK(rect2 == Rect(float2(l,t), float2(r,b))); in DEF_GRAPHITE_TEST() 31 CHECK(rect2 == Rect(skRect2)); in DEF_GRAPHITE_TEST() 38 CHECK(rect2 == Rect::XYWH(l, t, r - l, b - t)); in DEF_GRAPHITE_TEST() 39 CHECK(rect2 == Rect::XYWH(float2(l, t), float2(r - l, b - t))); in DEF_GRAPHITE_TEST() 41 CHECK(rect2 == Rect::WH(r - l, b - t)); in DEF_GRAPHITE_TEST() 42 CHECK(rect2 == Rect in DEF_GRAPHITE_TEST() [all...] |
/third_party/skia/modules/sksg/src/ |
H A D | SkSGRect.cpp | 16 Rect::Rect(const SkRect& rect) : fRect(rect) {} in Rect() function in sksg::Rect 18 void Rect::onClip(SkCanvas* canvas, bool antiAlias) const { in onClip() 22 void Rect::onDraw(SkCanvas* canvas, const SkPaint& paint) const { in onDraw() 26 bool Rect::onContains(const SkPoint& p) const { in onContains() 30 SkRect Rect::onRevalidate(InvalidationController*, const SkMatrix&) { in onRevalidate() 36 SkPath Rect::onAsPath() const { in onAsPath() 37 return SkPath::Rect(fRect, this->getDirection(), this->getInitialPointIndex()); in onAsPath()
|
/third_party/skia/modules/sksg/include/ |
H A D | SkSGRect.h | 25 class Rect final : public GeometryNode { 27 static sk_sp<Rect> Make() { return sk_sp<Rect>(new Rect(SkRect::MakeEmpty())); } in Make() 28 static sk_sp<Rect> Make(const SkRect& r) { return sk_sp<Rect>(new Rect(r)); } in Make() 47 explicit Rect(const SkRect&);
|
/third_party/skia/bench/graphite/ |
H A D | IntersectionTreeBench.cpp | 33 fRects = fAlignedAllocator.makeArray<Rect>(fRectCount); 37 fRectBufferA = fAlignedAllocator.makeArray<Rect>(fRectCount); 38 fRectBufferB = fAlignedAllocator.makeArray<Rect>(fRectCount); 50 Rect* rects = fRects; in doBench() 51 Rect* collided = fRectBufferA; in doBench() 74 Rect* fRects; 75 Rect* fRectBufferA; 76 Rect* fRectBufferB;
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/ |
H A D | Device.hpp | 69 void setScissorRect(const sw::Rect &rect); 78 static bool ClipDstRect(sw::RectF &srcRect, sw::Rect &dstRect, sw::Rect &clipRect, bool flipX = false, bool flipY = false); 79 static bool ClipSrcRect(sw::RectF &srcRect, sw::Rect &dstRect, sw::Rect &clipRect, bool flipX = false, bool flipY = false); 88 bool validRectangle(const sw::Rect *rect, sw::Surface *surface); 94 sw::Rect scissorRect;
|
/third_party/skia/third_party/externals/swiftshader/src/Main/ |
H A D | FrameBufferGDI.hpp | 30 void blit(sw::Surface *source, const Rect *sourceRect, const Rect *destRect) override; 33 void blit(HWND windowOverride, sw::Surface *source, const Rect *sourceRect, const Rect *destRect) override;
|
H A D | FrameBufferWin.hpp | 37 void blit(sw::Surface *source, const Rect *sourceRect, const Rect *destRect) override = 0; 40 virtual void blit(HWND windowOverride, sw::Surface *source, const Rect *sourceRect, const Rect *destRect) = 0;
|
H A D | FrameBufferDD.hpp | 32 void blit(sw::Surface *source, const Rect *sourceRect, const Rect *destRect) override; 35 void blit(HWND windowOverride, sw::Surface *source, const Rect *sourceRect, const Rect *destRect) override;
|
H A D | FrameBufferGDI.cpp | 79 void FrameBufferGDI::blit(sw::Surface *source, const Rect *sourceRect, const Rect *destRect) in blit() 100 void FrameBufferGDI::blit(HWND windowOverride, sw::Surface *source, const Rect *sourceRect, const Rect *destRect) in blit()
|
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/java/com/mobileer/miditools/ |
H A D | MusicKeyboardView.java | 22 import android.graphics.Rect; 73 private Rect[] mBlackKeyRectangles; 151 ArrayList<Rect> rectangles = new ArrayList<Rect>(); in makeBlackRectangles() 165 Rect rect = new Rect(left, top, right, mBlackBottom); in makeBlackRectangles() 172 mBlackKeyRectangles = rectangles.toArray(new Rect[0]); in makeBlackRectangles() 199 Rect r = mBlackKeyRectangles[blackKeyIndex]; in onDraw() 326 Rect rect = mBlackKeyRectangles[blackKeyIndex]; in xyToBlackPitch()
|
/third_party/skia/samplecode/ |
H A D | SampleSG.cpp | 57 auto r = sksg::Rect::Make({20, 20, 400, 300}); in SampleSG() 62 r = sksg::Rect::Make({60, 70, 300, 400}); in SampleSG() 89 sksg::Rect* r = (sksg::Rect*)geo;
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
H A D | es2fVertexTextureTests.cpp | 117 struct Rect struct 119 Rect (int x_, int y_, int w_, int h_) : x(x_), y(y_), w(w_), h(h_) {} in Rect() function 334 static void setPixelColors (const vector<Vec4>& quadColors, const Rect& region, const PosTexCoordQuadGrid<TexType>& grid, tcu::Surface& dst) in setPixelColors() 363 void computeReference (const typename TexTypeTcuClass<TexType>::t& texture, float lod, const tcu::Sampler& sampler, const PosTexCoordQuadGrid<TexType>& grid, tcu::Surface& dst, const Rect& dstRegion) in computeReference() 407 void computeReferenceCell (int textureNdx, float lod, const Grid& grid, tcu::Surface& dst, const Rect& dstRegion) const; 589 const Rect region; in iterate() 593 Render (const Rect& r, int tN, const Vec2& tS, const Vec2& tO) : region(r), textureNdx(tN), texCoordScale(tS), texCoordOffset(tO) {} in iterate() 596 Render(Rect(0, 0, leftWidth, bottomHeight), 0, texMinScale, texMinOffset), in iterate() 597 Render(Rect(leftWidth, 0, rightWidth, bottomHeight), 0, texMagScale, texMagOffset), in iterate() 598 Render(Rect( in iterate() [all...] |
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fVertexTextureTests.cpp | 144 struct Rect struct 146 Rect (int x_, int y_, int w_, int h_) : x(x_), y(y_), w(w_), h(h_) {} in Rect() function 429 static void setPixelColors (const vector<Vec4>& quadColors, const Rect& region, const PosTexCoordQuadGrid<TexType>& grid, tcu::Surface& dst) in setPixelColors() 460 void computeReference (const typename TexTypeTcuClass<TexType>::t& texture, float lod, const tcu::Sampler& sampler, const PosTexCoordQuadGrid<TexType>& grid, tcu::Surface& dst, const Rect& dstRegion) in computeReference() 504 void computeReferenceCell (int textureNdx, float lod, const Grid& grid, tcu::Surface& dst, const Rect& dstRegion) const; 689 const Rect region; in iterate() 693 Render (const Rect& r, int tN, const Vec2& tS, const Vec2& tO) : region(r), textureNdx(tN), texCoordScale(tS), texCoordOffset(tO) {} in iterate() 696 Render(Rect(0, 0, leftWidth, bottomHeight), 0, texMinScale, texMinOffset), in iterate() 697 Render(Rect(leftWidth, 0, rightWidth, bottomHeight), 0, texMagScale, texMagOffset), in iterate() 698 Render(Rect( in iterate() [all...] |
/third_party/skia/modules/sksg/tests/ |
H A D | SGTest.cpp | 78 auto r1 = sksg::Rect::Make(SkRect::MakeWH(100, 100)), in inval_test1() 79 r2 = sksg::Rect::Make(SkRect::MakeWH(100, 100)); in inval_test1() 223 auto rect = sksg::Rect::Make(SkRect::MakeWH(100, 100)); in inval_test2() 293 group->addChild(sksg::Draw::Make(sksg::Rect::Make(SkRect::MakeWH(100, 100)), in inval_test3() 295 group->addChild(sksg::Draw::Make(sksg::Rect::Make(SkRect::MakeXYWH(200, 0, 100, 100)), in inval_test3() 341 auto draw = sksg::Draw::Make(sksg::Rect::Make(SkRect::MakeWH(100, 100)), in inval_group_remove()
|