Home
last modified time | relevance | path

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

123

/frameworks/base/libs/hwui/pipeline/skia/
DRenderNodeDrawable.h49 explicit RenderNodeDrawable(RenderNode* node, SkCanvas* canvas, bool composeLayer = true,
61 void forceDraw(SkCanvas* canvas);
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;
DReorderBarrierDrawables.h47 virtual void onDraw(SkCanvas* canvas) override;
72 virtual void onDraw(SkCanvas* canvas) override;
74 void drawShadow(SkCanvas* canvas, RenderNodeDrawable* caster);
DSkiaProfileRenderer.h26 SkiaProfileRenderer(SkCanvas* canvas) in SkiaProfileRenderer()
38 SkCanvas* mCanvas;
DLayerDrawable.h36 static bool DrawLayer(GrContext* context, SkCanvas* canvas, Layer* layer);
41 virtual void onDraw(SkCanvas* canvas) override;
DRenderNodeDrawable.cpp27 void RenderNodeDrawable::drawBackwardsProjectedNodes(SkCanvas* canvas, const SkiaDisplayList& displ… in drawBackwardsProjectedNodes()
61 static void clipOutline(const Outline& outline, SkCanvas* canvas, const SkRect* pendingClip) { in clipOutline()
93 void RenderNodeDrawable::onDraw(SkCanvas* canvas) { in onDraw()
101 void RenderNodeDrawable::forceDraw(SkCanvas* canvas) { in forceDraw()
154 void RenderNodeDrawable::drawContent(SkCanvas* canvas) const { in drawContent()
219 void RenderNodeDrawable::setViewProperties(const RenderProperties& properties, SkCanvas* canvas, in setViewProperties()
DGLFunctorDrawable.h38 GLFunctorDrawable(Functor* functor, GlFunctorLifecycleListener* listener, SkCanvas* canvas) in GLFunctorDrawable()
49 virtual void onDraw(SkCanvas* canvas) override;
DLayerDrawable.cpp29 void LayerDrawable::onDraw(SkCanvas* canvas) { in onDraw()
33 bool LayerDrawable::DrawLayer(GrContext* context, SkCanvas* canvas, Layer* layer) { in DrawLayer()
DReorderBarrierDrawables.cpp39 void StartReorderBarrierDrawable::onDraw(SkCanvas* canvas) { in onDraw()
78 void EndReorderBarrierDrawable::onDraw(SkCanvas* canvas) { in onDraw()
120 void EndReorderBarrierDrawable::drawShadow(SkCanvas* canvas, RenderNodeDrawable* caster) { in drawShadow()
DAnimatedDrawables.h46 virtual void onDraw(SkCanvas* canvas) override { in onDraw()
77 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 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()
80 }, [](const SkCanvas& canvas) { in TEST()
89 }, [](const SkCanvas& canvas) { in TEST()
98 }, [](const SkCanvas& canvas) { in TEST()
118 }, [](const SkCanvas& canvas) { in TEST()
DSkiaCanvasTests.cpp47 SkCanvas* skCanvas = recorder.beginRecording(200, 200, NULL, 0); in OPENGL_PIPELINE_TEST()
115 SkCanvas skCanvas(skBitmap); in TEST()
125 SkCanvas* skPicCanvas = recorder.beginRecording(1, 1, NULL, 0); in TEST()
152 std::unique_ptr<SkCanvas> newCanvas = SkCanvasStateUtils::MakeFromCanvasState(state); in TEST()
160 SkCanvas* skPicCanvas = recorder.beginRecording(1, 1, NULL, 0); in TEST()
DSkiaDisplayListTests.cpp41 SkCanvas dummyCanvas; in TEST()
92 SkCanvas dummyCanvas; in TEST()
151 SkCanvas dummyCanvas; in RENDERTHREAD_SKIA_PIPELINE_TEST()
170 SkCanvas dummyCanvas; in TEST()
DSkiaPipelineTests.cpp205 SkCanvas* onNewCanvas() override { in onNewCanvas()
220 class DeferTestCanvas : public SkCanvas { in RENDERTHREAD_SKIA_PIPELINE_TEST()
222 DeferTestCanvas() : SkCanvas(800, 600) {} in RENDERTHREAD_SKIA_PIPELINE_TEST()
288 class ClippedTestCanvas : public SkCanvas { in RENDERTHREAD_SKIA_PIPELINE_TEST()
290 ClippedTestCanvas() : SkCanvas(CANVAS_WIDTH, CANVAS_HEIGHT) { in RENDERTHREAD_SKIA_PIPELINE_TEST()
319 class ClipReplaceTestCanvas : public SkCanvas { in RENDERTHREAD_SKIA_PIPELINE_TEST()
321 ClipReplaceTestCanvas() : SkCanvas(CANVAS_WIDTH, CANVAS_HEIGHT) { in RENDERTHREAD_SKIA_PIPELINE_TEST()
DRenderNodeDrawableTests.cpp88 class ZReorderCanvas : public SkCanvas {
90 ZReorderCanvas(int width, int height) : SkCanvas(width, height) {} in ZReorderCanvas()
140 SkCanvas& canvas = *surface->getCanvas(); in TEST()
187 SkCanvas& canvas = *surface->getCanvas(); in TEST()
235 class ProjectionTestCanvas : public SkCanvas { in RENDERTHREAD_TEST()
237 ProjectionTestCanvas(int width, int height) : SkCanvas(width, height) {} in RENDERTHREAD_TEST()
352 class ProjectionTestCanvas : public SkCanvas { in RENDERTHREAD_TEST()
355 : SkCanvas(CANVAS_WIDTH, CANVAS_HEIGHT) in RENDERTHREAD_TEST()
383 void onDraw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*) override { in RENDERTHREAD_TEST() argument
388 SkCanvas* onNewCanvas() override { in RENDERTHREAD_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::Flags* flags, in SetLatticeFlags()
59 sk_bzero(flags, numFlags * sizeof(SkCanvas::Lattice::Flags)); in SetLatticeFlags()
82 *flags = SkCanvas::Lattice::kTransparent_Flags; in SetLatticeFlags()
DSkiaCanvas.cpp49 Canvas* Canvas::create_canvas(SkCanvas* skiaCanvas, XformToSRGB xformToSRGB) { in create_canvas()
55 SkiaCanvas::SkiaCanvas(SkCanvas* canvas, XformToSRGB xformToSRGB) in SkiaCanvas()
64 std::unique_ptr<SkCanvas>(new SkCanvas(bitmap, SkCanvas::ColorBehavior::kLegacy)); in SkiaCanvas()
72 void SkiaCanvas::reset(SkCanvas* skiaCanvas) { in reset()
87 std::unique_ptr<SkCanvas> newCanvas = in setBitmap()
88 std::unique_ptr<SkCanvas>(new SkCanvas(bitmap, SkCanvas::ColorBehavior::kLegacy)); in setBitmap()
89 std::unique_ptr<SkCanvas> newCanvasWrapper = SkCreateColorSpaceXformCanvas(newCanvas.get(), in setBitmap()
171 static inline SkCanvas::SaveLayerFlags layerFlags(SaveFlags::Flags flags) { in layerFlags()
172 SkCanvas::SaveLayerFlags layerFlags = 0; in layerFlags()
180 layerFlags |= SkCanvas::kDontClipToLayer_Legacy_SaveLayerFlag; in layerFlags()
[all …]
DSkiaCanvas.h45 explicit SkiaCanvas(SkCanvas* canvas, XformToSRGB xformToSRGB);
49 virtual SkCanvas* asSkCanvas() override { in asSkCanvas()
126 virtual void drawVertices(SkCanvas::VertexMode vertexMode, int vertexCount,
159 void reset(SkCanvas* skiaCanvas);
186 SkCanvas::PointMode mode);
190 std::unique_ptr<SkCanvas> mCanvasWrapper; // might own a wrapper on the canvas
191 std::unique_ptr<SkCanvas> mCanvasOwned; // might own a canvas we allocated
192 SkCanvas* mCanvas; // we do NOT own this canvas, it must survive us
DSkiaCanvasProxy.cpp180 onDrawImageRect(image, &srcR, dstR, paint, SkCanvas::kStrict_SrcRectConstraint); in onDrawImageLattice()
209 static inline SaveFlags::Flags saveFlags(SkCanvas::SaveLayerFlags layerFlags) { in saveFlags()
212 if (!(layerFlags & SkCanvas::kDontClipToLayer_Legacy_SaveLayerFlag)) { in saveFlags()
216 if (!(layerFlags & SkCanvas::kIsOpaque_SaveLayerFlag)) { in saveFlags()
223 SkCanvas::SaveLayerStrategy SkiaCanvasProxy::getSaveLayerStrategy(const SaveLayerRec& saveLayerRec)… in getSaveLayerStrategy()
232 return SkCanvas::kNoLayer_SaveLayerStrategy; in getSaveLayerStrategy()
468 this->drawVertices(SkCanvas::kTriangles_VertexMode, data.fVertexCount, data.fPoints, in onDrawPatch()
DSkiaCanvasProxy.h40 class ANDROID_API SkiaCanvasProxy : public SkCanvas {
107 typedef SkCanvas INHERITED;
/frameworks/base/core/jni/android/graphics/pdf/
DPdfDocument.cpp65 SkCanvas* startPage(int width, int height, in startPage()
75 SkCanvas* canvas = page->mPictureRecorder->beginRecording( in startPage()
96 SkCanvas* canvas = document->beginPage(page->mWidth, page->mHeight, in write()
98 std::unique_ptr<SkCanvas> toSRGBCanvas = in write()
132 SkCanvas* canvas = document->startPage(pageWidth, pageHeight, in nativeStartPage()
/frameworks/base/libs/hwui/utils/
DTestWindowContext.h22 class SkCanvas; variable
44 SkCanvas* prepareToDraw();
/frameworks/base/libs/hwui/tests/common/scenes/
DReadbackFromHardwareBitmap.cpp34 SkCanvas canvas(skBitmap); in createHardwareBitmap()
55 SkCanvas skCanvas(canvasBitmap); in createContent()
DListViewAnimation.cpp36 SkCanvas canvas(skBitmap); in createRandomCharIcon()
63 SkCanvas canvas(skBitmap); in createBoxBitmap()
/frameworks/base/core/jni/android/graphics/
DPicture.cpp46 SkCanvas* canvas = mRecorder->beginRecording(SkIntToScalar(width), SkIntToScalar(height)); in beginRecording()
113 SkCanvas* canvas = reRecorder.beginRecording(mWidth, mHeight, NULL, 0); in makePartialCopy()

123