/frameworks/base/libs/hwui/pipeline/skia/ |
D | RenderNodeDrawable.h | 51 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;
|
D | RenderNodeDrawable.cpp | 30 RenderNodeDrawable::RenderNodeDrawable(RenderNode* node, SkCanvas* canvas, bool composeLayer, in RenderNodeDrawable() 43 void RenderNodeDrawable::drawBackwardsProjectedNodes(SkCanvas* canvas, in drawBackwardsProjectedNodes() 78 static void clipOutline(const Outline& outline, SkCanvas* canvas, const SkRect* pendingClip) { in clipOutline() 110 void RenderNodeDrawable::onDraw(SkCanvas* canvas) { in onDraw() 120 explicit MarkDraw(SkCanvas& canvas, RenderNode& node) : mCanvas(canvas), mNode(node) { in MarkDraw() 132 SkCanvas& mCanvas; 136 void RenderNodeDrawable::forceDraw(SkCanvas* canvas) { in forceDraw() 187 AlphaFilterCanvas(SkCanvas* canvas, float alpha) : SkPaintFilterCanvas(canvas), mAlpha(alpha) {} in AlphaFilterCanvas() 208 void RenderNodeDrawable::drawContent(SkCanvas* canvas) const { in drawContent() 269 void RenderNodeDrawable::setViewProperties(const RenderProperties& properties, SkCanvas* canvas, in setViewProperties()
|
D | ReorderBarrierDrawables.h | 46 virtual void onDraw(SkCanvas* canvas) override; 70 virtual void onDraw(SkCanvas* canvas) override; 73 void drawShadow(SkCanvas* canvas, RenderNodeDrawable* caster);
|
D | SkiaProfileRenderer.h | 26 explicit SkiaProfileRenderer(SkCanvas* canvas) : mCanvas(canvas) {} in SkiaProfileRenderer() 37 SkCanvas* mCanvas;
|
D | LayerDrawable.h | 35 static bool DrawLayer(GrContext* context, SkCanvas* canvas, Layer* layer, const SkRect* srcRect, 42 virtual void onDraw(SkCanvas* canvas) override;
|
D | FunctorDrawable.h | 39 FunctorDrawable(Functor* functor, GlFunctorLifecycleListener* listener, SkCanvas* canvas) in FunctorDrawable() 43 FunctorDrawable(int functor, SkCanvas* canvas) in FunctorDrawable()
|
D | LayerDrawable.cpp | 29 void LayerDrawable::onDraw(SkCanvas* canvas) { in onDraw() 53 bool LayerDrawable::DrawLayer(GrContext* context, SkCanvas* canvas, Layer* layer, in DrawLayer() 132 SkCanvas::kFast_SrcRectConstraint); in DrawLayer()
|
D | GLFunctorDrawable.cpp | 50 static bool GetFboDetails(SkCanvas* canvas, GLuint* outFboID, SkISize* outFboSize) { in GetFboDetails() 75 void GLFunctorDrawable::onDraw(SkCanvas* canvas) { in onDraw() 163 SkCanvas* tmpCanvas = canvas; in onDraw()
|
D | ReorderBarrierDrawables.cpp | 32 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()
|
D | VkFunctorDrawable.cpp | 92 void VkFunctorDrawable::onDraw(SkCanvas* canvas) { in onDraw() 105 SkCanvas* gpuCanvas = SkAndroidFrameworkUtils::getBaseWrappedCanvas(canvas); in onDraw()
|
D | AnimatedDrawables.h | 42 virtual void onDraw(SkCanvas* canvas) override { in onDraw() 71 virtual void onDraw(SkCanvas* canvas) override { in onDraw()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | SkiaRenderPropertiesTests.cpp | 42 std::function<void(const SkCanvas&)> opValidateCallback) { in testProperty() 47 explicit PropertyTestCanvas(std::function<void(const SkCanvas&)> callback) in testProperty() 54 SkCanvas::onClipRRect(rrect, op, style); in testProperty() 56 std::function<void(const SkCanvas&)> mCallback; in testProperty() 81 [](const SkCanvas& canvas) { in TEST() 92 [](const SkCanvas& canvas) { in TEST() 103 [](const SkCanvas& canvas) { in TEST() 125 [](const SkCanvas& canvas) { in TEST()
|
D | SkiaCanvasTests.cpp | 75 SkCanvas* skPicCanvas = recorder.beginRecording(1, 1, NULL, 0); in TEST() 98 std::unique_ptr<SkCanvas> newCanvas = SkCanvasStateUtils::MakeFromCanvasState(state); in TEST() 106 SkCanvas* skPicCanvas = recorder.beginRecording(1, 1, NULL, 0); in TEST()
|
D | SkiaPipelineTests.cpp | 251 SkCanvas* onNewCanvas() override { return new T(); } in onNewCanvas() 261 class DeferTestCanvas : public SkCanvas { in RENDERTHREAD_SKIA_PIPELINE_TEST() 263 DeferTestCanvas() : SkCanvas(800, 600) {} in RENDERTHREAD_SKIA_PIPELINE_TEST() 333 class ClippedTestCanvas : public SkCanvas { in RENDERTHREAD_SKIA_PIPELINE_TEST() 335 ClippedTestCanvas() : SkCanvas(CANVAS_WIDTH, CANVAS_HEIGHT) {} in RENDERTHREAD_SKIA_PIPELINE_TEST() 367 class ClippedTestCanvas : public SkCanvas { in RENDERTHREAD_SKIA_PIPELINE_TEST() 369 ClippedTestCanvas() : SkCanvas(CANVAS_WIDTH, CANVAS_HEIGHT) {} in RENDERTHREAD_SKIA_PIPELINE_TEST() 400 class ClipReplaceTestCanvas : public SkCanvas { in RENDERTHREAD_SKIA_PIPELINE_TEST() 402 ClipReplaceTestCanvas() : SkCanvas(CANVAS_WIDTH, CANVAS_HEIGHT) {} in RENDERTHREAD_SKIA_PIPELINE_TEST()
|
D | RenderNodeDrawableTests.cpp | 92 class ZReorderCanvas : public SkCanvas { 94 ZReorderCanvas(int width, int height) : SkCanvas(width, height) {} in ZReorderCanvas() 143 SkCanvas& canvas = *surface->getCanvas(); in TEST() 189 SkCanvas& canvas = *surface->getCanvas(); in TEST() 237 class ProjectionTestCanvas : public SkCanvas { in RENDERTHREAD_TEST() 239 ProjectionTestCanvas(int width, int height) : SkCanvas(width, height) {} in RENDERTHREAD_TEST() 355 class ProjectionTestCanvas : public SkCanvas { in RENDERTHREAD_SKIA_PIPELINE_TEST() 357 ProjectionTestCanvas(int width, int height) : SkCanvas(width, height) {} in RENDERTHREAD_SKIA_PIPELINE_TEST() 432 class ProjectionTestCanvas : public SkCanvas { in RENDERTHREAD_SKIA_PIPELINE_TEST() 435 : SkCanvas(CANVAS_WIDTH, CANVAS_HEIGHT), mDrawCounter(drawCounter) {} in RENDERTHREAD_SKIA_PIPELINE_TEST() [all …]
|
D | FatalTestCanvas.h | 24 class TestCanvasBase : public SkCanvas { 26 TestCanvasBase(int width, int height) : SkCanvas(width, height) {} in TestCanvasBase()
|
/frameworks/base/libs/hwui/ |
D | NinePatchUtils.h | 22 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()
|
D | RecordingCanvas.cpp | 84 void draw(SkCanvas* c, const SkMatrix&) const { c->flush(); } in draw() 89 void draw(SkCanvas* c, const SkMatrix&) const { c->save(); } in draw() 93 void draw(SkCanvas* c, const SkMatrix&) const { c->restore(); } in draw() 98 const SkImage* clipMask, const SkMatrix* clipMatrix, SkCanvas::SaveLayerFlags flags) { in SaveLayer() 115 SkCanvas::SaveLayerFlags flags; 116 void draw(SkCanvas* c, const SkMatrix&) const { in draw() 127 void draw(SkCanvas* c, const SkMatrix&) const { in draw() 136 void draw(SkCanvas* c, const SkMatrix&) const { c->concat(matrix); } in draw() 142 void draw(SkCanvas* c, const SkMatrix& original) const { in draw() 150 void draw(SkCanvas* c, const SkMatrix&) const { c->translate(dx, dy); } in draw() [all …]
|
D | SkiaCanvas.cpp | 56 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() 166 layerFlags |= SkCanvas::kDontClipToLayer_Legacy_SaveLayerFlag; in layerFlags() 175 const SkCanvas::SaveLayerRec rec(&bounds, paint, layerFlags(flags)); in saveLayer() 216 void apply(SkCanvas* canvas) const { in apply() [all …]
|
D | RecordingCanvas.h | 60 void draw(SkCanvas* canvas) const; 77 const SkMatrix*, SkCanvas::SaveLayerFlags); 110 SkCanvas::SrcRectConstraint, BitmapPalette palette); 111 void drawImageLattice(sk_sp<const SkImage>, const SkCanvas::Lattice&, const SkRect&, 116 void drawPoints(SkCanvas::PointMode, size_t, const SkPoint[], const SkPaint&);
|
D | SkiaCanvas.h | 43 explicit SkiaCanvas(SkCanvas* canvas); 47 virtual SkCanvas* asSkCanvas() override { return mCanvas; } in asSkCanvas() 159 void reset(SkCanvas* skiaCanvas); 223 void drawPoints(const float* points, int count, const SkPaint& paint, SkCanvas::PointMode mode); 237 std::unique_ptr<SkCanvas> mCanvasOwned; // might own a canvas we allocated 238 SkCanvas* mCanvas; // we do NOT own this canvas, it must survive us
|
/frameworks/base/core/jni/android/graphics/pdf/ |
D | PdfDocument.cpp | 64 SkCanvas* startPage(int width, int height, in startPage() 74 SkCanvas* canvas = page->mPictureRecorder->beginRecording( in startPage() 95 SkCanvas* canvas = document->beginPage(page->mWidth, page->mHeight, in write() 128 SkCanvas* canvas = document->startPage(pageWidth, pageHeight, in nativeStartPage()
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | ReadbackFromHardwareBitmap.cpp | 32 SkCanvas canvas(skBitmap); in createHardwareBitmap() 53 SkCanvas skCanvas(canvasBitmap); in createContent()
|
/frameworks/base/libs/hwui/hwui/ |
D | AnimatedImageDrawable.h | 77 int drawStaging(SkCanvas* canvas); 112 virtual void onDraw(SkCanvas* canvas) override;
|
/frameworks/base/core/jni/android/graphics/ |
D | Picture.cpp | 51 SkCanvas* canvas = mRecorder->beginRecording(SkIntToScalar(width), SkIntToScalar(height)); in beginRecording() 113 SkCanvas* canvas = reRecorder.beginRecording(mWidth, mHeight, NULL, 0); in makePartialCopy()
|