Home
last modified time | relevance | path

Searched refs:SkCanvas (Results 1 – 25 of 84) sorted by relevance

1234

/frameworks/base/libs/hwui/canvas/
DCanvasOps.h55 using draw_t = decltype(std::integral_constant<void (T::*)(SkCanvas*) const, &T::draw>{});
70 void draw(SkCanvas* canvas) const { canvas->save(); }
76 SkCanvas::SaveLayerRec saveLayerRec;
77 void draw(SkCanvas* canvas) const { canvas->saveLayer(saveLayerRec); }
84 void draw(SkCanvas* canvas) const { SkAndroidFrameworkUtils::SaveBehind(canvas, &bounds); }
90 void draw(SkCanvas* canvas) const { canvas->restore(); }
108 void draw(SkCanvas* canvas) const { canvas->clipRect(rect, clipOp); }
116 void draw(SkCanvas* canvas) const { canvas->clipPath(path, op, true); }
134 void draw(SkCanvas* canvas) const {
148 void draw(SkCanvas* canvas) const {
[all …]
DCanvasOpRasterizer.h33 void rasterizeCanvasBuffer(const CanvasOpBuffer& source, SkCanvas* destination);
37 explicit ImmediateModeRasterizer(std::unique_ptr<SkCanvas>&& canvas) { in ImmediateModeRasterizer()
42 explicit ImmediateModeRasterizer(std::shared_ptr<SkCanvas> canvas) { in ImmediateModeRasterizer()
48 mCanvas = &(mOwnership.emplace<SkCanvas>(bitmap.getSkBitmap())); in ImmediateModeRasterizer()
59 SkCanvas* mCanvas;
61 std::variant<SkCanvas, std::shared_ptr<SkCanvas>, std::unique_ptr<SkCanvas>> mOwnership;
/frameworks/base/libs/hwui/pipeline/skia/
DRenderNodeDrawable.h52 explicit RenderNodeDrawable(RenderNode* node, SkCanvas* canvas, bool composeLayer = true,
62 void forceDraw(SkCanvas* canvas) const;
101 virtual void onDraw(SkCanvas* canvas) override;
116 void drawBackwardsProjectedNodes(SkCanvas* canvas, const SkiaDisplayList& displayList,
122 static void setViewProperties(const RenderProperties& properties, SkCanvas* canvas,
146 void drawContent(SkCanvas* canvas) const;
DBackdropFilterDrawable.h37 BackdropFilterDrawable(RenderNode* renderNode, SkCanvas* canvas) in BackdropFilterDrawable()
55 bool prepareToDraw(SkCanvas* canvas, const RenderProperties& properties, int backdropImageWidth,
59 void onDraw(SkCanvas* canvas) override;
DReorderBarrierDrawables.h46 virtual void onDraw(SkCanvas* canvas) override;
70 virtual void onDraw(SkCanvas* canvas) override;
73 void drawShadow(SkCanvas* canvas, RenderNodeDrawable* caster);
DRenderNodeDrawable.cpp41 RenderNodeDrawable::RenderNodeDrawable(RenderNode* node, SkCanvas* canvas, bool composeLayer, in RenderNodeDrawable()
54 void RenderNodeDrawable::drawBackwardsProjectedNodes(SkCanvas* canvas, in drawBackwardsProjectedNodes()
89 static void clipOutline(const Outline& outline, SkCanvas* canvas, const SkRect* pendingClip) { in clipOutline()
125 void RenderNodeDrawable::onDraw(SkCanvas* canvas) { in onDraw()
135 explicit MarkDraw(SkCanvas& canvas, RenderNode& node) : mCanvas(canvas), mNode(node) { in MarkDraw()
147 SkCanvas& mCanvas;
151 void RenderNodeDrawable::forceDraw(SkCanvas* canvas) const { in forceDraw()
202 AlphaFilterCanvas(SkCanvas* canvas, float alpha) : SkPaintFilterCanvas(canvas), mAlpha(alpha) {} in AlphaFilterCanvas()
220 void RenderNodeDrawable::drawContent(SkCanvas* canvas) const { in drawContent()
318 SkCanvas::kStrict_SrcRectConstraint); in drawContent()
[all …]
DBackdropFilterDrawable.cpp34 bool BackdropFilterDrawable::prepareToDraw(SkCanvas* canvas, const RenderProperties& properties, in prepareToDraw()
63 void BackdropFilterDrawable::onDraw(SkCanvas* canvas) { in onDraw()
91 SkCanvas::kStrict_SrcRectConstraint); in onDraw()
DLayerDrawable.h36 SkCanvas* canvas,
46 virtual void onDraw(SkCanvas* canvas) override;
DTransformCanvas.h31 TransformCanvas(SkCanvas* target, SkBlendMode blendmode) : in TransformCanvas()
43 SkCanvas* mWrappedCanvas;
DSkiaProfileRenderer.h26 explicit SkiaProfileRenderer(SkCanvas* canvas, uint32_t width, uint32_t height) in SkiaProfileRenderer()
38 SkCanvas* mCanvas;
DLayerDrawable.cpp38 void LayerDrawable::onDraw(SkCanvas* canvas) { in onDraw()
108 SkCanvas* canvas, in DrawLayer()
169 auto constraint = SkCanvas::kFast_SrcRectConstraint; in DrawLayer()
171 constraint = SkCanvas::kStrict_SrcRectConstraint; in DrawLayer()
DStretchMask.cpp31 SkCanvas* canvas) { in draw()
49 SkCanvas* maskCanvas = mMaskSurface->getCanvas(); in draw()
/frameworks/base/libs/hwui/tests/unit/
DSkiaRenderPropertiesTests.cpp44 std::function<void(const SkCanvas&)> opValidateCallback) { in testProperty()
49 explicit PropertyTestCanvas(std::function<void(const SkCanvas&)> callback) in testProperty()
56 SkCanvas::onClipRRect(rrect, op, style); in testProperty()
58 std::function<void(const SkCanvas&)> mCallback; in testProperty()
83 [](const SkCanvas& canvas) { in TEST()
94 [](const SkCanvas& canvas) { in TEST()
105 [](const SkCanvas& canvas) { in TEST()
127 [](const SkCanvas& canvas) { in TEST()
DSkiaCanvasTests.cpp85 SkCanvas* skPicCanvas = recorder.beginRecording(1, 1); in TEST()
108 std::unique_ptr<SkCanvas> newCanvas = SkCanvasStateUtils::MakeFromCanvasState(state); in TEST()
116 SkCanvas* skPicCanvas = recorder.beginRecording(1, 1); in TEST()
/frameworks/base/libs/hwui/
DNinePatchUtils.h22 static inline void SetLatticeDivs(SkCanvas::Lattice* lattice, const Res_png_9patch& chunk, in SetLatticeDivs()
39 static inline int NumDistinctRects(const SkCanvas::Lattice& lattice) { in NumDistinctRects()
56 static inline void SetLatticeFlags(SkCanvas::Lattice* lattice, SkCanvas::Lattice::RectType* flags, in SetLatticeFlags()
60 sk_bzero(flags, numFlags * sizeof(SkCanvas::Lattice::RectType)); in SetLatticeFlags()
87 *flags = SkCanvas::Lattice::kTransparent; in SetLatticeFlags()
90 *flags = SkCanvas::Lattice::kFixedColor; in SetLatticeFlags()
DRecordingCanvas.cpp114 void draw(SkCanvas* c, const SkMatrix&) const { c->save(); } in draw()
118 void draw(SkCanvas* c, const SkMatrix&) const { c->restore(); } in draw()
123 SkCanvas::SaveLayerFlags flags) { in SaveLayer()
136 SkCanvas::SaveLayerFlags flags;
137 void draw(SkCanvas* c, const SkMatrix&) const { in draw()
147 void draw(SkCanvas* c, const SkMatrix&) const { in draw()
156 void draw(SkCanvas* c, const SkMatrix&) const { c->concat(matrix); } in draw()
162 void draw(SkCanvas* c, const SkMatrix& original) const { in draw()
170 void draw(SkCanvas* c, const SkMatrix&) const { c->scale(sx, sy); } in draw()
176 void draw(SkCanvas* c, const SkMatrix&) const { c->translate(dx, dy); } in draw()
[all …]
DSkiaCanvas.h52 explicit SkiaCanvas(SkCanvas* canvas);
170 SkCanvas* asSkCanvas() { return mCanvas; } in asSkCanvas()
171 void reset(SkCanvas* skiaCanvas);
226 void drawPoints(const float* points, int count, const Paint& paint, SkCanvas::PointMode mode);
232 std::unique_ptr<SkCanvas> mCanvasOwned; // Might own a canvas we allocated.
233 SkCanvas* mCanvas; // We do NOT own this canvas, it must survive us
DSkiaCanvas.cpp76 void apply(SkCanvas* canvas) const { in apply()
118 Canvas* Canvas::create_canvas(SkCanvas* skiaCanvas) { in create_canvas()
124 SkiaCanvas::SkiaCanvas(SkCanvas* canvas) : mCanvas(canvas) {} in SkiaCanvas()
127 mCanvasOwned = std::unique_ptr<SkCanvas>(new SkCanvas(bitmap)); in SkiaCanvas()
133 void SkiaCanvas::reset(SkCanvas* skiaCanvas) { in reset()
147 mCanvasOwned.reset(new SkCanvas(bitmap)); in setBitmap()
226 const SkCanvas::SaveLayerRec rec(&bounds, paint); in saveLayer()
460 SkCanvas* canvas = mCanvas; in captureCanvasState()
501 SkCanvas::PointMode mode) { in drawPoints()
519 this->drawPoints(points, count, paint, SkCanvas::kPoints_PointMode); in drawPoints()
[all …]
/frameworks/native/libs/renderengine/skia/debug/
DSkiaCapture.h51 SkCanvas* tryCapture(SkSurface* surface);
64 SkCanvas* tryOffscreenCapture(SkSurface* surface, OffscreenState* state);
80 SkCanvas* mCurrentPageCanvas = nullptr;
/frameworks/native/services/surfaceflinger/
DRefreshRateOverlay.h32 class SkCanvas; variable
71 static void drawNumber(int number, int left, SkColor, SkCanvas&);
72 static void drawDash(int left, SkCanvas&);
DHdrSdrRatioOverlay.h24 class SkCanvas; variable
47 static void drawNumber(float number, int left, SkColor, SkCanvas&);
/frameworks/base/libs/hwui/effects/
DGainmapRenderer.h30 void DrawGainmapBitmap(SkCanvas* c, const sk_sp<const SkImage>& image, const SkRect& src,
32 SkCanvas::SrcRectConstraint constraint,
/frameworks/base/libs/hwui/jni/pdf/
DPdfDocument.cpp62 SkCanvas* startPage(int width, int height, in startPage()
72 SkCanvas* canvas = page->mPictureRecorder->beginRecording( in startPage()
93 SkCanvas* canvas = document->beginPage(page->mWidth, page->mHeight, in write()
126 SkCanvas* canvas = document->startPage(pageWidth, pageHeight, in nativeStartPage()
/frameworks/base/libs/hwui/tests/common/
DCallCountingCanvas.h107 void onDrawPoints(SkCanvas::PointMode mode, size_t count, const SkPoint pts[], in onDrawPoints()
114 const SkPaint*, SkCanvas::SrcRectConstraint) override { in onDrawImageRect2()
119 void onDrawImageLattice2(const SkImage* image, const SkCanvas::Lattice& lattice, in onDrawImageLattice2()
/frameworks/base/libs/hwui/tests/common/scenes/
DReadbackFromHardwareBitmap.cpp38 SkCanvas canvas(skBitmap); in createHardwareBitmap()
59 SkCanvas skCanvas(canvasBitmap); in createContent()

1234