/external/skia/src/utils/ |
H A D | SkNinePatch.cpp | 58 // 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 D | SkProxyCanvas.cpp | 29 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 D | SkDebugCanvas.cpp | 598 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 D | SkDebugCanvas.h | 218 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 D | SkDrawCommand.cpp | 96 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 D | SkDrawCommand.h | 537 SkSaveLayerCommand(const SkRect* bounds, const SkPaint* paint,
|
/external/skia/src/utils/mac/ |
H A D | SkCreateCGImageRef.cpp | 218 CGRect bounds = CGPDFPageGetBoxRect(page, kCGPDFMediaBox); local 220 int w = (int)CGRectGetWidth(bounds); 221 int h = (int)CGRectGetHeight(bounds);
|
/external/skia/src/views/ |
H A D | SkView.cpp | 155 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 D | SkBorderView.cpp | 58 SkRect bounds; local 59 fAnim.getInvalBounds(&bounds); 60 this->inval(&bounds);
|
H A D | SkImageView.cpp | 180 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 D | SkProgressBarView.cpp | 41 SkRect bounds; local 42 fAnim.getInvalBounds(&bounds); 43 this->inval(&bounds);
|
H A D | SkScrollBarView.cpp | 95 SkRect bounds; local 96 fAnim.getInvalBounds(&bounds); 97 this->inval(&bounds);
|
H A D | SkWidgetViews.cpp | 302 SkRect bounds; local 303 fAnim.getInvalBounds(&bounds); 304 this->inval(&bounds);
|
/external/skia/src/views/mac/ |
H A D | SkOSWindow_Mac.cpp | 50 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 D | CanvasStateTest.cpp | 53 // 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 D | CanvasTest.cpp | 543 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 D | ClipStackTest.cpp | 406 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 D | FontHostTest.cpp | 285 SkRect bounds; local 291 // Requesting the bounds forces a generateMetrics call. 292 SkScalar width2 = paint.measureText(txt, strlen(txt), &bounds);
|
H A D | FontObjTest.cpp | 95 SkRect bounds; local 101 // Requesting the bounds forces a generateMetrics call. 102 SkScalar width2 = paint.measureText(txt, strlen(txt), &bounds);
|
H A D | ImageFilterTest.cpp | 456 // 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 D | PathOpsAngleIdeas.cpp | 259 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 D | PathOpsBoundsTest.cpp | 18 {{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 D | PathOpsCubicReduceOrderTest.cpp | 44 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 D | PathOpsTestCommon.cpp | 124 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 D | PathTest.cpp | 524 // 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...] |