Home
last modified time | relevance | path

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

12

/external/skqp/src/core/
DSkSpecialSurface.cpp18 , fCanvas(nullptr) { in SkSpecialSurface_Base()
24 void reset() { fCanvas.reset(); } in reset()
27 SkCanvas* onGetCanvas() { return fCanvas.get(); } in onGetCanvas()
32 std::unique_ptr<SkCanvas> fCanvas; // initialized by derived classes in ctors member in SkSpecialSurface_Base
75 fCanvas.reset(new SkCanvas(fBitmap, this->props())); in SkSpecialSurface_Raster()
76 fCanvas->clipRect(SkRect::Make(subset)); in SkSpecialSurface_Raster()
78 fCanvas->clear(SK_ColorRED); // catch any imageFilter sloppiness in SkSpecialSurface_Raster()
137 fCanvas.reset(new SkCanvas(device)); in SkSpecialSurface_Gpu()
138 fCanvas->clipRect(SkRect::Make(subset)); in SkSpecialSurface_Gpu()
140 fCanvas->clear(SK_ColorRED); // catch any imageFilter sloppiness in SkSpecialSurface_Gpu()
[all …]
DSkMultiPictureDraw.cpp15 fCanvas->drawPicture(fPicture, &fMatrix, fPaint); in draw()
21 fCanvas = canvas; in init()
101 SkCanvas* canvas = data.fCanvas; in draw()
DSkRecordDraw.h52 , fCanvas(canvas)
74 SkCanvas* fCanvas; variable
DSkCanvasPriv.cpp15 : fCanvas(canvas) in SkAutoCanvasMatrixPaint()
34 fCanvas->restoreToCount(fSaveCount); in ~SkAutoCanvasMatrixPaint()
/external/skia/src/core/
DSkSpecialSurface.cpp18 , fCanvas(nullptr) { in SkSpecialSurface_Base()
24 void reset() { fCanvas.reset(); } in reset()
27 SkCanvas* onGetCanvas() { return fCanvas.get(); } in onGetCanvas()
32 std::unique_ptr<SkCanvas> fCanvas; // initialized by derived classes in ctors member in SkSpecialSurface_Base
75 fCanvas.reset(new SkCanvas(fBitmap, this->props())); in SkSpecialSurface_Raster()
76 fCanvas->clipRect(SkRect::Make(subset)); in SkSpecialSurface_Raster()
78 fCanvas->clear(SK_ColorRED); // catch any imageFilter sloppiness in SkSpecialSurface_Raster()
141 fCanvas.reset(new SkCanvas(device)); in SkSpecialSurface_Gpu()
142 fCanvas->clipRect(SkRect::Make(subset)); in SkSpecialSurface_Gpu()
144 fCanvas->clear(SK_ColorRED); // catch any imageFilter sloppiness in SkSpecialSurface_Gpu()
[all …]
DSkMultiPictureDraw.cpp15 fCanvas->drawPicture(fPicture, &fMatrix, fPaint); in draw()
21 fCanvas = canvas; in init()
101 SkCanvas* canvas = data.fCanvas; in draw()
DSkRecordDraw.h52 , fCanvas(canvas)
74 SkCanvas* fCanvas; variable
/external/skqp/src/xps/
DSkXPSDocument.cpp24 std::unique_ptr<SkCanvas> fCanvas; member
59 fCanvas.reset(new SkCanvas(sk_ref_sp(&fDevice))); in onBeginPage()
60 return fCanvas.get(); in onBeginPage()
64 SkASSERT(fCanvas.get()); in onEndPage()
65 fCanvas->flush(); in onEndPage()
66 fCanvas.reset(nullptr); in onEndPage()
71 SkASSERT(!fCanvas.get()); in onClose()
/external/skia/samplecode/
DSampleBigGradient.cpp54 SkCanvas* fCanvas; member in GraphicsPort
57 GraphicsPort(SkCanvas* canvas) : fCanvas(canvas) {} in GraphicsPort()
60 void save() { fCanvas->save(); } in save()
62 fCanvas->saveLayerAlpha(&bounds, alpha); in saveLayer()
64 void restore() { fCanvas->restore(); } in restore()
66 void translate(float x, float y) { fCanvas->translate(x, y); } in translate()
67 void scale(float s) { fCanvas->scale(s, s); } in scale()
68 void clip(const SkRect& r) { fCanvas->clipRect(r); } in clip()
73 fCanvas->drawOval(r, p); in drawOval()
79 fCanvas->drawRect(r, p); in drawRect()
[all …]
/external/skqp/samplecode/
DSampleBigGradient.cpp54 SkCanvas* fCanvas; member in GraphicsPort
57 GraphicsPort(SkCanvas* canvas) : fCanvas(canvas) {} in GraphicsPort()
60 void save() { fCanvas->save(); } in save()
62 fCanvas->saveLayerAlpha(&bounds, alpha); in saveLayer()
64 void restore() { fCanvas->restore(); } in restore()
66 void translate(float x, float y) { fCanvas->translate(x, y); } in translate()
67 void scale(float s) { fCanvas->scale(s, s); } in scale()
68 void clip(const SkRect& r) { fCanvas->clipRect(r); } in clip()
73 fCanvas->drawOval(r, p); in drawOval()
79 fCanvas->drawRect(r, p); in drawRect()
[all …]
/external/skia/src/xps/
DSkXPSDocument.cpp24 std::unique_ptr<SkCanvas> fCanvas; member
59 fCanvas.reset(new SkCanvas(sk_ref_sp(&fDevice))); in onBeginPage()
60 return fCanvas.get(); in onBeginPage()
64 SkASSERT(fCanvas.get()); in onEndPage()
65 fCanvas.reset(nullptr); in onEndPage()
70 SkASSERT(!fCanvas.get()); in onClose()
/external/skia/modules/sksg/src/
DSkSGRenderNode.cpp45 : fCanvas(canvas) in ScopedRenderContext()
51 fCanvas->restoreToCount(fRestoreCount); in ~ScopedRenderContext()
80 fCanvas->saveLayer(bounds, &layer_paint); in setIsolation()
95 fCanvas->saveLayer(bounds, &layer_paint); in setFilterIsolation()
/external/skqp/bench/
DBezierBench.cpp15 SkCanvas* fCanvas; member
25 SkCanvas* canvas = rec->fCanvas; in draw_quad()
37 SkCanvas* canvas = rec->fCanvas; in draw_cubic()
83 fRec.fCanvas = canvas; in onDraw()
/external/skia/bench/
DBezierBench.cpp15 SkCanvas* fCanvas; member
25 SkCanvas* canvas = rec->fCanvas; in draw_quad()
37 SkCanvas* canvas = rec->fCanvas; in draw_cubic()
83 fRec.fCanvas = canvas; in onDraw()
/external/skqp/modules/sksg/include/
DSkSGRenderNode.h55 fCanvas = that.fCanvas;
84 SkCanvas* fCanvas; variable
/external/skia/experimental/svg/model/
DSkSVGRenderContext.cpp296 , fCanvas(canvas) in SkSVGRenderContext()
300 : SkSVGRenderContext(other.fCanvas, in SkSVGRenderContext()
312 fCanvas->restoreToCount(fCanvasSaveCount); in ~SkSVGRenderContext()
390 fCanvas->saveLayer(nullptr, &opacityPaint); in applyOpacity()
396 if (fCanvas->getSaveCount() == fCanvasSaveCount) { in saveOnce()
397 fCanvas->save(); in saveOnce()
400 SkASSERT(fCanvas->getSaveCount() > fCanvasSaveCount); in saveOnce()
424 fCanvas->clipPath(clipPath, true); in applyClip()
DSkSVGRenderContext.h72 SkCanvas* canvas() const { return fCanvas; } in canvas()
100 SkCanvas* fCanvas; variable
/external/skqp/experimental/svg/model/
DSkSVGRenderContext.cpp296 , fCanvas(canvas) in SkSVGRenderContext()
300 : SkSVGRenderContext(other.fCanvas, in SkSVGRenderContext()
312 fCanvas->restoreToCount(fCanvasSaveCount); in ~SkSVGRenderContext()
390 fCanvas->saveLayer(nullptr, &opacityPaint); in applyOpacity()
396 if (fCanvas->getSaveCount() == fCanvasSaveCount) { in saveOnce()
397 fCanvas->save(); in saveOnce()
400 SkASSERT(fCanvas->getSaveCount() > fCanvasSaveCount); in saveOnce()
424 fCanvas->clipPath(clipPath, true); in applyClip()
DSkSVGRenderContext.h72 SkCanvas* canvas() const { return fCanvas; } in canvas()
100 SkCanvas* fCanvas; variable
/external/skqp/modules/sksg/src/
DSkSGRenderNode.cpp37 : fCanvas(canvas) in ScopedRenderContext()
43 fCanvas->restoreToCount(fRestoreCount); in ~ScopedRenderContext()
66 fCanvas->saveLayer(bounds, &layer_paint); in setIsolation()
/external/skia/modules/sksg/include/
DSkSGRenderNode.h63 fCanvas = that.fCanvas;
97 SkCanvas* fCanvas; variable
/external/skqp/src/pdf/
DSkPDFDocument.cpp229 SkASSERT(fCanvas.imageInfo().dimensions().isZero()); in onBeginPage()
260 reset_object(&fCanvas, fPageDevice); in onBeginPage()
261 fCanvas.scale(fRasterScale, fRasterScale); in onBeginPage()
263 return &fCanvas; in onBeginPage()
267 SkASSERT(!fCanvas.imageInfo().dimensions().isZero()); in onEndPage()
268 fCanvas.flush(); in onEndPage()
269 reset_object(&fCanvas); in onEndPage()
455 SkASSERT(fCanvas.imageInfo().dimensions().isZero()); in onClose()
/external/skia/src/pdf/
DSkPDFDocument.cpp229 SkASSERT(fCanvas.imageInfo().dimensions().isZero()); in onBeginPage()
260 reset_object(&fCanvas, fPageDevice); in onBeginPage()
261 fCanvas.scale(fRasterScale, fRasterScale); in onBeginPage()
263 return &fCanvas; in onBeginPage()
267 SkASSERT(!fCanvas.imageInfo().dimensions().isZero()); in onEndPage()
268 reset_object(&fCanvas); in onEndPage()
454 SkASSERT(fCanvas.imageInfo().dimensions().isZero()); in onClose()
/external/skqp/include/core/
DSkCanvas.h2633 explicit AutoValidateClip(SkCanvas* canvas) : fCanvas(canvas) { in AutoValidateClip()
2634 fCanvas->validateClip(); in AutoValidateClip()
2636 ~AutoValidateClip() { fCanvas->validateClip(); } in ~AutoValidateClip()
2639 const SkCanvas* fCanvas;
2672 SkAutoCanvasRestore(SkCanvas* canvas, bool doSave) : fCanvas(canvas), fSaveCount(0) { in SkAutoCanvasRestore()
2673 if (fCanvas) { in SkAutoCanvasRestore()
2685 if (fCanvas) { in ~SkAutoCanvasRestore()
2686 fCanvas->restoreToCount(fSaveCount); in ~SkAutoCanvasRestore()
2694 if (fCanvas) { in restore()
2695 fCanvas->restoreToCount(fSaveCount); in restore()
[all …]
/external/skia/include/core/
DSkCanvas.h2660 explicit AutoValidateClip(SkCanvas* canvas) : fCanvas(canvas) { in AutoValidateClip()
2661 fCanvas->validateClip(); in AutoValidateClip()
2663 ~AutoValidateClip() { fCanvas->validateClip(); } in ~AutoValidateClip()
2666 const SkCanvas* fCanvas;
2699 SkAutoCanvasRestore(SkCanvas* canvas, bool doSave) : fCanvas(canvas), fSaveCount(0) { in SkAutoCanvasRestore()
2700 if (fCanvas) { in SkAutoCanvasRestore()
2712 if (fCanvas) { in ~SkAutoCanvasRestore()
2713 fCanvas->restoreToCount(fSaveCount); in ~SkAutoCanvasRestore()
2721 if (fCanvas) { in restore()
2722 fCanvas->restoreToCount(fSaveCount); in restore()
[all …]

12