Home
last modified time | relevance | path

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

12

/third_party/skia/src/core/
DSkSpecialSurface.cpp21 , fCanvas(nullptr) { in SkSpecialSurface_Base()
25 void reset() { fCanvas.reset(); } in reset()
28 SkCanvas* onGetCanvas() { return fCanvas.get(); } in onGetCanvas()
33 std::unique_ptr<SkCanvas> fCanvas; // initialized by derived classes in ctors member in SkSpecialSurface_Base
76 fCanvas = std::make_unique<SkCanvas>(fBitmap, this->props()); in SkSpecialSurface_Raster()
77 fCanvas->clipRect(SkRect::Make(subset)); in SkSpecialSurface_Raster()
79 fCanvas->clear(SK_ColorRED); // catch any imageFilter sloppiness in SkSpecialSurface_Raster()
130 fCanvas = std::make_unique<SkCanvas>(std::move(device)); in SkSpecialSurface_Gpu()
131 fCanvas->clipRect(SkRect::Make(subset)); in SkSpecialSurface_Gpu()
133 fCanvas->clear(SK_ColorRED); // catch any imageFilter sloppiness in SkSpecialSurface_Gpu()
[all …]
DSkRecordDraw.h53 , fCanvas(canvas)
75 SkCanvas* fCanvas; variable
DSkRecordDraw.cpp79 #define DRAW(T, call) template <> void Draw::draw(const T& r) { fCanvas->call; }
90 SkCanvasPriv::SaveBehind(fCanvas, r.subset); in draw()
94 SkCanvasPriv::DrawBehind(fCanvas, r.paint); in draw()
112 SkCanvasPriv::ResetClip(fCanvas); in draw()
128 fCanvas->drawImageLattice(r.image.get(), lattice, r.dst, r.filter, r.paint); in draw()
160 fCanvas->drawDrawable(fDrawables[r.index], r.matrix); in draw()
162 fCanvas->drawPicture(fDrawablePicts[r.index], r.matrix, nullptr); in draw()
/third_party/flutter/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
/third_party/flutter/skia/gm/
Drasterhandleallocator.cpp18 SkCanvas* fCanvas; member in GraphicsPort
21 GraphicsPort(SkCanvas* canvas) : fCanvas(canvas) {} in GraphicsPort()
24 void save() { fCanvas->save(); } in save()
26 fCanvas->saveLayerAlpha(&bounds, alpha); in saveLayer()
28 void restore() { fCanvas->restore(); } in restore()
30 void translate(float x, float y) { fCanvas->translate(x, y); } in translate()
31 void scale(float s) { fCanvas->scale(s, s); } in scale()
32 void clip(const SkRect& r) { fCanvas->clipRect(r); } in clip()
37 fCanvas->drawOval(r, p); in drawOval()
43 fCanvas->drawRect(r, p); in drawRect()
[all …]
/third_party/skia/gm/
Drasterhandleallocator.cpp17 SkCanvas* fCanvas; member in GraphicsPort
20 GraphicsPort(SkCanvas* canvas) : fCanvas(canvas) {} in GraphicsPort()
23 void save() { fCanvas->save(); } in save()
25 fCanvas->saveLayerAlpha(&bounds, alpha); in saveLayer()
27 void restore() { fCanvas->restore(); } in restore()
29 void translate(float x, float y) { fCanvas->translate(x, y); } in translate()
30 void scale(float s) { fCanvas->scale(s, s); } in scale()
31 void clip(const SkRect& r) { fCanvas->clipRect(r); } in clip()
36 fCanvas->drawOval(r, p); in drawOval()
42 fCanvas->drawRect(r, p); in drawRect()
[all …]
/third_party/flutter/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()
/third_party/skia/src/xps/
DSkXPSDocument.cpp25 std::unique_ptr<SkCanvas> fCanvas; member
60 fCanvas.reset(new SkCanvas(sk_ref_sp(&fDevice))); in onBeginPage()
61 return fCanvas.get(); in onBeginPage()
65 SkASSERT(fCanvas.get()); in onEndPage()
66 fCanvas.reset(nullptr); in onEndPage()
71 SkASSERT(!fCanvas.get()); in onClose()
/third_party/skia/modules/svg/src/
DSkSVGRenderContext.cpp158 , fCanvas(canvas) in SkSVGRenderContext()
163 : SkSVGRenderContext(other.fCanvas, in SkSVGRenderContext()
181 : SkSVGRenderContext(other.fCanvas, in SkSVGRenderContext()
190 fCanvas->restoreToCount(fCanvasSaveCount); in ~SkSVGRenderContext()
291 fCanvas->saveLayer(nullptr, &opacityPaint); in applyOpacity()
311 fCanvas->saveLayer(nullptr, &filterPaint); in applyFilter()
317 if (fCanvas->getSaveCount() == fCanvasSaveCount) { in saveOnce()
318 fCanvas->save(); in saveOnce()
321 SkASSERT(fCanvas->getSaveCount() > fCanvasSaveCount); in saveOnce()
345 fCanvas->clipPath(clipPath, true); in applyClip()
[all …]
/third_party/flutter/skia/experimental/xform/
DXContext.cpp80 CanvasXContext(SkCanvas* canvas) : fCanvas(canvas) { in CanvasXContext()
149 SkAutoCanvasRestore acr(fCanvas, false); in onDrawRect()
151 fCanvas->save(); in onDrawRect()
152 fCanvas->concat(x->ctm()); in onDrawRect()
153 fCanvas->clipRegion(peek_rasterclip(x->clip()).bwRgn()); in onDrawRect()
155 fCanvas->drawRect(r, p); in onDrawRect()
162 SkCanvas* fCanvas; // bare pointer member in CanvasXContext
/third_party/skia/experimental/xform/
DXContext.cpp80 CanvasXContext(SkCanvas* canvas) : fCanvas(canvas) { in CanvasXContext()
149 SkAutoCanvasRestore acr(fCanvas, false); in onDrawRect()
151 fCanvas->save(); in onDrawRect()
152 fCanvas->concat(x->ctm()); in onDrawRect()
153 fCanvas->clipRegion(peek_rasterclip(x->clip()).bwRgn()); in onDrawRect()
155 fCanvas->drawRect(r, p); in onDrawRect()
162 SkCanvas* fCanvas; // bare pointer member in CanvasXContext
/third_party/flutter/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()
/third_party/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()
/third_party/flutter/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
/third_party/skia/modules/sksg/src/
DSkSGRenderNode.cpp115 : fCanvas(canvas) in ScopedRenderContext()
125 fCanvas->drawPaint(mask_paint); in ~ScopedRenderContext()
127 fCanvas->restoreToCount(fRestoreCount); in ~ScopedRenderContext()
191 fCanvas->saveLayer(bounds, &layer_paint); in setIsolation()
217 fCanvas->saveLayer(bounds, &layer_paint); in setFilterIsolation()
/third_party/flutter/skia/modules/sksg/src/
DSkSGRenderNode.cpp100 : fCanvas(canvas) in ScopedRenderContext()
106 fCanvas->restoreToCount(fRestoreCount); in ~ScopedRenderContext()
169 fCanvas->saveLayer(bounds, &layer_paint); in setIsolation()
189 fCanvas->saveLayer(bounds, &layer_paint); in setFilterIsolation()
/third_party/flutter/skia/modules/sksg/include/
DSkSGRenderNode.h76 fCanvas = that.fCanvas;
114 SkCanvas* fCanvas; variable
/third_party/skia/modules/sksg/include/
DSkSGRenderNode.h75 fCanvas = that.fCanvas;
115 SkCanvas* fCanvas; variable
/third_party/flutter/skia/include/core/
DSkCanvas.h2704 explicit AutoValidateClip(SkCanvas* canvas) : fCanvas(canvas) { in AutoValidateClip()
2705 fCanvas->validateClip(); in AutoValidateClip()
2707 ~AutoValidateClip() { fCanvas->validateClip(); } in ~AutoValidateClip()
2710 const SkCanvas* fCanvas;
2743 SkAutoCanvasRestore(SkCanvas* canvas, bool doSave) : fCanvas(canvas), fSaveCount(0) { in SkAutoCanvasRestore()
2744 if (fCanvas) { in SkAutoCanvasRestore()
2756 if (fCanvas) { in ~SkAutoCanvasRestore()
2757 fCanvas->restoreToCount(fSaveCount); in ~SkAutoCanvasRestore()
2765 if (fCanvas) { in restore()
2766 fCanvas->restoreToCount(fSaveCount); in restore()
[all …]
/third_party/flutter/skia/src/pdf/
DSkPDFDocument.cpp228 SkASSERT(fCanvas.imageInfo().dimensions().isZero()); in onBeginPage()
259 reset_object(&fCanvas, fPageDevice); in onBeginPage()
260 fCanvas.scale(fRasterScale, fRasterScale); in onBeginPage()
262 return &fCanvas; in onBeginPage()
328 SkASSERT(!fCanvas.imageInfo().dimensions().isZero()); in onEndPage()
329 reset_object(&fCanvas); in onEndPage()
521 SkASSERT(fCanvas.imageInfo().dimensions().isZero()); in onClose()
/third_party/skia/src/pdf/
DSkPDFDocument.cpp250 SkASSERT(fCanvas.imageInfo().dimensions().isZero()); in onBeginPage()
281 reset_object(&fCanvas, fPageDevice); in onBeginPage()
282 fCanvas.scale(fRasterScale, fRasterScale); in onBeginPage()
284 return &fCanvas; in onBeginPage()
354 SkASSERT(!fCanvas.imageInfo().dimensions().isZero()); in onEndPage()
355 reset_object(&fCanvas); in onEndPage()
551 SkASSERT(fCanvas.imageInfo().dimensions().isZero()); in onClose()
/third_party/skia/experimental/skrive/src/
DComponent.cpp64 : fCanvas(canvas) in ScopedTransformContext()
81 fCanvas->restoreToCount(this->fRestoreCount); in ~ScopedTransformContext()

12