/external/chromium_org/third_party/skia/gm/ |
H A D | linepaths.cpp | 98 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); local 104 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); 109 canvas->translate(0, rect.height() + 40 * SK_Scalar1); 114 canvas->translate(rect.width() + 40 * SK_Scalar1, 0); 118 this->drawPath(path.fPath, canvas, color, rect, 127 canvas->drawRect(rect, rectPaint); 136 0, rect.height() + 12 * SK_Scalar1, 140 0, rect.height() + 24 * SK_Scalar1, 144 0, rect.height() + 36 * SK_Scalar1, 240 SkRect rect local [all...] |
H A D | megalooper.cpp | 81 // Just draw a blurred rect at each of the four corners of a square (centered at x,y). 104 SkRect rect = { -kHalfSquareSize, -kHalfSquareSize, kHalfSquareSize, kHalfSquareSize }; local 105 rect.offset(gBlurOffsets[i]); 106 rect.offset(x, y); 107 canvas->drawRect(rect, paint); 122 // (so each blurred rect is centered at one of the corners of the original). 123 // For each blur a large outer clip is centered around the blurred rect 124 // while a difference clip stays at the location of the original rect. 125 // Each blurred rect is drawn with a draw looper where the original (non- 126 // blurred rect) i 145 SkRect rect = { -kHalfSquareSize, -kHalfSquareSize, kHalfSquareSize, kHalfSquareSize }; local 185 SkRect rect = { -kHalfSquareSize, -kHalfSquareSize, kHalfSquareSize, kHalfSquareSize }; local [all...] |
H A D | modecolorfilters.cpp | 38 // draws a background behind each test rect to see transparency 72 // size of rect for each test case 138 SkRect rect = SkRect::MakeXYWH(x * kRectWidth, y * kRectHeight, local 141 canvas->saveLayer(&rect, NULL); 142 canvas->drawRect(rect, bgPaint); 143 canvas->drawRect(rect, paint);
|
H A D | patheffects.cpp | 154 SkIRect rect = SkIRect::MakeXYWH(20, 20, 60, 60); local 160 canvas->drawIRect(rect, p);
|
H A D | quadpaths.cpp | 99 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); local 105 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); 110 canvas->translate(0, rect.height() + 40 * SK_Scalar1); 115 canvas->translate(rect.width() + 40 * SK_Scalar1, 0); 119 this->drawPath(path.fPath, canvas, color, rect, 128 canvas->drawRect(rect, rectPaint); 137 0, rect.height() + 12 * SK_Scalar1, 141 0, rect.height() + 24 * SK_Scalar1, 145 0, rect.height() + 36 * SK_Scalar1, 246 SkRect rect local [all...] |
H A D | roundrects.cpp | 145 SkRect rect = SkRect::MakeLTRB(-20, -30, 20, 30); variable 147 circleRect.setRectXY(rect, 5, 5); 176 canvas->drawRect(rect, rectPaint); 189 SkRect rect = SkRect::MakeLTRB(-20, -60, 20, 60); variable 191 ellipseRect.setRectXY(rect, 5, 10); 201 canvas->drawRect(rect, rectPaint); 208 SkRect rect = SkRect::MakeLTRB(-80, -30, 80, 30); variable 210 ellipseRect.setRectXY(rect, 20, 5); 221 canvas->drawRect(rect, rectPaint); 228 SkRect rect variable 246 SkRect rect = SkRect::MakeLTRB(-80, -1, 80, 0); variable [all...] |
H A D | xfermodeimagefilter.cpp | 78 static void drawClippedPaint(SkCanvas* canvas, const SkRect& rect, const SkPaint& paint, argument 82 canvas->clipRect(rect); 204 SkImageFilter::CropRect rect(SkRect::Make(cropRect)); 207 mode, offsetBackground, offsetForeground, &rect));
|
/external/chromium_org/third_party/skia/include/core/ |
H A D | SkImageFilter.h | 43 explicit CropRect(const SkRect& rect, uint32_t flags = kHasAll_CropEdge) : fRect(rect), fFlags(flags) {} argument 45 const SkRect& rect() const { return fRect; } function in class:SkImageFilter::CropRect 159 * Returns whether any edges of the crop rect have been set. The crop 160 * rect is set at construction time, and determines which pixels from the 161 * input image will be processed. The size of the crop rect should be 162 * used as the size of the destination image. The origin of this rect 240 // Given the bounds of the destination rect to be filled in device 242 // which rect of the source image would be required (third parameter). 250 * Apply the transformed crop rect t [all...] |
/external/chromium_org/third_party/skia/samplecode/ |
H A D | SampleAARectModes.cpp | 56 SkRect rect = SkRect::MakeXYWH(W / 4 + offset, local 59 canvas->drawRect(rect, paint);
|
H A D | SampleArc.cpp | 64 static void draw_label(SkCanvas* canvas, const SkRect& rect, argument 76 canvas->drawText(str.c_str(), str.size(), rect.centerX(), 77 rect.fBottom + paint.getTextSize() * 5/4, paint);
|
H A D | SampleEmptyPath.cpp | 78 SkRect rect = SkRect::MakeWH(125*SK_Scalar1, 100*SK_Scalar1); local 87 canvas->translate(0, rect.height() + 50 * SK_Scalar1); 90 canvas->translate(rect.width() + 100 * SK_Scalar1, 0); 97 this->drawEmpty(canvas, color, rect, 105 canvas->drawRect(rect, rectPaint); 115 0, rect.height() + 15 * SK_Scalar1,
|
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkBBoxHierarchyRecord.cpp | 77 void SkBBoxHierarchyRecord::onClipRect(const SkRect& rect, argument 81 this->INHERITED::onClipRect(rect, op, edgeStyle);
|
H A D | SkRRect.cpp | 13 void SkRRect::setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { argument 14 if (rect.isEmpty()) { 21 this->setRect(rect); 25 if (rect.width() < xRad+xRad || rect.height() < yRad+yRad) { 26 SkScalar scale = SkMinScalar(SkScalarDiv(rect.width(), xRad + xRad), 27 SkScalarDiv(rect.height(), yRad + yRad)); 33 fRect = rect; 46 void SkRRect::setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, argument 48 if (rect 101 setRectRadii(const SkRect& rect, const SkVector radii[4]) argument [all...] |
H A D | SkRasterClip.cpp | 63 bool SkRasterClip::setRect(const SkIRect& rect) { argument 68 fIsRect = fBW.setRect(rect); 95 bool SkRasterClip::op(const SkIRect& rect, SkRegion::Op op) { argument 98 fIsBW ? fBW.op(rect, op) : fAA.op(rect, op); 156 // check that the rect really needs aa, or is it close enought to 157 // integer boundaries that we can just treat it as a BW rect?
|
/external/chromium_org/third_party/skia/src/effects/ |
H A D | Sk2DPathEffect.cpp | 38 const SkIRect& rect = iter.rect(); local 39 for (int y = rect.fTop; y < rect.fBottom; ++y) { 40 this->nextSpan(rect.fLeft, y, rect.width(), dst);
|
/external/chromium_org/third_party/skia/src/gpu/ |
H A D | GrSWMaskHelper.cpp | 43 * Draw a single rect element of the clip stack into the accumulation bitmap 45 void GrSWMaskHelper::draw(const SkRect& rect, SkRegion::Op op, argument 55 fDraw.drawRect(rect, paint); 215 const SkIRect& rect) { 224 SkRect dstRect = SkRect::MakeLTRB(SK_Scalar1 * rect.fLeft, 225 SK_Scalar1 * rect.fTop, 226 SK_Scalar1 * rect.fRight, 227 SK_Scalar1 * rect.fBottom); 235 maskMatrix.preTranslate(SkIntToScalar(-rect.fLeft), SkIntToScalar(-rect 213 DrawToTargetWithPathMask(GrTexture* texture, GrDrawTarget* target, const SkIRect& rect) argument [all...] |
/external/chromium_org/third_party/skia/tests/ |
H A D | BBoxHierarchyTest.cpp | 26 SkIRect rect; member in struct:DataRect 31 SkIRect rect = {0,0,0,0}; local 32 while (rect.isEmpty()) { 33 rect.fLeft = rand.nextS() % MAX_SIZE; 34 rect.fRight = rand.nextS() % MAX_SIZE; 35 rect.fTop = rand.nextS() % MAX_SIZE; 36 rect.fBottom = rand.nextS() % MAX_SIZE; 37 rect.sort(); 39 return rect; 44 out[i].rect [all...] |
H A D | CanvasStateTest.cpp | 24 SkRect rect = SkRect::MakeXYWH(SkIntToScalar(SPACER), SkIntToScalar(SPACER), local 53 // draw a rect within the layer's bounds and again outside the layer's bounds 54 canvas.saveLayerAlpha(&rect, layerAlpha[k], flags[k]); 71 tmpCanvas->drawRect(rect, bluePaint); 72 tmpCanvas->translate(0, rect.height() + SPACER); 73 tmpCanvas->drawRect(rect, bluePaint); 81 canvas.translate(0, 2*(rect.height() + SPACER));
|
H A D | DeviceLooperTest.cpp | 32 // very large devce, small rect 61 // test that a rect that doesn't intersect returns no loops 115 const SkIRect rect = SkIRect::MakeWH(w, h); local 128 SkDeviceLooper looper(bitmap, rc, rect, gRec[i].fAA);
|
H A D | RTreeTest.cpp | 21 SkIRect rect; member in struct:DataRect 26 SkIRect rect = {0,0,0,0}; local 27 while (rect.isEmpty()) { 28 rect.fLeft = rand.nextS() % 1000; 29 rect.fRight = rand.nextS() % 1000; 30 rect.fTop = rand.nextS() % 1000; 31 rect.fBottom = rand.nextS() % 1000; 32 rect.sort(); 34 return rect; 39 out[i].rect [all...] |
/external/chromium_org/third_party/webrtc/modules/desktop_capture/ |
H A D | mouse_cursor_monitor_win.cc | 33 // Get the rect of the currently selected screen, relative to the primary 35 // happens, an empty rect is returned. 124 DesktopRect rect = GetScreenRect(); local 126 inside = rect.Contains(position); 127 position = position.subtract(rect.top_left());
|
/external/chromium_org/ui/gfx/geometry/ |
H A D | quad_f.cc | 13 void QuadF::operator=(const RectF& rect) { argument 14 p1_ = PointF(rect.x(), rect.y()); 15 p2_ = PointF(rect.right(), rect.y()); 16 p3_ = PointF(rect.right(), rect.bottom()); 17 p4_ = PointF(rect.x(), rect.bottom());
|
H A D | quad_f.h | 29 explicit QuadF(const RectF& rect) argument 30 : p1_(rect.x(), rect.y()), 31 p2_(rect.right(), rect.y()), 32 p3_(rect.right(), rect.bottom()), 33 p4_(rect.x(), rect.bottom()) {} 35 void operator=(const RectF& rect); [all...] |
/external/chromium_org/ui/surface/ |
H A D | accelerated_surface_mac.cc | 9 #include "ui/gfx/rect.h" 174 void AcceleratedSurface::Clear(const gfx::Rect& rect) { argument 177 glViewport(0, 0, rect.width(), rect.height()); 180 glOrtho(0, rect.width(), 0, rect.height(), -1, 1);
|
/external/chromium_org/ui/views/controls/button/ |
H A D | label_button_border.cc | 14 #include "ui/gfx/rect.h" 38 const gfx::Rect& rect, 47 Painter::PaintPainterAt(canvas, painter, rect); 100 gfx::Rect rect(native_theme_delegate->GetThemePaintRect()); 107 const SkRect sk_rect = gfx::RectToSkRect(rect); 110 PaintHelper(this, canvas, state, rect, extra); 118 PaintHelper(this, canvas, state, rect, extra); 123 PaintHelper(this, canvas, state, rect, extra); 35 PaintHelper(LabelButtonBorder* border, gfx::Canvas* canvas, ui::NativeTheme::State state, const gfx::Rect& rect, const ui::NativeTheme::ExtraParams& extra) argument
|