Home
last modified time | relevance | path

Searched refs:Rect (Results 1 – 25 of 257) sorted by relevance

1234567891011

/third_party/skia/experimental/graphite/src/geom/
DRect.h27 class Rect {
29 AI Rect() = default;
30 AI Rect(float l, float t, float r, float b) : fVals(NegateBotRight({l,t,r,b})) {} in Rect() function
31 AI Rect(float2 topLeft, float2 botRight) : fVals(topLeft, -botRight) {} in Rect() function
32 AI Rect(const SkRect& r) : fVals(NegateBotRight(float4::Load(r.asScalars()))) {} in Rect() function
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 WH(float w, float h) { in WH()
[all …]
DBoundsManager.h35 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 { in getMostRecentDraw()
58 bool isOccluded(const Rect& bounds, PaintersDepth z) const override { return false; } in isOccluded()
60 void recordDraw(const Rect& bounds, CompressedPaintersOrder order, PaintersDepth z,
77 CompressedPaintersOrder getMostRecentDraw(const Rect& bounds) const override { in getMostRecentDraw()
87 bool isOccluded(const Rect& bounds, PaintersDepth z) const override { in isOccluded()
97 void recordDraw(const Rect& bounds, CompressedPaintersOrder order, PaintersDepth z,
104 Rect fBounds;
DTransform.cpp17 Rect map_rect(const SkM44& m, const Rect& r) { 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()
DIntersectionTree.cpp25 bool intersects(Rect rect) override { in intersects()
35 Node* addNonIntersecting(Rect rect, SkArenaAlloc* arena) override { in addNonIntersecting()
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 { in intersects()
92 float4 comp = Rect::ComplementRect(rect).fVals; in intersects()
108 Node* addNonIntersecting(Rect rect, SkArenaAlloc* arena) override { in addNonIntersecting()
118 void appendToList(Rect rect) { in appendToList()
130 Rect loadRect(int i) const { in loadRect()
131 return Rect::FromVals(float4(fLefts[i], fTops[i], fNegRights[i], fNegBots[i])); in loadRect()
[all …]
DTransform_graphite.h15 class Rect; variable
63 Rect mapRect(const Rect& rect) const;
64 Rect inverseMapRect(const Rect& rect) const;
DShape.h41 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)
/third_party/typescript/tests/baselines/reference/
DdeclarationEmitExpandoWithGenericConstraint.js7 export interface Rect<p extends Point> {
13 export const Rect = <p extends Point>(a: p, b: p): Rect<p> => ({ a, b }); constant
20 exports.Rect = exports.Point = void 0;
23 var Rect = function (a, b) { return ({ a: a, b: b }); }; class
24 exports.Rect = Rect;
33 export interface Rect<p extends Point> {
41 export declare const Rect: <p extends Point>(a: p, b: p) => Rect<p>;
DdeclarationEmitExpandoWithGenericConstraint.symbols12 export interface Rect<p extends Point> {
13 >Rect : Symbol(Rect, Decl(declarationEmitExpandoWithGenericConstraint.ts, 3, 1), Decl(declarationEm…
18 >a : Symbol(Rect.a, Decl(declarationEmitExpandoWithGenericConstraint.ts, 5, 40))
22 >b : Symbol(Rect.b, Decl(declarationEmitExpandoWithGenericConstraint.ts, 6, 18))
34 export const Rect = <p extends Point>(a: p, b: p): Rect<p> => ({ a, b });
35 >Rect : Symbol(Rect, Decl(declarationEmitExpandoWithGenericConstraint.ts, 3, 1), Decl(declarationEm…
42 >Rect : Symbol(Rect, Decl(declarationEmitExpandoWithGenericConstraint.ts, 3, 1), Decl(declarationEm…
DdeclarationEmitExpandoWithGenericConstraint.types10 export interface Rect<p extends Point> {
28 export const Rect = <p extends Point>(a: p, b: p): Rect<p> => ({ a, b });
29 >Rect : <p extends Point>(a: p, b: p) => Rect<p>
30 ><p extends Point>(a: p, b: p): Rect<p> => ({ a, b }) : <p extends Point>(a: p, b: p) => Rect<p>
Dparser519458.types2 import rect = module("rect"); var bar = new rect.Rect();
8 >new rect.Rect() : any
9 >rect.Rect : any
11 >Rect : any
/third_party/skia/tests/graphite/
DIntersectionTreeTest.cpp38 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::WH(1, std::numeric_limits<float>::quiet_NaN()))); in DEF_GRAPHITE_TEST()
DRectTest.cpp17 const Rect rect = skRect; 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::WH(float2(r - l, b - t))); in DEF_GRAPHITE_TEST()
44 CHECK(rect2 == Rect::FromVals(rect2.vals())); in DEF_GRAPHITE_TEST()
57 Rect setTest(-99,-99,99,99); in DEF_GRAPHITE_TEST()
[all …]
/third_party/skia/modules/sksg/src/
DSkSGRect.cpp16 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/
DSkSGRect.h25 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/
DIntersectionTreeBench.cpp33 fRects = fAlignedAllocator.makeArray<Rect>(fRectCount); in onDelayedSetup()
37 fRectBufferA = fAlignedAllocator.makeArray<Rect>(fRectCount); in onDelayedSetup()
38 fRectBufferB = fAlignedAllocator.makeArray<Rect>(fRectCount); in onDelayedSetup()
50 Rect* rects = fRects; in doBench()
51 Rect* collided = fRectBufferA; in doBench()
74 Rect* fRects;
75 Rect* fRectBufferA;
76 Rect* fRectBufferB;
/third_party/cef/libcef/browser/osr/
Drender_widget_host_view_osr.h109 void SetBounds(const gfx::Rect& rect) override;
121 gfx::Rect GetViewBounds() override;
139 void SetWindowFrameInScreen(const gfx::Rect& rect) override;
151 const gfx::Rect& bounds,
152 const gfx::Rect& anchor_rect) override;
161 const gfx::Rect& src_rect,
166 gfx::Rect GetBoundsInRootWindow() override;
176 const std::vector<gfx::Rect>& character_bounds) override;
242 void OnPaint(const gfx::Rect& damage_rect,
318 void InvalidateInternal(const gfx::Rect& bounds_in_pixels);
[all …]
Dvideo_consumer_osr.cc69 const absl::optional<gfx::Rect>& bounds_in_pixels) { in RequestRefreshFrame()
85 const gfx::Rect& content_rect, in OnFrameCaptured()
117 gfx::Rect damage_rect; in OnFrameCaptured()
121 damage_rect = gfx::Rect(info->coded_size); in OnFrameCaptured()
136 damage_rect = gfx::Rect(info->coded_size); in OnFrameCaptured()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
DDevice.hpp69 void setScissorRect(const sw::Rect &rect);
78 …static bool ClipDstRect(sw::RectF &srcRect, sw::Rect &dstRect, sw::Rect &clipRect, bool flipX = fa…
79 …static bool ClipSrcRect(sw::RectF &srcRect, sw::Rect &dstRect, sw::Rect &clipRect, bool flipX = fa…
88 bool validRectangle(const sw::Rect *rect, sw::Surface *surface);
94 sw::Rect scissorRect;
/third_party/jsframework/runtime/main/extend/systemplugin/napi/
Dohos_display.js34 const Rect = { variable
42 left: Rect,
43 top: Rect,
44 width: Rect,
45 height: Rect
49 boundingRects: Array(Rect),
/third_party/cef/libcef/browser/native/
Dwindow_x11.h37 const gfx::Rect& bounds,
52 void SetBounds(const gfx::Rect& bounds);
54 gfx::Rect GetBoundsInScreen();
66 gfx::Rect bounds() const { return bounds_; } in bounds()
89 gfx::Rect bounds_;
/third_party/cef/libcef/browser/views/
Doverlay_view_host.cc68 gfx::Rect(bounds.x, bounds.y, bounds.width, bounds.height)); in SetBounds()
93 gfx::Rect(origin, gfx::Size(size.width, size.height))); in SetSize()
107 gfx::Rect(gfx::Point(position.x, position.y), size)); in SetPosition()
135 host_->SetOverlayBounds(gfx::Rect(origin, preferred_size)); in SizeToPreferredSize()
223 gfx::Rect bounds; in Init()
231 bounds = gfx::Rect(gfx::Point(), view_->size()); in Init()
264 void CefOverlayViewHost::SetOverlayBounds(const gfx::Rect& bounds) { in SetOverlayBounds()
269 gfx::Rect new_bounds = bounds; in SetOverlayBounds()
299 gfx::Rect CefOverlayViewHost::ComputeBounds() const { in ComputeBounds()
332 return gfx::Rect(x, y, prefsize.width(), prefsize.height()); in ComputeBounds()
Dwindow_view.cc67 gfx::Rect GetWindowBoundsForClientBounds( in GetWindowBoundsForClientBounds()
68 const gfx::Rect& client_bounds) const override { in GetWindowBoundsForClientBounds()
73 gfx::Rect pixel_bounds = in GetWindowBoundsForClientBounds()
123 gfx::Rect GetBoundsForClientView() const override { in GetBoundsForClientView()
127 gfx::Rect GetWindowBoundsForClientBounds( in GetWindowBoundsForClientBounds()
128 const gfx::Rect& client_bounds) const override { in GetWindowBoundsForClientBounds()
199 gfx::Rect(widget_->client_view()->GetPreferredSize())) in CalculatePreferredSize()
206 gfx::Rect(widget_->client_view()->GetMinimumSize())) in GetMinimumSize()
214 ->GetWindowBoundsForClientBounds(gfx::Rect(max_size)) in GetMaximumSize()
232 gfx::Rect client_view_bounds_;
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Main/
DFrameBufferGDI.hpp30 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) …
DFrameBufferWin.hpp37 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 *de…
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/java/com/mobileer/miditools/
DMusicKeyboardView.java22 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()

1234567891011