Home
last modified time | relevance | path

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

12345678910>>...48

/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/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/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 …]
Dtextblobrandomfont.cpp64 SkRect bounds; in onOnceBeforeDraw() local
65 font.measureText(text, strlen(text), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
66 y -= bounds.fTop; in onOnceBeforeDraw()
68 y += bounds.fBottom; in onOnceBeforeDraw()
76 font.measureText(bigtext1, strlen(bigtext1), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
77 y -= bounds.fTop; in onOnceBeforeDraw()
79 y += bounds.fBottom; in onOnceBeforeDraw()
81 font.measureText(bigtext2, strlen(bigtext2), SkTextEncoding::kUTF8, &bounds); in onOnceBeforeDraw()
82 y -= bounds.fTop; in onOnceBeforeDraw()
84 y += bounds.fBottom; in onOnceBeforeDraw()
[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 …]
DPathOpsConicIntersectionTest.cpp88 SkRect bounds; in writePng() local
89 conic.computeTightBounds(&bounds); in writePng()
90 bounds.outset(10, 10); in writePng()
92 SkScalarRoundToInt(bounds.width()), SkScalarRoundToInt(bounds.height()))); in writePng()
97 canvas.translate(-bounds.fLeft, -bounds.fTop); in writePng()
122 SkDRect bounds; in writeDPng() local
123 bounds.setBounds(dConic); in writeDPng()
124 bounds.fLeft -= 10; in writeDPng()
125 bounds.fTop -= 10; in writeDPng()
126 bounds.fRight += 10; in writeDPng()
[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 …]
DSkMatrixConvolutionImageFilter.cpp80 const SkIRect& bounds) const;
86 const SkIRect& bounds) const;
91 const SkIRect& bounds) const;
96 const SkIRect& bounds) const;
103 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() argument
110 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() argument
111 x = SkTPin(x, bounds.fLeft, bounds.fRight - 1); in fetch()
112 y = SkTPin(y, bounds.fTop, bounds.fBottom - 1); in fetch()
119 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() argument
120 x = (x - bounds.left()) % bounds.width() + bounds.left(); in fetch()
[all …]
DSkAlphaThresholdImageFilter.cpp51 const SkIRect& bounds,
107 const SkIRect& bounds, in createMaskTexture() argument
111 rContext, GrColorType::kAlpha_8, nullptr, SkBackingFit::kApprox, bounds.size(), in createMaskTexture()
184 SkIRect bounds; in onFilterImage() local
185 if (!this->applyCropRect(ctx, inputBounds, &bounds)) { in onFilterImage()
197 offset->fX = bounds.left(); in onFilterImage()
198 offset->fY = bounds.top(); in onFilterImage()
200 bounds.offset(-inputOffset); in onFilterImage()
205 GrSurfaceProxyView maskView = this->createMaskTexture(context, matrix, bounds, in onFilterImage()
211 SkMatrix::Translate(-bounds.x(), -bounds.y())); in onFilterImage()
[all …]
DSkMergeImageFilter.cpp67 SkIRect bounds; in onFilterImage() local
68 bounds.setEmpty(); in onFilterImage()
82 bounds.join(inputBounds); in onFilterImage()
84 if (bounds.isEmpty()) { in onFilterImage()
92 this->getCropRect().applyTo(bounds, ctx.ctm(), embiggen, &bounds); in onFilterImage()
93 if (!bounds.intersect(ctx.clipBounds())) { in onFilterImage()
97 const int x0 = bounds.left(); in onFilterImage()
98 const int y0 = bounds.top(); in onFilterImage()
100 sk_sp<SkSpecialSurface> surf(ctx.makeSurface(bounds.size())); in onFilterImage()
120 offset->fX = bounds.left(); in onFilterImage()
[all …]
/third_party/skia/src/core/
DSkRecordDraw.cpp83 DRAW(SaveLayer, saveLayer(SkCanvasPriv::ScaledBackdropLayer(r.bounds,
187 SkRect bounds[], SkBBoxHierarchy::Metadata meta[]) in FillBounds() argument
189 , fBounds(bounds) in FillBounds()
252 Bounds bounds; // Bounds of everything in the block. member
295 fBounds[fCurrentOp] = this->bounds(op); in trackBounds()
306 sb.bounds = in pushSaveBlock()
361 this->popControl(sb.bounds); in popSaveBlock()
365 this->updateSaveBounds(sb.bounds); in popSaveBlock()
368 return sb.bounds; in popSaveBlock()
378 void popControl(const Bounds& bounds) { in popControl() argument
[all …]
DSkGlyphRun.cpp62 SkRect bounds = SkRect::MakeEmpty(); in sourceBounds() local
65 bounds.join(scaleAndTranslateRect(r, pos)); in sourceBounds()
68 return bounds; in sourceBounds()
71 SkRect bounds = SkRect::MakeEmpty(); in sourceBounds() local
78 bounds.join(xform.mapRect(glyph->rect())); in sourceBounds()
81 return bounds; in sourceBounds()
87 SkRect bounds; in sourceBounds() local
88 bounds.setBounds(this->positions().data(), SkCount(this->positions())); in sourceBounds()
89 bounds.fLeft += fontBounds.left(); in sourceBounds()
90 bounds.fTop += fontBounds.top(); in sourceBounds()
[all …]
/third_party/skia/samplecode/
DSamplePathClip.cpp69 static int clip_line(const SkRect& bounds, SkPoint p0, SkPoint p1, SkPoint edges[]) {
81 if (p1.fY <= bounds.top() || p0.fY >= bounds.bottom()) {
86 if (p0.fY < bounds.top()) {
87 p0.fX = SkDoubleToScalar(p0.fX + dxdy * (bounds.top() - p0.fY));
88 p0.fY = bounds.top();
90 if (p1.fY > bounds.bottom()) {
91 p1.fX = SkDoubleToScalar(p1.fX + dxdy * (bounds.bottom() - p1.fY));
92 p1.fY = bounds.bottom();
103 if (p1.fX <= bounds.left()) { // entirely to the left
104 p0.fX = p1.fX = bounds.left();
[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/skia/src/gpu/ops/
DShadowRRectOp.cpp201 SkRect bounds = devRect; in ShadowCircularRRectOp() local
228 this->setBounds(bounds, HasAABloat::kNo, IsHairline::kNo); in ShadowCircularRRectOp()
231 blurRadius, bounds, type, isCircle}); in ShadowCircularRRectOp()
276 const SkRect& bounds = args.fDevBounds; in fillInCircleVerts() local
281 SkPoint center = SkPoint::Make(bounds.centerX(), bounds.centerY()); in fillInCircleVerts()
282 SkScalar halfWidth = 0.5f * bounds.width(); in fillInCircleVerts()
402 const SkRect& bounds = args.fDevBounds; in fillInRRectVerts() local
405 SkScalar minDim = 0.5f*std::min(bounds.width(), bounds.height()); in fillInRRectVerts()
410 SkScalar xInner[4] = { bounds.fLeft + umbraInset, bounds.fRight - umbraInset, in fillInRRectVerts()
411 bounds.fLeft + umbraInset, bounds.fRight - umbraInset }; in fillInRRectVerts()
[all …]
/third_party/skia/tools/skiaserve/
DRequest.cpp88 SkIRect bounds = this->getBounds(); in writeOutSkp() local
90 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(bounds.width()), in writeOutSkp()
91 SkIntToScalar(bounds.height())); in writeOutSkp()
109 SkIRect bounds; in getBounds() local
111 bounds = fPicture->cullRect().roundOut(); in getBounds()
114 bounds = SkIRect::MakeWH(std::min(bounds.width(), maxRTSize), in getBounds()
115 std::min(bounds.height(), maxRTSize)); in getBounds()
118 bounds = SkIRect::MakeWH(kDefaultWidth, kDefaultHeight); in getBounds()
123 bounds = SkIRect::MakeWH(std::min(bounds.width(), kMaxWidth), in getBounds()
124 std::min(bounds.height(), kMaxHeight)); in getBounds()
[all …]
/third_party/skia/src/gpu/
DGrClip.h68 GrAppliedClip*, SkRect* bounds) const = 0;
162 static SkIRect GetPixelIBounds(const SkRect& bounds, GrAA aa,
175 if (bounds.isEmpty()) {
180 return SkIRect::MakeLTRB(roundLow(bounds.fLeft), roundLow(bounds.fTop),
181 roundHigh(bounds.fRight), roundHigh(bounds.fBottom));
183 return SkIRect::MakeLTRB(roundHigh(bounds.fLeft), roundHigh(bounds.fTop),
184 roundLow(bounds.fRight), roundLow(bounds.fBottom));
211 virtual Effect apply(GrAppliedHardClip* out, SkIRect* bounds) const = 0;
219 SkRect* bounds) const final { in apply() argument
220 SkIRect pixelBounds = GetPixelIBounds(*bounds, GrAA(aa != GrAAType::kNone)); in apply()
[all …]
/third_party/skia/third_party/externals/opengl-registry/extensions/EXT/
DEXT_depth_bounds_test.txt40 after the scissor test and before the alpha test. The depth bounds
46 Unlike the depth test, the depth bounds test has NO dependency on
72 window-space Z bounds (zmin,zmax) of consequential illumination.
78 illumination for the pixel is fully attenuated. The depth bounds
83 Where should the depth bounds test take place in the OpenGL
91 Importantly, the depth bounds test occurs before any fragment
97 Is the depth bounds test consistent with early depth rejection?
99 Yes. If an OpenGL implementation supports some conservative bounds
101 depth buffers, etc), the depth bounds test can reject fragments
102 based on these conservative bounds.
[all …]
/third_party/openGLES/extensions/EXT/
DEXT_depth_bounds_test.txt40 after the scissor test and before the alpha test. The depth bounds
46 Unlike the depth test, the depth bounds test has NO dependency on
72 window-space Z bounds (zmin,zmax) of consequential illumination.
78 illumination for the pixel is fully attenuated. The depth bounds
83 Where should the depth bounds test take place in the OpenGL
91 Importantly, the depth bounds test occurs before any fragment
97 Is the depth bounds test consistent with early depth rejection?
99 Yes. If an OpenGL implementation supports some conservative bounds
101 depth buffers, etc), the depth bounds test can reject fragments
102 based on these conservative bounds.
[all …]
/third_party/ltp/testcases/kernel/device-drivers/v4l/user_space/
Dtest_VIDIOC_CROP.c183 cropcap.bounds.left, cropcap.bounds.top, cropcap.bounds.width, in do_set_crop()
184 cropcap.bounds.height, cropcap.defrect.left, cropcap.defrect.top, in do_set_crop()
190 crop.c = cropcap.bounds; in do_set_crop()
237 CU_ASSERT(cropcap.bounds.left <= crop_new.c.left); in do_set_crop()
238 CU_ASSERT(cropcap.bounds.top <= crop_new.c.top); in do_set_crop()
241 cropcap.bounds.left + cropcap.bounds.width); in do_set_crop()
243 cropcap.bounds.top + cropcap.bounds.height); in do_set_crop()
341 for (i = 0; i < cropcap.bounds.width; i++) { in do_set_crop()
344 crop.c.left = cropcap.bounds.left; in do_set_crop()
345 crop.c.top = cropcap.bounds.top; in do_set_crop()
[all …]

12345678910>>...48