Searched refs:bounds (Results 126 - 150 of 1705) sorted by last modified time

1234567891011>>

/external/skia/src/utils/
H A DSkNinePatch.cpp58 // to fit within the target bounds. This means that we will eliminate all
59 // stretchy areas and scale the fixed areas to fit within the target bounds.
66 // fixed and scale the stretchable areas to fill the target bounds.
76 const SkRect& bounds, const int32_t xDivs[], int numXDivs,
78 SkScalar vx = bounds.fLeft;
92 verts->set(bounds.fRight, vy); verts++;
103 void SkNinePatch::DrawMesh(SkCanvas* canvas, const SkRect& bounds, argument
108 if (bounds.isEmpty() || bitmap.width() == 0 || bitmap.height() == 0) {
139 canvas->drawBitmapRect(bitmap, NULL, bounds, paint);
161 if (bounds
74 fillRow(SkPoint verts[], SkPoint texs[], const SkScalar vy, const SkScalar ty, const SkRect& bounds, const int32_t xDivs[], int numXDivs, const SkScalar stretchX, int width) argument
301 DrawNine(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const SkIRect& margins, const SkPaint* paint) argument
[all...]
H A DSkProxyCanvas.cpp29 SkCanvas::SaveLayerStrategy SkProxyCanvas::willSaveLayer(const SkRect* bounds, const SkPaint* paint, argument
31 fProxy->saveLayer(bounds, paint, flags);
32 this->INHERITED::willSaveLayer(bounds, paint, flags);
/external/skia/src/utils/debugger/
H A DSkDebugCanvas.cpp598 SkCanvas::SaveLayerStrategy SkDebugCanvas::willSaveLayer(const SkRect* bounds, const SkPaint* paint, argument
600 this->addDrawCommand(new SkSaveLayerCommand(bounds, paint, flags));
601 this->INHERITED::willSaveLayer(bounds, paint, flags);
H A DSkDebugCanvas.h218 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE {
219 if (NULL != bounds) {
220 bounds->setXYWH(0, 0,
226 virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE {
227 if (NULL != bounds) {
228 bounds->setLargest();
H A DSkDrawCommand.cpp96 void xlate_and_scale_to_bounds(SkCanvas* canvas, const SkRect& bounds) { argument
102 if (bounds.width() > bounds.height()) {
103 canvas->scale(SkDoubleToScalar((kInsetFrac*size.fWidth)/bounds.width()),
104 SkDoubleToScalar((kInsetFrac*size.fHeight)/bounds.width()));
106 canvas->scale(SkDoubleToScalar((kInsetFrac*size.fWidth)/bounds.height()),
107 SkDoubleToScalar((kInsetFrac*size.fHeight)/bounds.height()));
109 canvas->translate(-bounds.centerX(), -bounds.centerY());
117 const SkRect& bounds local
165 const SkRect& bounds = rrect.getBounds(); local
181 const SkRect& bounds = outer.getBounds(); local
521 SkRect bounds = SkRect::MakeWH(SkIntToScalar(fPicture->width()), local
556 SkRect bounds; local
857 SkSaveLayerCommand(const SkRect* bounds, const SkPaint* paint, SkCanvas::SaveFlags flags) argument
[all...]
H A DSkDrawCommand.h537 SkSaveLayerCommand(const SkRect* bounds, const SkPaint* paint,
/external/skia/src/utils/mac/
H A DSkCreateCGImageRef.cpp218 CGRect bounds = CGPDFPageGetBoxRect(page, kCGPDFMediaBox); local
220 int w = (int)CGRectGetWidth(bounds);
221 int h = (int)CGRectGetHeight(bounds);
/external/skia/src/views/
H A DSkView.cpp155 SkRect bounds; local
156 view->getLocalBounds(&bounds);
157 if (rect && !bounds.intersect(*rect)) {
160 storage = bounds;
509 void SkView::getLocalBounds(SkRect* bounds) const {
510 if (bounds) {
511 bounds->set(0, 0, fWidth, fHeight);
/external/skia/src/views/animated/
H A DSkBorderView.cpp58 SkRect bounds; local
59 fAnim.getInvalBounds(&bounds);
60 this->inval(&bounds);
H A DSkImageView.cpp180 SkRect bounds; local
181 fData.fAnim->getInvalBounds(&bounds);
182 matrix.mapRect(&bounds); // get the bounds into view coordinates
183 this->inval(&bounds);
229 bool SkImageView::getDataBounds(SkRect* bounds) argument
231 SkASSERT(bounds);
242 // cons up fake bounds
252 bounds->set(0, 0, width, height);
H A DSkProgressBarView.cpp41 SkRect bounds; local
42 fAnim.getInvalBounds(&bounds);
43 this->inval(&bounds);
H A DSkScrollBarView.cpp95 SkRect bounds; local
96 fAnim.getInvalBounds(&bounds);
97 this->inval(&bounds);
H A DSkWidgetViews.cpp302 SkRect bounds; local
303 fAnim.getInvalBounds(&bounds);
304 this->inval(&bounds);
/external/skia/src/views/mac/
H A DSkOSWindow_Mac.cpp50 HIRect bounds; local
65 HIViewGetBounds ((HIViewRef) userData, &bounds);
200 SkDebugf("------ %d bounds %g %g %g %g\n", r.right - r.left,
/external/skia/tests/
H A DCanvasStateTest.cpp53 // draw a rect within the layer's bounds and again outside the layer's bounds
245 SkRect bounds = SkRect::MakeWH(SkIntToScalar(LAYER_WIDTH), SkIntToScalar(LAYER_HEIGHT)); local
250 canvas.saveLayer(&bounds, NULL, SkCanvas::kARGB_NoClipLayer_SaveFlag);
259 // stack to the layer bounds.
260 canvas.saveLayer(&bounds, NULL, SkCanvas::kARGB_ClipLayer_SaveFlag);
H A DCanvasTest.cpp543 const SkRect* bounds = NULL; // null means include entire bounds local
546 canvas->saveLayer(bounds, paint);
553 canvas->saveLayer(bounds, paint);
554 canvas->saveLayer(bounds, paint);
888 // report correct clipping and device bounds information
H A DClipStackTest.cpp406 SkRect bounds;
408 stack.getBounds(&bounds, &boundsType);
410 REPORTER_ASSERT(reporter, bounds == rect);
863 const SkIRect& bounds,
866 SkRegion boundsRgn(bounds);
885 // All the clip elements will be contained within these bounds.
987 // GrReducedClipStack assumes that the final result is clipped to the returned bounds
1073 // Not passing in tighter bounds is tested for consistency.
1079 SkIRect tighterBounds; // If this is empty, the query will not pass tighter bounds
862 add_elem_to_region(const SkClipStack::Element& element, const SkIRect& bounds, SkRegion* region) argument
H A DFontHostTest.cpp285 SkRect bounds; local
291 // Requesting the bounds forces a generateMetrics call.
292 SkScalar width2 = paint.measureText(txt, strlen(txt), &bounds);
H A DFontObjTest.cpp95 SkRect bounds; local
101 // Requesting the bounds forces a generateMetrics call.
102 SkScalar width2 = paint.measureText(txt, strlen(txt), &bounds);
H A DImageFilterTest.cpp456 // Check that a filter with borders outside the target bounds
479 SkRect bounds = SkRect::MakeWH(1, 10); local
482 canvas.saveLayer(&bounds, &filterPaint);
606 SkRect bounds = SkRect::MakeWH(10, 10); local
609 recordingCanvas->saveLayer(&bounds, &imageFilterPaint);
629 recordingCanvas->saveLayer(&bounds, &colorFilterPaint);
H A DPathOpsAngleIdeas.cpp259 SkDRect bounds; local
260 bounds.setBounds(quad);
262 { bounds.fLeft - quad[0].fX, bounds.fTop - quad[0].fY },
263 { bounds.fRight - quad[0].fX, bounds.fTop - quad[0].fY },
264 { bounds.fLeft - quad[0].fX, bounds.fBottom - quad[0].fY },
265 { bounds.fRight - quad[0].fX, bounds
[all...]
H A DPathOpsBoundsTest.cpp18 {{2, 0, 4, 1}, {3, 0, 3, 0}}, // intersecting an empty bounds is OK
66 SkPathOpsBounds bounds; local
67 bounds.setEmpty();
68 bounds.add(1, 2, 3, 4);
71 REPORTER_ASSERT(reporter, bounds == expected);
72 bounds.setEmpty();
75 bounds.add(ordinal);
76 REPORTER_ASSERT(reporter, bounds == expected);
78 bounds.setPointBounds(topLeft);
80 bounds
83 const SkPathOpsBounds& bounds = static_cast<const SkPathOpsBounds&>(reallyEmpty[index]); local
89 const SkPathOpsBounds& bounds = static_cast<const SkPathOpsBounds&>(notReallyEmpty[index]); local
[all...]
H A DPathOpsCubicReduceOrderTest.cpp44 static void find_tight_bounds(const SkDCubic& cubic, SkDRect& bounds) {
47 find_tight_bounds(cubicPair.first(), bounds);
49 bounds.add(cubicPair.first()[0]);
50 bounds.add(cubicPair.first()[3]);
53 find_tight_bounds(cubicPair.second(), bounds);
55 bounds.add(cubicPair.second()[0]);
56 bounds.add(cubicPair.second()[3]);
226 SkDRect bounds = {DBL_MAX, DBL_MAX, -DBL_MAX, -DBL_MAX};
227 find_tight_bounds(cubic, bounds);
228 if ( (!AlmostEqualUlps(reducer.fLine[0].fX, bounds
[all...]
H A DPathOpsTestCommon.cpp124 bool ValidBounds(const SkPathOpsBounds& bounds) { argument
125 if (SkScalarIsNaN(bounds.fLeft)) {
128 if (SkScalarIsNaN(bounds.fTop)) {
131 if (SkScalarIsNaN(bounds.fRight)) {
134 return !SkScalarIsNaN(bounds.fBottom);
H A DPathTest.cpp524 // Be sure that path::transform correctly updates isFinite and the bounds
526 // set to true in this case, but the bounds were not set to empty (which
1174 const SkRect& bounds) {
1176 REPORTER_ASSERT(reporter, p.getBounds() == bounds);
1180 REPORTER_ASSERT(reporter, p2.getBounds() == bounds);
1185 REPORTER_ASSERT(reporter, other.getBounds() == bounds);
1317 // A circle that bounds kBaseRect (with a significant amount of slop)
3394 SkRect bounds, bounds2; local
3406 bounds.set(0, 0, SK_Scalar1, SK_Scalar1);
3408 p.addRoundRect(bounds, SK_Scalar
1173 check_convex_bounds(skiatest::Reporter* reporter, const SkPath& p, const SkRect& bounds) argument
[all...]

Completed in 182 milliseconds

1234567891011>>