/external/skia/src/gpu/ |
H A D | GrDrawTarget.h | 112 * @param rect the rect to draw 113 * @param localRect optional rect that specifies local coords to map onto 114 * rect. If NULL then rect serves as the local coords. 116 * or if it is NULL by rect. This matrix applies to the coordinate implied by 123 const SkRect& rect, 131 const SkRect& rect) { 132 this->drawRect(ds, color, viewM, rect, NULL, NULL); 136 SkRect rect local 130 drawSimpleRect(GrPipelineBuilder* ds, GrColor color, const SkMatrix& viewM, const SkRect& rect) argument [all...] |
H A D | GrSWMaskHelper.cpp | 102 * Draw a single rect element of the clip stack into the accumulation bitmap 104 void GrSWMaskHelper::draw(const SkRect& rect, SkRegion::Op op, argument 116 fDraw.drawRect(rect, paint); 354 const SkIRect& rect) { 361 SkRect dstRect = SkRect::MakeLTRB(SK_Scalar1 * rect.fLeft, 362 SK_Scalar1 * rect.fTop, 363 SK_Scalar1 * rect.fRight, 364 SK_Scalar1 * rect.fBottom); 371 maskMatrix.preTranslate(SkIntToScalar(-rect.fLeft), SkIntToScalar(-rect 349 DrawToTargetWithPathMask(GrTexture* texture, GrDrawTarget* target, GrPipelineBuilder* pipelineBuilder, GrColor color, const SkMatrix& viewMatrix, const SkIRect& rect) argument [all...] |
/external/skia/src/gpu/gl/ |
H A D | GrGLRenderTarget.h | 33 void setViewport(const GrGLIRect& rect) { fViewport = rect; } argument
|
/external/skia/src/pdf/ |
H A D | SkPDFUtils.h | 38 static SkPDFArray* RectToArray(const SkRect& rect); 47 static void AppendRectangle(const SkRect& rect, SkWStream* content);
|
/external/skia/src/utils/debugger/ |
H A D | SkObjectParser.h | 48 @param rect SkIRect 50 static SkString* IRectToString(const SkIRect& rect); 84 @param rect SkRect 86 static SkString* RectToString(const SkRect& rect, const char* title = NULL);
|
H A D | SkObjectParser.cpp | 82 SkString* SkObjectParser::IRectToString(const SkIRect& rect) { argument 85 mRect->appendS32(rect.left()); 87 mRect->appendS32(rect.top()); 89 mRect->appendS32(rect.right()); 91 mRect->appendS32(rect.bottom()); 209 SkString* SkObjectParser::RectToString(const SkRect& rect, const char* title) { argument 219 mRect->appendScalar(rect.left()); 221 mRect->appendScalar(rect.top()); 223 mRect->appendScalar(rect.right()); 225 mRect->appendScalar(rect [all...] |
/external/deqp/framework/referencerenderer/ |
H A D | rrFragmentOperations.hpp | 83 void clearMultisampleColorBuffer (const tcu::PixelBufferAccess& dst, const tcu::Vec4& value, const WindowRectangle& rect); 84 void clearMultisampleColorBuffer (const tcu::PixelBufferAccess& dst, const tcu::IVec4& value, const WindowRectangle& rect); 85 void clearMultisampleColorBuffer (const tcu::PixelBufferAccess& dst, const tcu::UVec4& value, const WindowRectangle& rect); 86 void clearMultisampleDepthBuffer (const tcu::PixelBufferAccess& dst, float value, const WindowRectangle& rect); 87 void clearMultisampleStencilBuffer (const tcu::PixelBufferAccess& dst, int value, const WindowRectangle& rect);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
H A D | ShadowRect.java | 29 public void set(Rect rect) { argument 30 set(rect.left, rect.top, rect.right, rect.bottom);
|
/external/skia/experimental/SkV8Example/ |
H A D | SkV8Example.cpp | 156 void SkV8ExampleWindow::onHandleInval(const SkIRect& rect) { argument 158 winRect.top = rect.top(); 159 winRect.bottom = rect.bottom(); 160 winRect.right = rect.right(); 161 winRect.left = rect.left();
|
/external/libvncserver/libvncserver/ |
H A D | rfbregion.c | 620 sraRgnPopRect(sraRegion *rgn, sraRect *rect, unsigned long flags) { argument 636 rect->y1 = vcurr->start; 637 rect->y2 = vcurr->end; 649 rect->x1 = hcurr->start; 650 rect->x2 = hcurr->end; 662 rect->x1, rect->y1, rect->x2, rect->y2); 838 sraRect rect; local [all...] |
H A D | zlib.c | 87 rfbFramebufferUpdateRectHeader rect; local 215 rect.r.x = Swap16IfLE(x); 216 rect.r.y = Swap16IfLE(y); 217 rect.r.w = Swap16IfLE(w); 218 rect.r.h = Swap16IfLE(h); 219 rect.encoding = Swap32IfLE(rfbEncodingZlib); 221 memcpy(&cl->updateBuf[cl->ublen], (char *)&rect,
|
H A D | zrle.c | 107 rfbFramebufferUpdateRectHeader rect; local 200 rect.r.x = Swap16IfLE(x); 201 rect.r.y = Swap16IfLE(y); 202 rect.r.w = Swap16IfLE(w); 203 rect.r.h = Swap16IfLE(h); 204 rect.encoding = Swap32IfLE(cl->preferredEncoding); 206 memcpy(cl->updateBuf+cl->ublen, (char *)&rect,
|
/external/mesa3d/src/gallium/state_trackers/vdpau/ |
H A D | vdpau_private.h | 289 RectToPipeBox(const VdpRect *rect, struct pipe_resource *res) argument 300 if (rect) { 301 box.x = MIN2(rect->x0, rect->x1); 302 box.y = MIN2(rect->y0, rect->y1); 303 box.width = abs(rect->x1 - rect->x0); 304 box.height = abs(rect->y1 - rect [all...] |
/external/skia/include/core/ |
H A D | SkClipStack.h | 45 //!< This element combines a rect with the current clip using a set operation 47 //!< This element combines a round-rect with the current clip using a set operation 63 Element(const SkRect& rect, SkRegion::Op op, bool doAA) { argument 64 this->initRect(0, rect, op, doAA); 87 //!< Call if getType() is kRRect to get the round-rect. 90 //!< Call if getType() is kRect to get the rect. 120 * Gets the bounds of the clip element, either the rect or path bounds. (Whether the shape 140 * Conservatively checks whether the clip shape contains the rect param. (Whether the shape 143 bool contains(const SkRect& rect) const { 146 return this->getRect().contains(rect); 217 Element(int saveCount, const SkRect& rect, SkRegion::Op op, bool doAA) argument 237 initRect(int saveCount, const SkRect& rect, SkRegion::Op op, bool doAA) argument [all...] |
/external/pdfium/fpdfsdk/include/pdfwindow/ |
H A D | PWL_Utils.h | 116 static CPDF_Rect GetCenterSquare(const CPDF_Rect & rect); 120 static CPDF_Rect OffsetRect(const CPDF_Rect & rect,FX_FLOAT x,FX_FLOAT y); 127 static CFX_ByteString GetBorderAppStream(const CPDF_Rect & rect, FX_FLOAT fWidth, 130 static CFX_ByteString GetCircleBorderAppStream(const CPDF_Rect & rect, FX_FLOAT fWidth, 133 static CFX_ByteString GetRectFillAppStream(const CPDF_Rect & rect,const CPWL_Color & color); 134 static CFX_ByteString GetCircleFillAppStream(const CPDF_Rect & rect,const CPWL_Color & color); 163 static void DrawFillRect(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,const CPDF_Rect & rect, 166 const CPDF_Rect & rect,const FX_COLORREF & color); 167 static void DrawStrokeRect(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,const CPDF_Rect & rect, 172 const CPDF_Rect & rect, FX_FLOA [all...] |
/external/pdfium/fpdfsdk/src/ |
H A D | fpdf_flatten.cpp | 16 FX_BOOL IsValiableRect(CPDF_Rect rect, CPDF_Rect rcPage) argument 18 if ( rect.left - rect.right > 0.000001f || 19 rect.bottom - rect.top > 0.000001f) 22 if (rect.left == 0.0f && 23 rect.top == 0.0f && 24 rect.right == 0.0f && 25 rect.bottom == 0.0f) 30 if (rect [all...] |
/external/skia/experimental/PdfViewer/ |
H A D | pdf_viewer_main.cpp | 119 SkRect rect = renderer.MediaBox(page < 0 ? 0 :page); local 126 renderer.renderPage(page < 0 ? 0 : page, &canvas, rect); 129 SkRect rect = renderer.MediaBox(page < 0 ? 0 :page); 132 SkScalar width = SkScalarMul(rect.width(), SkDoubleToScalar(FLAGS_DPI / 72.0)); 133 SkScalar height = SkScalarMul(rect.height(), SkDoubleToScalar(FLAGS_DPI / 72.0)); 135 rect = SkRect::MakeWH(width, height); 159 renderer.renderPage(page < 0 ? 0 : page, &canvas, rect);
|
/external/skia/tools/skpdiff/ |
H A D | diff_viewer.js | 83 // When the magnify attribute changes, render the magnified rect at 119 // draw the outline rect 121 ctx.rect(magRect.x, magRect.y, magRect.width, magRect.height); 135 // compute a rect (x,y,width,height) that represents the bounding box for 159 // render the magnifier outline rect 160 var rect = scope.computeMagnifierOutline(event); 163 ctx.rect(rect.x, rect.y, rect [all...] |
/external/skia/gm/ |
H A D | convexpolyclip.cpp | 41 SkRect rect = SkRect::MakeWH(wScalar, hScalar); local 50 canvas.drawRect(rect, paint); 51 rect.inset(wScalar / 8, hScalar / 8); 128 SkRect rect = SkRect::MakeLTRB(10.f, 12.f, 80.f, 86.f); variable 129 rotRect.addRect(rect); 131 rotM.setRotate(23.f, rect.centerX(), rect.centerY()); 265 void setRect(const SkRect& rect) { argument 267 fRect = rect;
|
H A D | clippedbitmapshaders.cpp | 103 SkRect rect = SkRect::MakeXYWH(xOrigin, yOrigin, local 106 canvas->clipRect(rect); 107 canvas->drawRect(rect, paint);
|
/external/skia/src/core/ |
H A D | SkRecordDraw.cpp | 86 DRAW(ClipRect, clipRect(r.rect, r.opAA.op, r.opAA.aa)); 113 DRAW(DrawRect, drawRect(r.rect, r.paint)); 197 // Adjust rect for all paints that may affect its geometry, then map it to identity space. 198 Bounds adjustAndMap(SkRect rect, const SkPaint* paint) const { argument 200 rect.sort(); 202 // Adjust the rect for its own paint. 203 if (!AdjustForPaint(paint, &rect)) { 208 // Adjust rect for all the paints from the SaveLayers we're inside. 209 if (!this->adjustForSaveLayerPaints(&rect)) { 214 // Map the rect bac 398 SkRect rect = Bounds::MakeXYWH(op.left, op.top, op.bitmap.width(), op.bitmap.height()); local 415 SkRect rect = SkRect::MakeXYWH(op.left, op.top, image->width(), image->height()); local 520 AdjustTextForFontMetrics(SkRect* rect, const SkPaint& paint) argument 546 AdjustForPaint(const SkPaint* paint, SkRect* rect) argument 557 adjustForSaveLayerPaints(SkRect* rect, int savesToIgnore = 0) const argument [all...] |
/external/skia/src/effects/ |
H A D | SkGpuBlurUtils.cpp | 24 static void scale_rect(SkRect* rect, float xScale, float yScale) { argument 25 rect->fLeft = SkScalarMul(rect->fLeft, xScale); 26 rect->fTop = SkScalarMul(rect->fTop, yScale); 27 rect->fRight = SkScalarMul(rect->fRight, xScale); 28 rect->fBottom = SkScalarMul(rect->fBottom, yScale); 147 const SkRect& rect, 144 GaussianBlur(GrContext* context, GrTexture* srcTexture, bool canClobberSrc, const SkRect& rect, bool cropToRect, float sigmaX, float sigmaY) argument [all...] |
/external/pdfium/core/src/fpdfapi/fpdf_render/ |
H A D | fpdf_render_image.cpp | 60 FX_RECT rect(left, top, left + pDIBitmap->GetWidth(), top + pDIBitmap->GetHeight()); 61 rect.Intersect(m_pDevice->GetClipBox()); 66 pClone = m_pDevice->GetBackDrop()->Clone(&rect); 68 pClone->CompositeBitmap(0, 0, pClone->GetWidth(), pClone->GetHeight(), pForeBitmap, rect.left, rect.top); 81 m_pDevice->SetDIBits(pClone, rect.left, rect.top); 86 m_pDevice->SetDIBits(pDIBitmap, rect.left, rect.top, blend_mode); 95 FX_RECT rect(lef 477 FX_RECT rect = m_ImageMatrix.GetUnitRect().GetOutterRect(); local 567 FX_RECT rect = m_ImageMatrix.GetUnitRect().GetOutterRect(); local [all...] |
/external/pdfium/core/src/reflow/ |
H A D | reflowedpage.cpp | 226 CFX_FloatRect rect (0, pData->m_PosY + pData->m_Height, this->m_PageWidth, pData->m_PosY); 227 if(rect.Contains(x1, y1)) { 461 CFX_FloatRect rect (pData->m_PosX, pData->m_PosY + pData->m_Height, pData->m_PosX + pData->m_Width, pData->m_PosY); 462 m_pDisplayMatrix->TransformRect(rect); 463 if(rect.left > clipBox.right || rect.right < clipBox.left || rect.bottom > clipBox.bottom || rect.top < clipBox.top) { 514 m_pFXDevice->StretchBitMask(pDispSource, (int)(rect.left + 0.5), (int)(rect [all...] |
/external/pdfium/core/src/fxge/dib/ |
H A D | fx_dib_main.cpp | 160 FX_RECT rect(0, 0, m_Width, m_Height); 162 rect.Intersect(*pClip); 163 if (rect.IsEmpty()) { 168 if (!pNewBitmap->Create(rect.Width(), rect.Height(), GetFormat())) { 174 if (GetBPP() == 1 && rect.left % 8 != 0) { 175 int left_shift = rect.left % 32; 178 for (int row = rect.top; row < rect.bottom; row ++) { 179 FX_DWORD* src_scan = (FX_DWORD*)GetScanline(row) + rect [all...] |