/external/stlport/test/unit/ |
H A D | set_test.cpp | 25 CPPUNIT_TEST(bounds); 42 void bounds(); 123 void SetTest::bounds() function in class:SetTest
|
/external/skia/platform_tools/nacl/src/ |
H A D | nacl_hello.cpp | 37 SkRect bounds; local 38 canvas->getClipBounds(&bounds); 40 bounds.centerX(), bounds.centerY(),
|
/external/skia/samplecode/ |
H A D | SampleAAClip.cpp | 78 SkRect bounds; local 80 bounds.set(0, 0, 20, 20); 81 bounds.inset(SK_ScalarHalf, SK_ScalarHalf); 83 // path.addRect(bounds); 84 // path.addOval(bounds); 85 path.addRoundRect(bounds, 4, 4);
|
H A D | SampleAARectModes.cpp | 98 const SkRect bounds = SkRect::MakeWH(W, H); local 114 canvas->drawRect(bounds, fBGPaint); 115 canvas->saveLayer(&bounds, NULL);
|
H A D | SampleApp.cpp | 1032 SkRect bounds; local 1033 paint.measureText(c_str, size, &bounds); 1034 bounds.offset(left, top); 1036 bounds.inset(inset, inset); 1037 canvas->drawRect(bounds, paint);
|
H A D | SampleDither.cpp | 47 SkRect bounds = r; local 65 path.arcTo(bounds, 0, sweep, false);
|
H A D | SampleDitherBitmap.cpp | 49 SkIRect bounds; local 50 path.getBounds().round(&bounds); 51 SkRegion clip(bounds);
|
H A D | SampleDraw.cpp | 122 void getBounds(SkRect* bounds) { argument 123 this->onGetBounds(bounds); 152 SkRect bounds; local 153 this->getBounds(&bounds); 154 return bounds.contains(x, y); 212 virtual void onGetBounds(SkRect* bounds) { argument 213 *bounds = fRect;
|
H A D | SampleHairModes.cpp | 96 const SkRect bounds = SkRect::MakeWH(W, H); local 112 canvas->drawRect(bounds, fBGPaint); 113 canvas->saveLayer(&bounds, NULL);
|
H A D | SampleLayerMask.cpp | 42 SkRect bounds = r; local 43 bounds.offset(-bounds.fLeft, -bounds.fTop); 44 c.drawOval(bounds, paint);
|
H A D | SampleMeasure.cpp | 52 SkRect bounds; local 61 SkScalar w = p.measureText(text, len, &bounds, scale); 65 canvas->drawRect(bounds, p);
|
H A D | SampleRegion.cpp | 56 // Need a bounds for the text 57 SkRect bounds; local 61 bounds.set(x, y + fm.fTop, x + paint.measureText(text, len), y + fm.fBottom); 63 // may need to outset bounds a little, to account for hinting and/or 65 bounds.inset(-SkIntToScalar(2), -SkIntToScalar(2)); 67 canvas->saveLayer(&bounds, NULL); 71 { bounds.fLeft, y }, 72 { bounds.fRight, y } 85 canvas->drawRect(bounds, p);
|
H A D | SampleStrokePath.cpp | 79 const SkRect& bounds = path->getBounds(); local 80 SkScalar scale = dstWidth / bounds.width(); 119 const SkRect& bounds = fPath.getBounds(); local 120 fPath.offset(-bounds.fLeft, -bounds.fTop);
|
H A D | SampleWarp.cpp | 216 void init(const SkRect& bounds, int rows, int cols, 219 const SkRect& bounds() const { return fBounds; } function in class:Mesh 268 void Mesh::init(const SkRect& bounds, int rows, int cols, argument 272 fBounds = bounds; 286 const SkScalar dx = bounds.width() / rows; 287 const SkScalar dy = bounds.height() / cols; 295 pts->set(bounds.fLeft + x*dx, bounds.fTop + y*dy); 342 SkRect bounds, texture; local 345 bounds [all...] |
/external/skia/src/animator/ |
H A D | SkBoundable.h | 23 void setBounds(SkIRect& bounds) { fBounds = bounds; } argument 25 void clearBounds() { fBounds.fLeft = (int16_t) SkToU16(0x8000); }; // mark bounds as unset
|
H A D | SkDrawSaveLayer.h | 30 SkDrawRect* bounds; member in class:SkSaveLayer
|
/external/skia/src/core/ |
H A D | SkAAClip.cpp | 96 static RunHead* AllocRect(const SkIRect& bounds) { argument 97 SkASSERT(!bounds.isEmpty()); 98 int width = bounds.width(); 102 yoff->fY = bounds.height() - 1; 665 bool SkAAClip::setRect(const SkIRect& bounds) { argument 666 if (bounds.isEmpty()) { 674 r.set(bounds); 680 fBounds = bounds; 681 fRunHead = RunHead::AllocRect(bounds); 732 const SkIRect& bounds local 892 Builder(const SkIRect& bounds) argument 1388 RowIter(const uint8_t* row, const SkIRect& bounds) argument 1458 operatorX(SkAAClip::Builder& builder, int lastY, RowIter& iterA, RowIter& iterB, AlphaProc proc, const SkIRect& bounds) argument 1530 const SkIRect& bounds = builder.getBounds(); local 1578 SkASSERT(top < bot); if (!rowA && !rowB) { builder.addRun(bounds.fLeft, bot - 1, 0, bounds.width()); } else if (top >= bounds.fTop) argument 1613 SkIRect bounds; local [all...] |
H A D | SkBBoxHierarchyRecord.cpp | 22 void SkBBoxHierarchyRecord::handleBBox(const SkRect& bounds) { argument 24 bounds.roundOut(&r); 34 SkCanvas::SaveLayerStrategy SkBBoxHierarchyRecord::willSaveLayer(const SkRect* bounds, argument 44 if (bounds) { 45 drawBounds = *bounds; 54 SkCanvas::SaveLayerStrategy strategy = this->INHERITED::willSaveLayer(bounds, paint, flags);
|
H A D | SkBBoxRecord.cpp | 38 // If path is inverse filled, use the current clip bounds as the 59 // in the computed bounds. 113 // Set vertical bounds to max extents from font metrics 118 // Pad horizontal bounds on each side by half of max vertical extents (this is sort of 290 bool SkBBoxRecord::transformBounds(const SkRect& bounds, const SkPaint* paint) { argument 291 SkRect outBounds = bounds; 300 // set bounds to current clip
|
H A D | SkCanvas.cpp | 113 by the device's XY offset and bitmap-bounds. 311 const SkRect* bounds = NULL) : fOrigPaint(paint) { 322 (void)canvas->internalSaveLayer(bounds, &tmp, SkCanvas::kARGB_ClipLayer_SaveFlag, 431 #define LOOPER_BEGIN(paint, type, bounds) \ 433 AutoDrawLooper looper(this, paint, false, bounds); \ 587 /* Now we update our initial region to have the bounds of the new device, 588 and then intersect all of the clips in our stack with these bounds, 589 to ensure that we can't draw outside of the device's bounds (and trash 598 accurately take advantage of the new device bounds. 601 SkIRect bounds; local 820 clipRectBounds(const SkRect* bounds, SaveFlags flags, SkIRect* intersection, const SkImageFilter* imageFilter) argument 864 saveLayer(const SkRect* bounds, const SkPaint* paint) argument 869 saveLayer(const SkRect* bounds, const SkPaint* paint, SaveFlags flags) argument 881 internalSaveLayer(const SkRect* bounds, const SkPaint* paint, SaveFlags flags, bool justForImageFilter, SaveLayerStrategy strategy) argument 945 saveLayerAlpha(const SkRect* bounds, U8CPU alpha) argument 949 saveLayerAlpha(const SkRect* bounds, U8CPU alpha, SaveFlags flags) argument 1171 const SkRect* bounds = NULL; local 1537 updateClipConservativelyUsingBounds(const SkRect& bounds, SkRegion::Op op, bool inverseFilled) argument 1880 const SkRect* bounds = NULL; local 1907 const SkRect* bounds = NULL; local 1926 const SkRect* bounds = NULL; local 1945 const SkRect* bounds = NULL; local 1975 const SkRect* bounds = NULL; local 1998 const SkRect* bounds = NULL; local 2029 SkRect bounds = { local 2058 const SkRect* bounds = &dst; local 2103 const SkRect* bounds = &dst; local [all...] |
H A D | SkClipStack.cpp | 229 // occur w/in the intersection of the two finite bounds 259 // lie within the union of the two finite bounds 270 // union of the two bounds. If the two clips exactly overlapped 320 // occur in the union of the two finite bounds 624 SkRect bounds; local 626 this->getBounds(&bounds, &bt); 628 if (bounds.contains(*rect)) { 636 return rect->intersect(bounds);
|
H A D | SkDeviceLooper.cpp | 12 const SkIRect& bounds, bool aa) 27 if (rc.isEmpty() || !fClippedBounds.intersect(bounds, rc.getBounds())) { 10 SkDeviceLooper(const SkBitmap& base, const SkRasterClip& rc, const SkIRect& bounds, bool aa) argument
|
H A D | SkDraw.cpp | 1146 // set the mask's bounds to the transformed bitmap-bounds, 1295 SkIRect bounds; local 1296 bounds.set(x, y, x + bitmap.width(), y + bitmap.height()); 1298 if (fRC->quickReject(bounds)) { 1312 SkScan::FillIRect(bounds, *fRC, blitter); 1321 r.set(bounds); 1429 SkIRect* bounds = &mask.fBounds; local 1438 bounds = &storage; 1452 state.blitMask(mask, *bounds); 2277 compute_bounds(const SkPath& devPath, const SkIRect* clipBounds, const SkMaskFilter* filter, const SkMatrix* filterMatrix, SkIRect* bounds) argument [all...] |
H A D | SkEdgeClipper.cpp | 13 static bool quick_reject(const SkRect& bounds, const SkRect& clip) { argument 14 return bounds.fTop >= clip.fBottom || bounds.fBottom <= clip.fTop; 201 SkRect bounds; local 202 bounds.set(srcPts, 3); 204 if (!quick_reject(bounds, clip)) { 409 SkRect bounds; 410 bounds.set(srcPts, 4); 412 if (!quick_reject(bounds, clip)) {
|
H A D | SkImageFilter.cpp | 128 * bounds with the clip bounds. This is so that the cached result 129 * is always the full size of the primitive's bounds, 151 SkRect bounds; local 152 input->computeFastBounds(src, &bounds); 153 dst->join(bounds); 180 SkIRect bounds; local 181 if (!this->applyCropRect(ctx, proxy, input, &srcOffset, &bounds, &input)) { 184 SkRect srcRect = SkRect::Make(bounds); 190 desc.fWidth = bounds 241 applyCropRect(const Context& ctx, Proxy* proxy, const SkBitmap& src, SkIPoint* srcOffset, SkIRect* bounds, SkBitmap* dst) const argument 282 SkIRect bounds; local [all...] |