Home
last modified time | relevance | path

Searched refs:bounds (Results 1 – 25 of 1789) sorted by relevance

12345678910>>...72

/third_party/skia/docs/examples/
DCanvas_getLocalClipBounds.cpp9 SkRect bounds = canvas->getLocalClipBounds(); in draw() local
11 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in draw()
16 bounds = canvas->getLocalClipBounds(); in draw()
18 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in draw()
20 bounds = canvas->getLocalClipBounds(); in draw()
22 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in draw()
DCanvas_getDeviceClipBounds.cpp9 SkIRect bounds = canvas->getDeviceClipBounds(); in draw() local
11 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in draw()
17 bounds = canvas->getDeviceClipBounds(); in draw()
19 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in draw()
23 bounds = canvas->getDeviceClipBounds(); in draw()
25 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in draw()
DgetLocalBounds_broken.cpp8 SkRect bounds = canvas->getLocalClipBounds(); in draw() local
9 SkDebugf("left:%g top:%g right:%g bottom:%g\n", bounds.fLeft, bounds.fTop, bounds.fRight, in draw()
10 bounds.fBottom); in draw()
15 bounds = canvas->getLocalClipBounds(); in draw()
16 SkDebugf("left:%g top:%g right:%g bottom:%g\n", bounds.fLeft, bounds.fTop, bounds.fRight, in draw()
17 bounds.fBottom); in draw()
DgetLocalBounds_working.cpp8 SkRect bounds = canvas->getLocalClipBounds(); in draw() local
9 SkDebugf("left:%g top:%g right:%g bottom:%g\n", bounds.fLeft, bounds.fTop, bounds.fRight, in draw()
10 bounds.fBottom); in draw()
15 bounds = canvas->getLocalClipBounds(); in draw()
16 SkDebugf("left:%g top:%g right:%g bottom:%g\n", bounds.fLeft, bounds.fTop, bounds.fRight, in draw()
17 bounds.fBottom); in draw()
/third_party/flutter/skia/docs/examples/
DCanvas_getLocalClipBounds.cpp9 SkRect bounds = canvas->getLocalClipBounds(); in draw() local
11 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in draw()
16 bounds = canvas->getLocalClipBounds(); in draw()
18 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in draw()
20 bounds = canvas->getLocalClipBounds(); in draw()
22 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in draw()
DCanvas_getDeviceClipBounds.cpp9 SkIRect bounds = canvas->getDeviceClipBounds(); in draw() local
11 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in draw()
17 bounds = canvas->getDeviceClipBounds(); in draw()
19 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in draw()
23 bounds = canvas->getDeviceClipBounds(); in draw()
25 bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in draw()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
DFramebufferGL.cpp56 BlitFramebufferBounds bounds; in GetBlitFramebufferBounds() local
64 bounds.sourceBounds = gl::Rectangle(0, 0, readSize.width, readSize.height); in GetBlitFramebufferBounds()
65 bounds.sourceRegion = sourceArea.removeReversal(); in GetBlitFramebufferBounds()
67 bounds.destBounds = gl::Rectangle(0, 0, drawSize.width, drawSize.height); in GetBlitFramebufferBounds()
68 bounds.destRegion = destArea.removeReversal(); in GetBlitFramebufferBounds()
70 bounds.xFlipped = sourceArea.isReversedX() != destArea.isReversedX(); in GetBlitFramebufferBounds()
71 bounds.yFlipped = sourceArea.isReversedY() != destArea.isReversedY(); in GetBlitFramebufferBounds()
73 return bounds; in GetBlitFramebufferBounds()
674 BlitFramebufferBounds bounds = GetBlitFramebufferBounds(context, sourceArea, destArea); in adjustSrcDstRegion() local
676 if (bounds.destRegion.width == 0 || bounds.sourceRegion.width == 0 || in adjustSrcDstRegion()
[all …]
/third_party/flutter/skia/src/gpu/effects/
DGrGaussianConvolutionFragmentProcessor.cpp83 const char* bounds = uniformHandler->getUniformCStr(fBoundsUni); in emitCode() local
89 component, component, bounds, bounds); in emitCode()
95 component, component, bounds, bounds, bounds, bounds); in emitCode()
100 component, bounds, component, bounds); in emitCode()
140 float bounds[2] = {0}; in onSetData() local
141 bounds[0] = conv.bounds()[0]; in onSetData()
142 bounds[1] = conv.bounds()[1]; in onSetData()
144 bounds[0] += SK_ScalarHalf; in onSetData()
145 bounds[1] -= SK_ScalarHalf; in onSetData()
149 bounds[0] *= inv; in onSetData()
[all …]
/third_party/flutter/skia/gm/
Dmixedtextblobs.cpp63 SkRect bounds; in onOnceBeforeDraw() local
64 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
66 SkScalar yOffset = bounds.height(); in onOnceBeforeDraw()
68 SkScalar corruptedAx = bounds.width(); in onOnceBeforeDraw()
71 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf; in onOnceBeforeDraw()
72 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf; in onOnceBeforeDraw()
82 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
86 xOffset - bounds.width() * 0.25f, in onOnceBeforeDraw()
87 yOffset - bounds.height() * 0.5f); in onOnceBeforeDraw()
94 font.measureText(fEmojiText, strlen(fEmojiText), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
[all …]
Dtextblobmixedsizes.cpp57 SkRect bounds; in onOnceBeforeDraw() local
58 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
59 SkScalar yOffset = bounds.height(); in onOnceBeforeDraw()
65 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
66 yOffset += bounds.height(); in onOnceBeforeDraw()
72 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
73 yOffset += bounds.height(); in onOnceBeforeDraw()
79 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
80 yOffset += bounds.height(); in onOnceBeforeDraw()
86 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
[all …]
/third_party/skia/gm/
Dmixedtextblobs.cpp63 SkRect bounds; in onOnceBeforeDraw() local
64 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
66 SkScalar yOffset = bounds.height(); in onOnceBeforeDraw()
68 SkScalar corruptedAx = bounds.width(); in onOnceBeforeDraw()
71 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf; in onOnceBeforeDraw()
72 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf; in onOnceBeforeDraw()
82 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
86 xOffset - bounds.width() * 0.25f, in onOnceBeforeDraw()
87 yOffset - bounds.height() * 0.5f); in onOnceBeforeDraw()
94 font.measureText(fEmojiText, strlen(fEmojiText), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
[all …]
Dtextblobmixedsizes.cpp55 SkRect bounds; in onOnceBeforeDraw() local
56 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
57 SkScalar yOffset = bounds.height(); in onOnceBeforeDraw()
63 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
64 yOffset += bounds.height(); in onOnceBeforeDraw()
70 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
71 yOffset += bounds.height(); in onOnceBeforeDraw()
77 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
78 yOffset += bounds.height(); in onOnceBeforeDraw()
84 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
[all …]
Dorientation.cpp88 SkRect bounds; in make_images() local
89 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in make_images()
90 return bounds; in make_images()
94 SkRect bounds; in make_images() local
96 bounds = measure("top"); in make_images()
97 drawLabel("top", midX - bounds.centerX(), -bounds.top() + kPad); in make_images()
99 bounds = measure("bottom"); in make_images()
100 drawLabel("bottom", midX - bounds.centerX(), kImgH - kPad - bounds.bottom()); in make_images()
105 bounds = measure("left"); in make_images()
106 drawLabel("left", kPad - bounds.left(), baseY); in make_images()
[all …]
/third_party/boost/boost/icl/concept/
Dinterval_bounds.hpp40 inline interval_bounds operator << (interval_bounds bounds, unsigned int shift) in operator <<() argument
41 { return interval_bounds(bounds._bits << shift); } in operator <<()
44 inline interval_bounds operator >> (interval_bounds bounds, unsigned int shift) in operator >>() argument
45 { return interval_bounds(bounds._bits >> shift); } in operator >>()
71 inline bool is_left_closed(interval_bounds bounds) in is_left_closed() argument
72 { return bounds.left().bits()==2; } in is_left_closed()
74 inline bool is_right_closed(interval_bounds bounds) in is_right_closed() argument
75 { return bounds.right().bits()==1; } in is_right_closed()
77 inline std::string left_bracket(interval_bounds bounds) in left_bracket() argument
78 { return is_left_closed(bounds) ? "[" : "("; } in left_bracket()
[all …]
/third_party/skia/tests/
DPathOpsBoundsTest.cpp49 SkPathOpsBounds bounds; in DEF_TEST() local
50 bounds.setEmpty(); in DEF_TEST()
51 bounds.add(1, 2, 3, 4); in DEF_TEST()
54 REPORTER_ASSERT(reporter, bounds == expected); in DEF_TEST()
55 bounds.setEmpty(); in DEF_TEST()
58 bounds.add(ordinal); in DEF_TEST()
59 REPORTER_ASSERT(reporter, bounds == expected); in DEF_TEST()
60 bounds.setEmpty(); in DEF_TEST()
62 bounds.add(botRight); in DEF_TEST()
63 REPORTER_ASSERT(reporter, bounds == expected); in DEF_TEST()
[all …]
/third_party/flutter/skia/tests/
DPathOpsBoundsTest.cpp49 SkPathOpsBounds bounds; in DEF_TEST() local
50 bounds.setEmpty(); in DEF_TEST()
51 bounds.add(1, 2, 3, 4); in DEF_TEST()
54 REPORTER_ASSERT(reporter, bounds == expected); in DEF_TEST()
55 bounds.setEmpty(); in DEF_TEST()
58 bounds.add(ordinal); in DEF_TEST()
59 REPORTER_ASSERT(reporter, bounds == expected); in DEF_TEST()
60 bounds.setEmpty(); in DEF_TEST()
62 bounds.add(botRight); in DEF_TEST()
63 REPORTER_ASSERT(reporter, bounds == expected); in DEF_TEST()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
DFramebufferGL.cpp57 BlitFramebufferBounds bounds; in GetBlitFramebufferBounds() local
65 bounds.sourceBounds = gl::Rectangle(0, 0, readSize.width, readSize.height); in GetBlitFramebufferBounds()
66 bounds.sourceRegion = sourceArea.removeReversal(); in GetBlitFramebufferBounds()
68 bounds.destBounds = gl::Rectangle(0, 0, drawSize.width, drawSize.height); in GetBlitFramebufferBounds()
69 bounds.destRegion = destArea.removeReversal(); in GetBlitFramebufferBounds()
71 bounds.xFlipped = sourceArea.isReversedX() != destArea.isReversedX(); in GetBlitFramebufferBounds()
72 bounds.yFlipped = sourceArea.isReversedY() != destArea.isReversedY(); in GetBlitFramebufferBounds()
74 return bounds; in GetBlitFramebufferBounds()
876 BlitFramebufferBounds bounds = GetBlitFramebufferBounds(context, sourceArea, destArea); in adjustSrcDstRegion() local
878 if (bounds.destRegion.width == 0 || bounds.sourceRegion.width == 0 || in adjustSrcDstRegion()
[all …]
/third_party/cef/tests/ceftests/
Ddraggable_regions_unittest.cc84 EXPECT_EQ(50, regions[0].bounds.x); in OnDraggableRegionsChanged()
85 EXPECT_EQ(50, regions[0].bounds.y); in OnDraggableRegionsChanged()
86 EXPECT_EQ(200, regions[0].bounds.width); in OnDraggableRegionsChanged()
87 EXPECT_EQ(200, regions[0].bounds.height); in OnDraggableRegionsChanged()
89 EXPECT_EQ(125, regions[1].bounds.x); in OnDraggableRegionsChanged()
90 EXPECT_EQ(125, regions[1].bounds.y); in OnDraggableRegionsChanged()
91 EXPECT_EQ(50, regions[1].bounds.width); in OnDraggableRegionsChanged()
92 EXPECT_EQ(50, regions[1].bounds.height); in OnDraggableRegionsChanged()
97 EXPECT_EQ(0, regions[0].bounds.x); in OnDraggableRegionsChanged()
98 EXPECT_EQ(0, regions[0].bounds.y); in OnDraggableRegionsChanged()
[all …]
/third_party/flutter/skia/src/core/
DSkRecordDraw.cpp80 DRAW(SaveLayer, saveLayer(SkCanvas::SaveLayerRec(r.bounds,
176 FillBounds(const SkRect& cullRect, const SkRecord& record, SkRect bounds[]) in FillBounds() argument
179 , fBounds(bounds) { in FillBounds()
245 Bounds bounds; // Bounds of everything in the block. member
275 fBounds[fCurrentOp] = this->bounds(op); in trackBounds()
285 sb.bounds = in pushSaveBlock()
333 this->popControl(sb.bounds); in popSaveBlock()
337 this->updateSaveBounds(sb.bounds); in popSaveBlock()
340 return sb.bounds; in popSaveBlock()
350 void popControl(const Bounds& bounds) { in popControl() argument
[all …]
/third_party/boost/libs/math/test/
Dnaive_monte_carlo_test.cpp38 std::vector<std::pair<Real, Real>> bounds{{Real(0), Real(1)}, {Real(0), Real(1)}}; in test_pi_multithreaded() local
40 naive_monte_carlo<Real, decltype(g)> mc(g, bounds, error_goal, in test_pi_multithreaded()
66 std::vector<std::pair<Real, Real>> bounds{{Real(0), Real(1)}, {Real(0), Real(1)}}; in test_pi() local
68 naive_monte_carlo<Real, decltype(g)> mc(g, bounds, error_goal, in test_pi()
91 std::vector<std::pair<Real, Real>> bounds{{Real(0), Real(1)}, { Real(0), Real(1)}}; in test_constant() local
92 naive_monte_carlo<Real, decltype(g)> mc(g, bounds, (Real) 0.0001, in test_constant()
116 std::vector<std::pair<Real, Real>> bounds{{ Real(0), Real(1)}, { Real(0), Real(1)}}; in test_exception_from_integrand() local
117 naive_monte_carlo<Real, decltype(g)> mc(g, bounds, (Real) 0.0001); in test_exception_from_integrand()
146 …vector<pair<Real, Real>> bounds{{ Real(0), pi<Real>()}, { Real(0), pi<Real>()}, { Real(0), pi<Real… in test_cancel_and_restart() local
147 naive_monte_carlo<Real, decltype(g)> mc(g, bounds, (Real) 0.05, true, 1, 888889); in test_cancel_and_restart()
[all …]
/third_party/skia/src/effects/imagefilters/
DSkMagnifierImageFilter.cpp97 SkIRect bounds, in make_magnifier_fp() argument
133 SkV4 boundsUniform = {static_cast<float>(bounds.x()), in make_magnifier_fp()
134 static_cast<float>(bounds.y()), in make_magnifier_fp()
135 1.f / bounds.width(), in make_magnifier_fp()
136 1.f / bounds.height()}; in make_magnifier_fp()
160 SkIRect bounds; in onFilterImage() local
161 if (!this->applyCropRect(ctx, inputBounds, &bounds)) { in onFilterImage()
167 SkScalar invXZoom = fSrcRect.width() / bounds.width(); in onFilterImage()
168 SkScalar invYZoom = fSrcRect.height() / bounds.height(); in onFilterImage()
180 offset->fX = bounds.left(); in onFilterImage()
[all …]
/third_party/skia/experimental/graphite/src/geom/
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() argument
58 bool isOccluded(const Rect& bounds, PaintersDepth z) const override { return false; } in isOccluded() argument
60 void recordDraw(const Rect& bounds, CompressedPaintersOrder order, PaintersDepth z,
77 CompressedPaintersOrder getMostRecentDraw(const Rect& bounds) const override { in getMostRecentDraw() argument
80 if (max < r.fOrder && r.fBounds.intersects(bounds)) { in getMostRecentDraw()
87 bool isOccluded(const Rect& bounds, PaintersDepth z) const override { in isOccluded() argument
90 if (r.fOpaque && z < r.fZ && r.fBounds.contains(bounds)) { in isOccluded()
[all …]
/third_party/flutter/skia/src/gpu/effects/generated/
DGrMagnifierEffect.cpp26 auto bounds = _outer.bounds; in emitCode() local
27 (void)bounds; in emitCode()
87 auto bounds = _outer.bounds; in onSetData() local
88 (void)bounds; in onSetData()
110 y = 1.0f - (srcRect.height() / bounds.height()) - y; in onSetData()
117 SkScalar y = bounds.y() * invH; in onSetData()
119 y = 1.0f - bounds.height() * invH; in onSetData()
123 bounds.x() * invW, in onSetData()
125 SkIntToScalar(src.width()) / bounds.width(), in onSetData()
126 SkIntToScalar(src.height()) / bounds.height()); in onSetData()
[all …]
/third_party/flutter/skia/third_party/externals/wuffs/lang/check/
Dbounds.go28 type bounds = interval.IntRange talias
30 var numShiftBounds = [...]bounds{
37 var numTypeBounds = [...]bounds{
76 zeroExpr.SetMBounds(bounds{zero, zero})
462 o.SetMBounds(bounds{zero, one})
496 func (q *checker) bcheckAssignment1(lhs *a.Expr, lTyp *a.TypeExpr, op t.ID, rhs *a.Expr) (bounds, e…
498 return bounds{}, fmt.Errorf("check: internal error: missing LHS for op key 0x%02X", op)
501 lb, err := bounds{}, (error)(nil)
505 return bounds{}, err
509 rb := bounds{}
[all …]
/third_party/flutter/skia/tools/skiaserve/
DRequest.cpp81 SkIRect bounds = this->getBounds(); in writeOutSkp() local
83 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(bounds.width()), in writeOutSkp()
84 SkIntToScalar(bounds.height())); in writeOutSkp()
102 SkIRect bounds; in getBounds() local
104 bounds = fPicture->cullRect().roundOut(); in getBounds()
107 bounds = SkIRect::MakeWH(SkTMin(bounds.width(), maxRTSize), in getBounds()
108 SkTMin(bounds.height(), maxRTSize)); in getBounds()
111 bounds = SkIRect::MakeWH(kDefaultWidth, kDefaultHeight); in getBounds()
116 bounds = SkIRect::MakeWH(SkTMin(bounds.width(), kMaxWidth), in getBounds()
117 SkTMin(bounds.height(), kMaxHeight)); in getBounds()
[all …]

12345678910>>...72