Searched refs:bounds (Results 151 - 175 of 974) sorted by relevance

1234567891011>>

/external/skia/src/effects/
H A DSkDropShadowImageFilter.cpp77 SkIRect bounds; local
78 if (!this->applyCropRect(ctx, inputBounds, &bounds)) {
82 sk_sp<SkSpecialSurface> surf(source->makeSurface(ctx.outputProperties(), bounds.size()));
105 canvas->translate(SkIntToScalar(inputOffset.fX - bounds.fLeft),
106 SkIntToScalar(inputOffset.fY - bounds.fTop));
112 offset->fX = bounds.fLeft;
113 offset->fY = bounds.fTop;
130 SkRect bounds = this->getInput(0) ? this->getInput(0)->computeFastBounds(src) : src; local
131 SkRect shadowBounds = bounds;
135 bounds
[all...]
H A DSkColorFilterImageFilter.cpp69 // If the color filter affects transparent black, the bounds are the entire clip.
78 SkIRect bounds; local
79 if (!this->applyCropRect(ctx, inputBounds, &bounds)) {
83 sk_sp<SkSpecialSurface> surf(source->makeSurface(ctx.outputProperties(), bounds.size()));
96 // TODO: it may not be necessary to clear or drawPaint inside the input bounds
110 SkIntToScalar(inputOffset.fX - bounds.fLeft),
111 SkIntToScalar(inputOffset.fY - bounds.fTop),
115 offset->fX = bounds.fLeft;
116 offset->fY = bounds.fTop;
H A DSkDashPathEffect.cpp73 SkRect bounds = *cullRect; local
74 outset_for_stroke(&bounds, rec);
85 inv.mapRect(&bounds);
97 if (maxX <= bounds.fLeft || minX >= bounds.fRight) {
102 // right of the bounds (keeping our new line "in phase" with the dash,
105 if (minX < bounds.fLeft) {
106 minX = bounds.fLeft - SkScalarMod(bounds.fLeft - minX, intervalLength);
108 if (maxX > bounds
[all...]
/external/skia/src/pdf/
H A DSkKeyedImage.cpp18 return {image->bounds().makeOffset(o.x(), o.y()), bm->getGenerationID()};
20 return {image->bounds(), image->uniqueID()};
35 if (fImage && subset.intersect(fImage->bounds())) {
/external/skqp/experimental/sksg/
H A DSkSGGroup.cpp57 SkRect bounds = SkRect::MakeEmpty(); local
60 bounds.join(child->revalidate(ic, ctm));
63 return bounds;
/external/skqp/experimental/sksg/effects/
H A DSkSGTransform.cpp64 auto bounds = this->INHERITED::onRevalidate(ic, SkMatrix::Concat(ctm, m)); local
65 m.mapRect(&bounds);
67 return bounds;
/external/skqp/experimental/sksg/geometry/
H A DSkSGGeometryTransform.cpp41 auto bounds = fChild->revalidate(ic, ctm); local
45 m.mapRect(&bounds);
46 return bounds;
/external/skqp/src/effects/
H A DSkDropShadowImageFilter.cpp77 SkIRect bounds; local
78 if (!this->applyCropRect(ctx, inputBounds, &bounds)) {
82 sk_sp<SkSpecialSurface> surf(source->makeSurface(ctx.outputProperties(), bounds.size()));
105 canvas->translate(SkIntToScalar(inputOffset.fX - bounds.fLeft),
106 SkIntToScalar(inputOffset.fY - bounds.fTop));
112 offset->fX = bounds.fLeft;
113 offset->fY = bounds.fTop;
130 SkRect bounds = this->getInput(0) ? this->getInput(0)->computeFastBounds(src) : src; local
131 SkRect shadowBounds = bounds;
135 bounds
[all...]
H A DSkColorFilterImageFilter.cpp70 // If the color filter affects transparent black, the bounds are the entire clip.
79 SkIRect bounds; local
80 if (!this->applyCropRect(ctx, inputBounds, &bounds)) {
84 sk_sp<SkSpecialSurface> surf(source->makeSurface(ctx.outputProperties(), bounds.size()));
97 // TODO: it may not be necessary to clear or drawPaint inside the input bounds
111 SkIntToScalar(inputOffset.fX - bounds.fLeft),
112 SkIntToScalar(inputOffset.fY - bounds.fTop),
116 offset->fX = bounds.fLeft;
117 offset->fY = bounds.fTop;
H A DSkDashPathEffect.cpp73 SkRect bounds = *cullRect; local
74 outset_for_stroke(&bounds, rec);
85 inv.mapRect(&bounds);
97 if (maxX <= bounds.fLeft || minX >= bounds.fRight) {
102 // right of the bounds (keeping our new line "in phase" with the dash,
105 if (minX < bounds.fLeft) {
106 minX = bounds.fLeft - SkScalarMod(bounds.fLeft - minX, intervalLength);
108 if (maxX > bounds
[all...]
/external/skqp/src/pdf/
H A DSkKeyedImage.cpp18 return {image->bounds().makeOffset(o.x(), o.y()), bm->getGenerationID()};
20 return {image->bounds(), image->uniqueID()};
35 if (fImage && subset.intersect(fImage->bounds())) {
/external/clang/utils/ABITest/
H A DEnumeration.py58 # Gallop to find bounds for line
89 raise ValueError,"Invalid bounds"
91 raise ValueError,"Invalid input (out of bounds)"
107 # bounds than using divmod.
174 bounds = [maxElement**i for i in range(1, maxSize+1)]
175 S,M = getNthPairVariableBounds(N, bounds)
188 def getNthPairVariableBounds(N, bounds):
189 """getNthPairVariableBounds(N, bounds) -> (x, y)
191 Given a finite list of bounds (which may be finite or aleph0),
192 return the N-th pair such that 0 <= x < len(bounds) an
[all...]
/external/skia/tests/
H A DPathOpsTestCommon.cpp144 SkDRect bounds;
145 bounds.setBounds(cubic);
148 if (quad[1].fX < bounds.fLeft) {
149 quad[1].fX = bounds.fLeft;
150 } else if (quad[1].fX > bounds.fRight) {
151 quad[1].fX = bounds.fRight;
153 if (quad[1].fY < bounds.fTop) {
154 quad[1].fY = bounds.fTop;
155 } else if (quad[1].fY > bounds.fBottom) {
156 quad[1].fY = bounds
255 ValidBounds(const SkPathOpsBounds& bounds) argument
[all...]
H A DShadowTest.cpp72 SkRect bounds; local
73 SkDrawShadowMetrics::GetLocalBounds(path, rec, ctm, &bounds);
74 ctm.mapRect(&bounds);
78 REPORTER_ASSERT(reporter, bounds.contains(verts->bounds()));
86 REPORTER_ASSERT(reporter, bounds.contains(verts->bounds()));
/external/skqp/tests/
H A DPathOpsTestCommon.cpp144 SkDRect bounds;
145 bounds.setBounds(cubic);
148 if (quad[1].fX < bounds.fLeft) {
149 quad[1].fX = bounds.fLeft;
150 } else if (quad[1].fX > bounds.fRight) {
151 quad[1].fX = bounds.fRight;
153 if (quad[1].fY < bounds.fTop) {
154 quad[1].fY = bounds.fTop;
155 } else if (quad[1].fY > bounds.fBottom) {
156 quad[1].fY = bounds
255 ValidBounds(const SkPathOpsBounds& bounds) argument
[all...]
H A DShadowTest.cpp72 SkRect bounds; local
73 SkDrawShadowMetrics::GetLocalBounds(path, rec, ctm, &bounds);
74 ctm.mapRect(&bounds);
78 REPORTER_ASSERT(reporter, bounds.contains(verts->bounds()));
86 REPORTER_ASSERT(reporter, bounds.contains(verts->bounds()));
/external/skia/src/core/
H A DSkDrawShadowInfo.cpp20 SkRect* bounds) {
39 // transform ambient and spot bounds into device space
67 // in both cases, adjust ambient and spot bounds
77 // merge bounds
78 *bounds = ambientBounds;
79 bounds->join(spotBounds);
81 bounds->outset(1, 1);
88 inverse.mapRect(bounds);
19 GetLocalBounds(const SkPath& path, const SkDrawShadowRec& rec, const SkMatrix& ctm, SkRect* bounds) argument
/external/skqp/src/core/
H A DSkDrawShadowInfo.cpp20 SkRect* bounds) {
39 // transform ambient and spot bounds into device space
67 // in both cases, adjust ambient and spot bounds
77 // merge bounds
78 *bounds = ambientBounds;
79 bounds->join(spotBounds);
81 bounds->outset(1, 1);
88 inverse.mapRect(bounds);
19 GetLocalBounds(const SkPath& path, const SkDrawShadowRec& rec, const SkMatrix& ctm, SkRect* bounds) argument
/external/webrtc/webrtc/modules/video_render/ios/
H A Dvideo_render_ios_gles20.mm231 CGRect bounds = [view_ bounds];
232 rect.top = bounds.origin.y;
233 rect.left = bounds.origin.x;
234 rect.bottom = bounds.size.height + bounds.origin.y;
235 rect.right = bounds.size.width + bounds.origin.x;
260 screen_width = [view_ bounds].size.width;
261 screen_height = [view_ bounds]
[all...]
/external/skia/src/gpu/ops/
H A DGrShadowRRectOp.cpp194 SkRect bounds = devRect; local
225 this->setBounds(bounds, HasAABloat::kNo, IsZeroArea::kNo);
228 blurRadius, blurClamp, bounds, type, isCircle});
292 const SkRect& bounds = args.fDevBounds; local
297 SkPoint center = SkPoint::Make(bounds.centerX(), bounds.centerY());
298 SkScalar halfWidth = 0.5f * bounds.width();
435 const SkRect& bounds = args.fDevBounds; local
438 SkScalar minDim = 0.5f*SkTMin(bounds.width(), bounds
658 SkRect bounds; local
[all...]
/external/skqp/src/gpu/ops/
H A DGrShadowRRectOp.cpp194 SkRect bounds = devRect; local
225 this->setBounds(bounds, HasAABloat::kNo, IsZeroArea::kNo);
228 blurRadius, blurClamp, bounds, type, isCircle});
292 const SkRect& bounds = args.fDevBounds; local
297 SkPoint center = SkPoint::Make(bounds.centerX(), bounds.centerY());
298 SkScalar halfWidth = 0.5f * bounds.width();
435 const SkRect& bounds = args.fDevBounds; local
438 SkScalar minDim = 0.5f*SkTMin(bounds.width(), bounds
659 SkRect bounds; local
[all...]
/external/skia/bench/
H A DSKPBench.cpp54 SkIRect bounds = canvas->getDeviceClipBounds(); local
55 SkAssertResult(!bounds.isEmpty());
61 tileW = SkTMin(tileW, bounds.width());
62 tileH = SkTMin(tileH, bounds.height());
64 int xTiles = SkScalarCeilToInt(bounds.width() / SkIntToScalar(tileW));
65 int yTiles = SkScalarCeilToInt(bounds.height() / SkIntToScalar(tileH));
72 for (int y = bounds.fTop; y < bounds.fBottom; y += tileH) {
73 for (int x = bounds.fLeft; x < bounds
[all...]
/external/skia/gm/
H A Dcoloremoji.cpp141 // compute the bounds of the text
142 SkRect bounds; variable
143 paint.measureText(text, strlen(text), &bounds);
145 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf;
146 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf;
150 SkRect upperLeftClip = SkRect::MakeXYWH(bounds.left(), bounds.top(),
152 SkRect lowerRightClip = SkRect::MakeXYWH(bounds.centerX(), bounds.centerY(),
154 SkRect interiorClip = bounds;
[all...]
/external/skqp/bench/
H A DSKPBench.cpp54 SkIRect bounds = canvas->getDeviceClipBounds(); local
55 SkAssertResult(!bounds.isEmpty());
61 tileW = SkTMin(tileW, bounds.width());
62 tileH = SkTMin(tileH, bounds.height());
64 int xTiles = SkScalarCeilToInt(bounds.width() / SkIntToScalar(tileW));
65 int yTiles = SkScalarCeilToInt(bounds.height() / SkIntToScalar(tileH));
72 for (int y = bounds.fTop; y < bounds.fBottom; y += tileH) {
73 for (int x = bounds.fLeft; x < bounds
[all...]
/external/skqp/gm/
H A Dcoloremoji.cpp141 // compute the bounds of the text
142 SkRect bounds; variable
143 paint.measureText(text, strlen(text), &bounds);
145 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf;
146 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf;
150 SkRect upperLeftClip = SkRect::MakeXYWH(bounds.left(), bounds.top(),
152 SkRect lowerRightClip = SkRect::MakeXYWH(bounds.centerX(), bounds.centerY(),
154 SkRect interiorClip = bounds;
[all...]

Completed in 437 milliseconds

1234567891011>>