Home
last modified time | relevance | path

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

123

/frameworks/base/libs/hwui/pipeline/skia/
DRenderNodeDrawable.h51 explicit RenderNodeDrawable(RenderNode* node, SkCanvas* canvas, bool composeLayer = true,
61 void forceDraw(SkCanvas* canvas) const;
100 virtual void onDraw(SkCanvas* canvas) override;
115 void drawBackwardsProjectedNodes(SkCanvas* canvas, const SkiaDisplayList& displayList,
121 static void setViewProperties(const RenderProperties& properties, SkCanvas* canvas,
145 void drawContent(SkCanvas* canvas) const;
DRenderNodeDrawable.cpp29 RenderNodeDrawable::RenderNodeDrawable(RenderNode* node, SkCanvas* canvas, bool composeLayer, in RenderNodeDrawable()
42 void RenderNodeDrawable::drawBackwardsProjectedNodes(SkCanvas* canvas, in drawBackwardsProjectedNodes()
77 static void clipOutline(const Outline& outline, SkCanvas* canvas, const SkRect* pendingClip) { in clipOutline()
109 void RenderNodeDrawable::onDraw(SkCanvas* canvas) { in onDraw()
119 explicit MarkDraw(SkCanvas& canvas, RenderNode& node) : mCanvas(canvas), mNode(node) { in MarkDraw()
131 SkCanvas& mCanvas;
135 void RenderNodeDrawable::forceDraw(SkCanvas* canvas) const { in forceDraw()
186 AlphaFilterCanvas(SkCanvas* canvas, float alpha) : SkPaintFilterCanvas(canvas), mAlpha(alpha) {} in AlphaFilterCanvas()
203 void RenderNodeDrawable::drawContent(SkCanvas* canvas) const { in drawContent()
271 void RenderNodeDrawable::setViewProperties(const RenderProperties& properties, SkCanvas* canvas, in setViewProperties()
DReorderBarrierDrawables.h46 virtual void onDraw(SkCanvas* canvas) override;
70 virtual void onDraw(SkCanvas* canvas) override;
73 void drawShadow(SkCanvas* canvas, RenderNodeDrawable* caster);
DSkiaProfileRenderer.h26 explicit SkiaProfileRenderer(SkCanvas* canvas) : mCanvas(canvas) {} in SkiaProfileRenderer()
37 SkCanvas* mCanvas;
DLayerDrawable.h35 static bool DrawLayer(GrContext* context, SkCanvas* canvas, Layer* layer, const SkRect* srcRect,
42 virtual void onDraw(SkCanvas* canvas) override;
DFunctorDrawable.h39 FunctorDrawable(Functor* functor, GlFunctorLifecycleListener* listener, SkCanvas* canvas) in FunctorDrawable()
43 FunctorDrawable(int functor, SkCanvas* canvas) in FunctorDrawable()
DLayerDrawable.cpp29 void LayerDrawable::onDraw(SkCanvas* canvas) { in onDraw()
70 bool LayerDrawable::DrawLayer(GrContext* context, SkCanvas* canvas, Layer* layer, in DrawLayer()
145 SkCanvas::kFast_SrcRectConstraint); in DrawLayer()
DReorderBarrierDrawables.cpp32 void StartReorderBarrierDrawable::onDraw(SkCanvas* canvas) { in onDraw()
75 void EndReorderBarrierDrawable::onDraw(SkCanvas* canvas) { in onDraw()
126 void EndReorderBarrierDrawable::drawShadow(SkCanvas* canvas, RenderNodeDrawable* caster) { in drawShadow()
DGLFunctorDrawable.cpp51 static void GetFboDetails(SkCanvas* canvas, GLuint* outFboID, SkISize* outFboSize) { in GetFboDetails()
67 void GLFunctorDrawable::onDraw(SkCanvas* canvas) { in onDraw()
155 SkCanvas* tmpCanvas = canvas; in onDraw()
DVkFunctorDrawable.cpp93 void VkFunctorDrawable::onDraw(SkCanvas* canvas) { in onDraw()
106 SkCanvas* gpuCanvas = SkAndroidFrameworkUtils::getBaseWrappedCanvas(canvas); in onDraw()
DAnimatedDrawables.h42 virtual void onDraw(SkCanvas* canvas) override { in onDraw()
71 virtual void onDraw(SkCanvas* canvas) override { in onDraw()
/frameworks/base/libs/hwui/tests/unit/
DSkiaRenderPropertiesTests.cpp43 std::function<void(const SkCanvas&)> opValidateCallback) { in testProperty()
48 explicit PropertyTestCanvas(std::function<void(const SkCanvas&)> callback) in testProperty()
55 SkCanvas::onClipRRect(rrect, op, style); in testProperty()
57 std::function<void(const SkCanvas&)> mCallback; in testProperty()
82 [](const SkCanvas& canvas) { in TEST()
93 [](const SkCanvas& canvas) { in TEST()
104 [](const SkCanvas& canvas) { in TEST()
126 [](const SkCanvas& canvas) { in TEST()
DSkiaCanvasTests.cpp76 SkCanvas* skPicCanvas = recorder.beginRecording(1, 1, NULL, 0); in TEST()
99 std::unique_ptr<SkCanvas> newCanvas = SkCanvasStateUtils::MakeFromCanvasState(state); in TEST()
107 SkCanvas* skPicCanvas = recorder.beginRecording(1, 1, NULL, 0); in TEST()
DSkiaPipelineTests.cpp220 SkCanvas* onNewCanvas() override { return new T(); } in onNewCanvas()
230 class DeferTestCanvas : public SkCanvas { in RENDERTHREAD_SKIA_PIPELINE_TEST()
232 DeferTestCanvas() : SkCanvas(800, 600) {} in RENDERTHREAD_SKIA_PIPELINE_TEST()
302 class ClippedTestCanvas : public SkCanvas { in RENDERTHREAD_SKIA_PIPELINE_TEST()
304 ClippedTestCanvas() : SkCanvas(CANVAS_WIDTH, CANVAS_HEIGHT) {} in RENDERTHREAD_SKIA_PIPELINE_TEST()
336 class ClippedTestCanvas : public SkCanvas { in RENDERTHREAD_SKIA_PIPELINE_TEST()
338 ClippedTestCanvas() : SkCanvas(CANVAS_WIDTH, CANVAS_HEIGHT) {} in RENDERTHREAD_SKIA_PIPELINE_TEST()
369 class ClipReplaceTestCanvas : public SkCanvas { in RENDERTHREAD_SKIA_PIPELINE_TEST()
371 ClipReplaceTestCanvas() : SkCanvas(CANVAS_WIDTH, CANVAS_HEIGHT) {} in RENDERTHREAD_SKIA_PIPELINE_TEST()
DRenderNodeDrawableTests.cpp93 class ZReorderCanvas : public SkCanvas {
95 ZReorderCanvas(int width, int height) : SkCanvas(width, height) {} in ZReorderCanvas()
144 SkCanvas& canvas = *surface->getCanvas(); in TEST()
190 SkCanvas& canvas = *surface->getCanvas(); in TEST()
238 class ProjectionTestCanvas : public SkCanvas { in RENDERTHREAD_TEST()
240 ProjectionTestCanvas(int width, int height) : SkCanvas(width, height) {} in RENDERTHREAD_TEST()
356 class ProjectionTestCanvas : public SkCanvas { in RENDERTHREAD_SKIA_PIPELINE_TEST()
358 ProjectionTestCanvas(int width, int height) : SkCanvas(width, height) {} in RENDERTHREAD_SKIA_PIPELINE_TEST()
433 class ProjectionTestCanvas : public SkCanvas { in RENDERTHREAD_SKIA_PIPELINE_TEST()
436 : SkCanvas(CANVAS_WIDTH, CANVAS_HEIGHT), mDrawCounter(drawCounter) {} in RENDERTHREAD_SKIA_PIPELINE_TEST()
[all …]
DFatalTestCanvas.h24 class TestCanvasBase : public SkCanvas {
26 TestCanvasBase(int width, int height) : SkCanvas(width, height) {} in TestCanvasBase()
/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.cpp85 void draw(SkCanvas* c, const SkMatrix&) const { c->flush(); } in draw()
90 void draw(SkCanvas* c, const SkMatrix&) const { c->save(); } in draw()
94 void draw(SkCanvas* c, const SkMatrix&) const { c->restore(); } in draw()
99 const SkImage* clipMask, const SkMatrix* clipMatrix, SkCanvas::SaveLayerFlags flags) { in SaveLayer()
116 SkCanvas::SaveLayerFlags flags;
117 void draw(SkCanvas* c, const SkMatrix&) const { in draw()
128 void draw(SkCanvas* c, const SkMatrix&) const { in draw()
137 void draw(SkCanvas* c, const SkMatrix&) const { c->experimental_concat44(colMajor); } in draw()
143 void draw(SkCanvas* c, const SkMatrix&) const { c->concat(matrix); } in draw()
149 void draw(SkCanvas* c, const SkMatrix& original) const { in draw()
[all …]
DSkiaCanvas.cpp56 Canvas* Canvas::create_canvas(SkCanvas* skiaCanvas) { in create_canvas()
62 SkiaCanvas::SkiaCanvas(SkCanvas* canvas) : mCanvas(canvas) {} in SkiaCanvas()
65 mCanvasOwned = std::unique_ptr<SkCanvas>(new SkCanvas(bitmap)); in SkiaCanvas()
71 void SkiaCanvas::reset(SkCanvas* skiaCanvas) { in reset()
85 mCanvasOwned.reset(new SkCanvas(bitmap)); in setBitmap()
162 static inline SkCanvas::SaveLayerFlags layerFlags(SaveFlags::Flags flags) { in layerFlags()
163 SkCanvas::SaveLayerFlags layerFlags = 0; in layerFlags()
175 const SkCanvas::SaveLayerRec rec(&bounds, paint, layerFlags(flags)); in saveLayer()
216 void apply(SkCanvas* canvas) const { in apply()
419 SkCanvas* canvas = mCanvas; in captureCanvasState()
[all …]
DSkiaCanvas.h47 explicit SkiaCanvas(SkCanvas* canvas);
161 SkCanvas* asSkCanvas() { return mCanvas; } in asSkCanvas()
162 void reset(SkCanvas* skiaCanvas);
255 void drawPoints(const float* points, int count, const Paint& paint, SkCanvas::PointMode mode);
259 std::unique_ptr<SkCanvas> mCanvasOwned; // might own a canvas we allocated
260 SkCanvas* mCanvas; // we do NOT own this canvas, it must survive us
DRecordingCanvas.h63 void draw(SkCanvas* canvas) const;
81 const SkMatrix*, SkCanvas::SaveLayerFlags);
116 SkCanvas::SrcRectConstraint, BitmapPalette palette);
117 void drawImageLattice(sk_sp<const SkImage>, const SkCanvas::Lattice&, const SkRect&,
122 void drawPoints(SkCanvas::PointMode, size_t, const SkPoint[], const SkPaint&);
/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/scenes/
DReadbackFromHardwareBitmap.cpp32 SkCanvas canvas(skBitmap); in createHardwareBitmap()
53 SkCanvas skCanvas(canvasBitmap); in createContent()
/frameworks/base/libs/hwui/hwui/
DAnimatedImageDrawable.h77 int drawStaging(SkCanvas* canvas);
112 virtual void onDraw(SkCanvas* canvas) override;
/frameworks/base/libs/hwui/jni/
DPicture.cpp51 SkCanvas* canvas = mRecorder->beginRecording(SkIntToScalar(width), SkIntToScalar(height)); in beginRecording()
114 SkCanvas* canvas = reRecorder.beginRecording(mWidth, mHeight, NULL, 0); in makePartialCopy()

123