Home
last modified time | relevance | path

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

12

/external/skia/src/utils/
DSkDeferredCanvas.cpp51 , fCanvas(nullptr) // must be here for reset to work. in SkDeferredCanvas()
60 if (fCanvas) { in reset()
62 fCanvas = nullptr; in reset()
68 fCanvas = canvas; in reset()
114 fCanvas->save(); in emit()
118 fCanvas->clipRect(rec.fData.fBounds); in emit()
126 fCanvas->concat(mat); in emit()
255 fCanvas->saveLayer(rec); in getSaveLayerStrategy()
272 fCanvas->restore(); in willRestore()
282 fCanvas->concat(matrix); in didConcat()
[all …]
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 ()()
DSkNWayCanvas.cpp42 fCanvas = fList[fIndex++]; in next()
47 SkCanvas* operator->() { return fCanvas; } in operator ->()
52 SkCanvas* fCanvas; member in SkNWayCanvas::Iter
/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()
136 fCanvas.reset(new SkCanvas(device.get())); in SkSpecialSurface_Gpu()
137 fCanvas->clipRect(SkRect::Make(subset)); in SkSpecialSurface_Gpu()
139 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.h19 SkCanvas* fCanvas;
DSkOverdrawCanvas.cpp25 : fCanvas(canvas) in ProcessOneGlyphBounds()
33 fCanvas->onDrawRect(SkRect::MakeLTRB(left, top, right, bottom), SkPaint()); in operator ()()
37 SkOverdrawCanvas* fCanvas; member in __anon40fad5ab0111::ProcessOneGlyphBounds
DSkRecordDraw.cpp75 #define DRAW(T, call) template <> void Draw::draw(const T& r) { fCanvas->call; }
105 fCanvas->drawImageLattice(r.image.get(), lattice, r.dst, r.paint); in draw()
137 fCanvas->drawDrawable(fDrawables[r.index], r.matrix); in draw()
139 fCanvas->drawPicture(fDrawablePicts[r.index], r.matrix, nullptr); in draw()
/external/skia/src/xps/
DSkXPSDocument.cpp38 fCanvas.reset(new SkCanvas(&fDevice)); in onBeginPage()
39 return fCanvas.get(); in onBeginPage()
43 SkASSERT(fCanvas.get()); in onEndPage()
44 fCanvas->flush(); in onEndPage()
45 fCanvas.reset(nullptr); in onEndPage()
50 SkASSERT(!fCanvas.get()); in onClose()
DSkXPSDocument.h35 std::unique_ptr<SkCanvas> fCanvas; variable
/external/skia/samplecode/
DSampleBigGradient.cpp56 SkCanvas* fCanvas; member in GraphicsPort
59 GraphicsPort(SkCanvas* canvas) : fCanvas(canvas) {} in GraphicsPort()
62 void save() { fCanvas->save(); } in save()
64 fCanvas->saveLayerAlpha(&bounds, alpha); in saveLayer()
66 void restore() { fCanvas->restore(); } in restore()
68 void translate(float x, float y) { fCanvas->translate(x, y); } in translate()
69 void scale(float s) { fCanvas->scale(s, s); } in scale()
70 void clip(const SkRect& r) { fCanvas->clipRect(r); } in clip()
75 fCanvas->drawOval(r, p); in drawOval()
81 fCanvas->drawRect(r, p); in drawRect()
[all …]
/external/skia/debugger/QT/
DSkGLWidget.cpp43 fCanvas = nullptr; in initializeGL()
63 fCanvas = fGpuSurface->getCanvas(); in createRenderTarget()
72 if (!this->isHidden() && fCanvas) { in paintGL()
74 fDebugger->draw(fCanvas); in paintGL()
76 fCanvas->flush(); in paintGL()
DSkGLWidget.h51 SkCanvas* fCanvas; variable
/external/skia/experimental/SkV8Example/
DJsContext.h32 , fCanvas(NULL) in JsContext()
43 virtual SkCanvas* getCanvas() { return fCanvas; }; in getCanvas()
58 SkCanvas* fCanvas; variable
DJsContext.cpp65 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/skia/src/pdf/
DSkPDFDocument.cpp198 SkASSERT(!fCanvas.get()); // endPage() was called before this. in onBeginPage()
220 fCanvas.reset(new SkCanvas(fPageDevice.get())); in onBeginPage()
221 return fCanvas.get(); in onBeginPage()
225 SkASSERT(fCanvas.get()); in onEndPage()
226 fCanvas->flush(); in onEndPage()
227 fCanvas.reset(nullptr); in onEndPage()
250 fCanvas.reset(nullptr); in reset()
401 SkASSERT(!fCanvas.get()); in onClose()
DSkPDFDocument.h90 std::unique_ptr<SkCanvas> fCanvas; variable
/external/skia/experimental/svg/model/
DSkSVGRenderContext.cpp232 , fCanvas(canvas) in SkSVGRenderContext()
236 : SkSVGRenderContext(other.fCanvas, in SkSVGRenderContext()
242 fCanvas->restoreToCount(fCanvasSaveCount); in ~SkSVGRenderContext()
315 fCanvas->saveLayer(nullptr, &opacityPaint); in applyOpacity()
339 if (fCanvas->getSaveCount() == fCanvasSaveCount) { in applyClip()
340 fCanvas->save(); in applyClip()
343 fCanvas->clipPath(clipPath, true); in applyClip()
DSkSVGRenderContext.h71 SkCanvas* canvas() const { return fCanvas; } in canvas()
98 SkCanvas* fCanvas; variable
/external/skia/include/core/
DSkCanvas.h1540 explicit AutoValidateClip(SkCanvas* canvas) : fCanvas(canvas) { in AutoValidateClip()
1541 fCanvas->validateClip(); in AutoValidateClip()
1543 ~AutoValidateClip() { fCanvas->validateClip(); } in ~AutoValidateClip()
1546 const SkCanvas* fCanvas;
1564 SkAutoCanvasRestore(SkCanvas* canvas, bool doSave) : fCanvas(canvas), fSaveCount(0) { in SkAutoCanvasRestore()
1565 if (fCanvas) { in SkAutoCanvasRestore()
1573 if (fCanvas) { in ~SkAutoCanvasRestore()
1574 fCanvas->restoreToCount(fSaveCount); in ~SkAutoCanvasRestore()
1583 if (fCanvas) { in restore()
1584 fCanvas->restoreToCount(fSaveCount); in restore()
[all …]
DSkMultiPictureDraw.h60 SkCanvas* fCanvas; member
/external/skia/src/pipe/
DSkPipeCanvas.cpp977 std::unique_ptr<SkPipeCanvas> fCanvas; member in SkPipeSerializer::Impl
983 if (fImpl->fCanvas) { in ~SkPipeSerializer()
1034 SkASSERT(nullptr == fImpl->fCanvas); in beginWrite()
1035 fImpl->fCanvas.reset(new SkPipeCanvas(cull, &fImpl->fDeduper, stream)); in beginWrite()
1037 fImpl->fDeduper.setCanvas(fImpl->fCanvas.get()); in beginWrite()
1038 return fImpl->fCanvas.get(); in beginWrite()
1042 fImpl->fCanvas->restoreToCount(1); in endWrite()
1043 fImpl->fCanvas.reset(nullptr); in endWrite()
/external/skia/tools/
Dcolorspaceinfo.cpp407 ,fCanvas(fBitmap) in OutputCanvas()
428 SkCanvas* canvas() { return &fCanvas; } in canvas()
432 SkCanvas fCanvas; member in OutputCanvas

12