Home
last modified time | relevance | path

Searched refs:fCanvas (Results 1 – 25 of 51) sorted by relevance

123

/external/skia/src/doc/
DSkDocument_XPS.cpp36 fCanvas.reset(SkNEW_ARGS(SkCanvas, (&fDevice))); in onBeginPage()
37 fCanvas->clipRect(trimBox); in onBeginPage()
38 fCanvas->translate(trimBox.x(), trimBox.y()); in onBeginPage()
39 return fCanvas.get(); in onBeginPage()
43 SkASSERT(fCanvas.get()); in onEndPage()
44 fCanvas->flush(); in onEndPage()
45 fCanvas.reset(NULL); in onEndPage()
50 SkASSERT(!fCanvas.get()); in onClose()
58 SkAutoTUnref<SkCanvas> fCanvas; member in SkDocument_XPS
DSkDocument_PDF.cpp301 SkASSERT(!fCanvas.get()); in onBeginPage()
307 fCanvas.reset(SkNEW_ARGS(SkCanvas, (device.get()))); in onBeginPage()
309 fCanvas->clipRect(trimBox); in onBeginPage()
310 fCanvas->translate(trimBox.x(), trimBox.y()); in onBeginPage()
311 return fCanvas.get(); in onBeginPage()
315 SkASSERT(fCanvas.get()); in onEndPage()
316 fCanvas->flush(); in onEndPage()
317 fCanvas.reset(NULL); in onEndPage()
321 SkASSERT(!fCanvas.get()); in onClose()
337 SkAutoTUnref<SkCanvas> fCanvas; member in __anoncf4749eb0111::SkDocument_PDF
/external/skia/src/core/
DSkMultiPictureDraw.cpp25 fCanvas->drawPicture(fPicture, &fMatrix, fPaint); in draw()
31 fCanvas = SkRef(canvas); in init()
47 data[i].fCanvas->unref(); in Reset()
95 dd->fCanvas->drawPicture(dd->fPicture, &dd->fMatrix, dd->fPaint); in draw()
112 GrContext* context = fGPUDrawData[0].fCanvas->getGrContext(); in draw()
123 SkASSERT(data.fCanvas->getGrContext() == context); in draw()
127 if (!data.fCanvas->getClipBounds(&clipBounds)) { in draw()
131 SkMatrix initialMatrix = data.fCanvas->getTotalMatrix(); in draw()
134 GrRenderTarget* rt = data.fCanvas->internal_private_accessTopLayerRenderTarget(); in draw()
155 SkCanvas* canvas = data.fCanvas; in draw()
[all …]
DSkRecordDraw.h49 , fCanvas(canvas)
71 SkCanvas* fCanvas; variable
DSkCanvasPriv.h19 SkCanvas* fCanvas;
/external/skia/tools/
DCopyTilesRenderer.cpp49 fCanvas.reset(this->INHERITED::setupCanvas(fLargeTileWidth, fLargeTileHeight)); in init()
58 SkAutoCanvasRestore autoRestore(fCanvas, true); in render()
62 SkMatrix mat(fCanvas->getTotalMatrix()); in render()
64 fCanvas->setMatrix(mat); in render()
69 mpd.add(fCanvas, fPicture); in render()
73 fCanvas->drawPicture(fPicture); in render()
77 fCanvas->readPixels(SkIRect::MakeSize(fCanvas->getBaseLayerSize()), &baseBitmap); in render()
DPictureRenderer.cpp68 SkASSERT(NULL == fCanvas.get()); in init()
69 if (fPicture || fCanvas.get()) { in init()
79 fCanvas.reset(this->setupCanvas()); in init()
196 fCanvas.reset(NULL); in end()
390 SkASSERT(fCanvas.get() != NULL); in render()
392 if (NULL == fCanvas.get() || NULL == fPicture) { in render()
396 PipeController pipeController(fCanvas.get()); in render()
401 fCanvas->flush(); in render()
406 fCanvas->readPixels(*out, 0, 0); in render()
409 return write(fCanvas, fWritePath, fMismatchPath, fInputFilename, fJsonSummaryPtr, in render()
[all …]
/external/skia/debugger/QT/
DSkGLWidget.cpp42 fCanvas.reset(NULL); in initializeGL()
59 fCanvas.reset(NULL); in createRenderTarget()
67 fCanvas.reset(new SkCanvas(fGpuDevice)); in createRenderTarget()
76 if (!this->isHidden() && fCanvas) { in paintGL()
78 fDebugger->draw(fCanvas.get()); in paintGL()
80 fCanvas->flush(); in paintGL()
/external/skia/include/pipe/
DSkGPipe.h54 SkCanvas* fCanvas;
65 SkGPipeController() : fCanvas(NULL) {} in SkGPipeController()
94 SkGPipeCanvas* fCanvas; variable
102 bool isRecording() const { return SkToBool(fCanvas); } in isRecording()
164 SkGPipeCanvas* fCanvas; variable
/external/skia/experimental/PdfViewer/inc/
DSkPdfTokenLooper.h36 , fCanvas(canvas) {} in SkPdfTokenLooper()
46 , fCanvas(parent->fCanvas) {} in SkPdfTokenLooper()
65 SkCanvas* fCanvas; variable
/external/skia/bench/
DStrokeBench.cpp15 SkCanvas* fCanvas; member
26 rec->fCanvas->drawRect(r, rec->fPaint); in draw_rect()
35 rec->fCanvas->drawRRect(rec->fRRect, rec->fPaint); in draw_rrect()
45 rec->fCanvas->drawOval(r, rec->fPaint); in draw_oval()
82 fRec.fCanvas = canvas; in onDraw()
DBezierBench.cpp14 SkCanvas* fCanvas; member
24 SkCanvas* canvas = rec->fCanvas; in draw_quad()
36 SkCanvas* canvas = rec->fCanvas; in draw_cubic()
82 fRec.fCanvas = canvas; in onDraw()
/external/skia/include/core/
DSkCanvas.h1370 explicit AutoValidateClip(SkCanvas* canvas) : fCanvas(canvas) { in AutoValidateClip()
1371 fCanvas->validateClip(); in AutoValidateClip()
1373 ~AutoValidateClip() { fCanvas->validateClip(); } in ~AutoValidateClip()
1376 const SkCanvas* fCanvas;
1394 SkAutoCanvasRestore(SkCanvas* canvas, bool doSave) : fCanvas(canvas), fSaveCount(0) { in SkAutoCanvasRestore()
1395 if (fCanvas) { in SkAutoCanvasRestore()
1403 if (fCanvas) { in ~SkAutoCanvasRestore()
1404 fCanvas->restoreToCount(fSaveCount); in ~SkAutoCanvasRestore()
1413 if (fCanvas) { in restore()
1414 fCanvas->restoreToCount(fSaveCount); in restore()
[all …]
/external/skia/src/pipe/
DSkGPipeWrite.cpp187 SkGPipeCanvas* fCanvas; member in BitmapShuttle
357 AutoPipeNotify(SkGPipeCanvas* canvas) : fCanvas(canvas) {} in AutoPipeNotify()
358 ~AutoPipeNotify() { fCanvas->doNotify(); } in ~AutoPipeNotify()
360 SkGPipeCanvas* fCanvas; member in SkGPipeCanvas::AutoPipeNotify
1316 SkSafeUnref(fCanvas); in ~SkGPipeController()
1320 SkRefCnt_SafeAssign(fCanvas, canvas); in setCanvas()
1327 fCanvas = NULL; in SkGPipeWriter()
1336 if (NULL == fCanvas) { in startRecording()
1338 fCanvas = SkNEW_ARGS(SkGPipeCanvas, (controller, &fWriter, flags, width, height)); in startRecording()
1340 controller->setCanvas(fCanvas); in startRecording()
[all …]
/external/skia/experimental/SkV8Example/
DJsContext.h32 , fCanvas(NULL) in JsContext()
43 virtual SkCanvas* getCanvas() { return fCanvas; }; in getCanvas()
58 SkCanvas* fCanvas; variable
/external/skia/src/gpu/
DGrRecordReplaceDraw.cpp67 , fCanvas(canvas) in ReplaceDraw()
96 (void)fCanvas->getClipBounds(&query); in draw()
136 SkAutoCanvasMatrixPaint acmp(fCanvas, &dp.matrix, dp.paint, dp.picture->cullRect()); in operator ()()
139 ReplaceDraw draw(fCanvas, fLayerCache, in operator ()()
169 draw_replacement_bitmap(layer, fCanvas); in operator ()()
190 SkCanvas* fCanvas; member in ReplaceDraw
/external/skia/src/animator/
DSkDrawTo.cpp39 SkCanvas* save = maker.fCanvas; in draw()
40 maker.fCanvas = &canvas; in draw()
42 maker.fCanvas = save; in draw()
DSkDrawSaveLayer.cpp44 maker.fCanvas->saveLayer(&bounds->fRect, &realPaint); in draw()
47 maker.fCanvas->saveLayer(&bounds->fRect, save); in draw()
52 maker.fCanvas->restore(); in draw()
DSkDrawClip.cpp33 maker.fCanvas->clipRect(rect->fRect); in draw()
36 maker.fCanvas->clipPath(path->fPath); in draw()
DSkDisplayMovie.cpp79 maker.fCanvas->save(); in draw()
81 bool result = fMovie.draw(maker.fCanvas, &local, in draw()
84 maker.fCanvas->restore(); in draw()
DSkSnapshot.cpp65 pixels.allocPixels(maker.fCanvas->imageInfo()); in draw()
66 maker.fCanvas->readPixels(&pixels, 0, 0); in draw()
DSkDrawRectangle.cpp50 maker.fCanvas->drawRect(fRect, *maker.fPaint); in draw()
131 maker.fCanvas->drawRoundRect(fRect, rx, ry, *maker.fPaint); in draw()
DSkDrawFull.cpp16 maker.fCanvas->drawPaint(*maker.fPaint); in draw()
DSkDrawOval.cpp26 maker.fCanvas->drawOval(fRect, *maker.fPaint); in draw()
/external/skia/src/utils/
DSkTextBox.cpp244 SkCanvas* fCanvas; member in CanvasVisitor
246 CanvasVisitor(SkCanvas* canvas) : fCanvas(canvas) {} in CanvasVisitor()
250 fCanvas->drawText(text, length, x, y, paint); in operator ()()

123