Lines Matching full:draw
34 #define CHECK_SHOULD_DRAW(draw) \
37 this->prepareRenderTarget(draw); \
40 #define CHECK_SHOULD_DRAW(draw) this->prepareRenderTarget(draw)
288 // call this ever each draw call, to ensure that the context reflects our state,
290 void SkGpuDevice::prepareRenderTarget(const SkDraw& draw) {
295 SkASSERT(draw.fClipStack);
296 convert_matrixclip(fContext, *draw.fMatrix,
297 *draw.fClipStack, *draw.fClip, this->getOrigin());
613 void SkGpuDevice::drawPaint(const SkDraw& draw, const SkPaint& paint) {
614 CHECK_SHOULD_DRAW(draw);
620 *draw.fMatrix,
636 void SkGpuDevice::drawPoints(const SkDraw& draw, SkCanvas::PointMode mode,
638 CHECK_SHOULD_DRAW(draw);
647 draw.drawPoints(mode, count, pts, paint, true);
655 *draw.fMatrix,
679 void SkGpuDevice::drawRect(const SkDraw& draw, const SkRect& rect,
681 CHECK_SHOULD_DRAW(draw);
697 if (!usePath && paint.isAntiAlias() && !draw.fMatrix->rectStaysRect()) {
704 this->drawPath(draw, path, paint, NULL, true);
712 *draw.fMatrix,
797 void SkGpuDevice::drawPath(const SkDraw& draw, const SkPath& origSrcPath,
800 CHECK_SHOULD_DRAW(draw);
806 *draw.fMatrix,
835 // a new stroked-path. This is motivated by canvas2D sites that draw
842 !(draw.fMatrix->getType() & gMatrixMask) &&
860 pathPtr->transform(*draw.fMatrix, devPathPtr);
863 *draw.fMatrix, *draw.fClip, draw.fBounder, &grPaint);
892 void SkGpuDevice::drawBitmap(const SkDraw& draw,
897 CHECK_SHOULD_DRAW(draw);
921 this->internalDrawBitmap(draw, bitmap, srcRect, m, &grPaint);
932 r.set(draw.fClip->getBounds());
934 matrix.setConcat(*draw.fMatrix, m);
971 this->internalDrawBitmap(draw, tmpB, srcR, tmpM, &grPaint);
984 void SkGpuDevice::internalDrawBitmap(const SkDraw& draw,
1048 void SkGpuDevice::drawSprite(const SkDraw& draw, const SkBitmap& bitmap,
1050 CHECK_SHOULD_DRAW(draw);
1080 void SkGpuDevice::drawDevice(const SkDraw& draw, SkDevice* dev,
1082 CHECK_SHOULD_DRAW(draw);
1117 void SkGpuDevice::drawVertices(const SkDraw& draw, SkCanvas::VertexMode vmode,
1123 CHECK_SHOULD_DRAW(draw);
1137 *draw.fMatrix,
1220 * Test code between raster and gpu (they should draw the same)
1249 void SkGpuDevice::drawText(const SkDraw& draw, const void* text,
1252 CHECK_SHOULD_DRAW(draw);
1254 if (draw.fMatrix->getType() & SkMatrix::kPerspective_Mask) {
1256 draw.drawText((const char*)text, byteLength, x, y, paint);
1258 SkDraw myDraw(draw);
1265 *draw.fMatrix,
1270 GrTextContext context(fContext, grPaint, draw.fExtMatrix);
1276 void SkGpuDevice::drawPosText(const SkDraw& draw, const void* text,
1280 CHECK_SHOULD_DRAW(draw);
1282 if (draw.fMatrix->getType() & SkMatrix::kPerspective_Mask) {
1284 draw.drawPosText((const char*)text, byteLength, pos, constY,
1287 SkDraw myDraw(draw);
1293 *draw.fMatrix,
1299 GrTextContext context(fContext, grPaint, draw.fExtMatrix);
1306 void SkGpuDevice::drawTextOnPath(const SkDraw& draw, const void* text,
1309 CHECK_SHOULD_DRAW(draw);
1311 SkASSERT(draw.fDevice == this);
1312 draw.drawTextOnPath((const char*)text, len, path, m, paint);