/frameworks/base/libs/hwui/pipeline/skia/ |
D | RenderNodeDrawable.h | 49 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 | ReorderBarrierDrawables.h | 45 virtual void onDraw(SkCanvas* canvas) override; 69 virtual void onDraw(SkCanvas* canvas) override; 72 void drawShadow(SkCanvas* canvas, RenderNodeDrawable* caster);
|
D | RenderNodeDrawable.cpp | 28 void RenderNodeDrawable::drawBackwardsProjectedNodes(SkCanvas* canvas, in drawBackwardsProjectedNodes() 63 static void clipOutline(const Outline& outline, SkCanvas* canvas, const SkRect* pendingClip) { in clipOutline() 95 void RenderNodeDrawable::onDraw(SkCanvas* canvas) { in onDraw() 103 void RenderNodeDrawable::forceDraw(SkCanvas* canvas) { in forceDraw() 158 AlphaFilterCanvas(SkCanvas* canvas, float alpha) : SkPaintFilterCanvas(canvas), mAlpha(alpha) {} in AlphaFilterCanvas() 179 void RenderNodeDrawable::drawContent(SkCanvas* canvas) const { in drawContent() 242 void RenderNodeDrawable::setViewProperties(const RenderProperties& properties, SkCanvas* canvas, in setViewProperties()
|
D | SkiaProfileRenderer.h | 26 SkiaProfileRenderer(SkCanvas* canvas) : mCanvas(canvas) {} in SkiaProfileRenderer() 37 SkCanvas* mCanvas;
|
D | LayerDrawable.h | 35 static bool DrawLayer(GrContext* context, SkCanvas* canvas, Layer* layer, 42 virtual void onDraw(SkCanvas* canvas) override;
|
D | GLFunctorDrawable.h | 38 GLFunctorDrawable(Functor* functor, GlFunctorLifecycleListener* listener, SkCanvas* canvas) in GLFunctorDrawable() 46 virtual void onDraw(SkCanvas* canvas) override;
|
D | LayerDrawable.cpp | 30 void LayerDrawable::onDraw(SkCanvas* canvas) { in onDraw() 37 bool LayerDrawable::DrawLayer(GrContext* context, SkCanvas* canvas, Layer* layer, in DrawLayer() 107 SkCanvas::kFast_SrcRectConstraint); in DrawLayer()
|
D | ReorderBarrierDrawables.cpp | 35 void StartReorderBarrierDrawable::onDraw(SkCanvas* canvas) { in onDraw() 73 void EndReorderBarrierDrawable::onDraw(SkCanvas* canvas) { in onDraw() 119 void EndReorderBarrierDrawable::drawShadow(SkCanvas* canvas, RenderNodeDrawable* caster) { in drawShadow()
|
D | SkiaRecordingCanvas.cpp | 133 virtual void onDraw(SkCanvas* canvas) override { in onDraw() 188 SkCanvas::kFast_SrcRectConstraint); in drawBitmap() 198 SkCanvas::Lattice lattice; in drawNinePatch() 210 SkAutoSTMalloc<25, SkCanvas::Lattice::RectType> flags(numFlags); in drawNinePatch()
|
D | GLFunctorDrawable.cpp | 52 static bool GetFboDetails(SkCanvas* canvas, GLuint* outFboID, SkISize* outFboSize) { in GetFboDetails() 79 void GLFunctorDrawable::onDraw(SkCanvas* canvas) { in onDraw() 164 SkCanvas* tmpCanvas = 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 | 43 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() 82 [](const SkCanvas& canvas) { in TEST() 93 [](const SkCanvas& canvas) { in TEST() 104 [](const SkCanvas& canvas) { in TEST() 126 [](const SkCanvas& canvas) { in TEST()
|
D | SkiaCanvasTests.cpp | 46 SkCanvas* skCanvas = recorder.beginRecording(200, 200, NULL, 0); in OPENGL_PIPELINE_TEST() 111 SkCanvas* skPicCanvas = recorder.beginRecording(1, 1, NULL, 0); in TEST() 134 std::unique_ptr<SkCanvas> newCanvas = SkCanvasStateUtils::MakeFromCanvasState(state); in TEST() 142 SkCanvas* skPicCanvas = recorder.beginRecording(1, 1, NULL, 0); in TEST()
|
D | SkiaDisplayListTests.cpp | 41 SkCanvas dummyCanvas; in TEST() 92 SkCanvas dummyCanvas; in TEST() 151 SkCanvas dummyCanvas; in RENDERTHREAD_SKIA_PIPELINE_TEST() 172 SkCanvas dummyCanvas; in TEST()
|
D | RenderNodeDrawableTests.cpp | 91 class ZReorderCanvas : public SkCanvas { 93 ZReorderCanvas(int width, int height) : SkCanvas(width, height) {} in ZReorderCanvas() 142 SkCanvas& canvas = *surface->getCanvas(); in TEST() 188 SkCanvas& canvas = *surface->getCanvas(); in TEST() 236 class ProjectionTestCanvas : public SkCanvas { in RENDERTHREAD_TEST() 238 ProjectionTestCanvas(int width, int height) : SkCanvas(width, height) {} in RENDERTHREAD_TEST() 354 class ProjectionTestCanvas : public SkCanvas { in RENDERTHREAD_SKIA_PIPELINE_TEST() 356 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 …]
|
D | SkiaPipelineTests.cpp | 248 SkCanvas* onNewCanvas() override { return new T(); } in onNewCanvas() 258 class DeferTestCanvas : public SkCanvas { in RENDERTHREAD_SKIA_PIPELINE_TEST() 260 DeferTestCanvas() : SkCanvas(800, 600) {} in RENDERTHREAD_SKIA_PIPELINE_TEST() 329 class ClippedTestCanvas : public SkCanvas { in RENDERTHREAD_SKIA_PIPELINE_TEST() 331 ClippedTestCanvas() : SkCanvas(CANVAS_WIDTH, CANVAS_HEIGHT) {} in RENDERTHREAD_SKIA_PIPELINE_TEST() 360 class ClipReplaceTestCanvas : public SkCanvas { in RENDERTHREAD_SKIA_PIPELINE_TEST() 362 ClipReplaceTestCanvas() : SkCanvas(CANVAS_WIDTH, CANVAS_HEIGHT) {} in RENDERTHREAD_SKIA_PIPELINE_TEST()
|
/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, in SetLatticeFlags() 57 SkCanvas::Lattice::RectType* flags, int numFlags, const Res_png_9patch& chunk, in SetLatticeFlags() 61 sk_bzero(flags, numFlags * sizeof(SkCanvas::Lattice::RectType)); in SetLatticeFlags() 88 *flags = SkCanvas::Lattice::kTransparent; in SetLatticeFlags() 91 *flags = SkCanvas::Lattice::kFixedColor; in SetLatticeFlags()
|
D | SkiaCanvas.cpp | 52 Canvas* Canvas::create_canvas(SkCanvas* skiaCanvas) { in create_canvas() 58 SkiaCanvas::SkiaCanvas(SkCanvas* canvas) : mCanvas(canvas) {} in SkiaCanvas() 63 std::unique_ptr<SkCanvas>(new SkCanvas(bitmap, SkCanvas::ColorBehavior::kLegacy)); in SkiaCanvas() 84 void SkiaCanvas::reset(SkCanvas* skiaCanvas) { in reset() 99 std::unique_ptr<SkCanvas> newCanvas = in setBitmap() 100 std::unique_ptr<SkCanvas>(new SkCanvas(bitmap, SkCanvas::ColorBehavior::kLegacy)); in setBitmap() 101 std::unique_ptr<SkCanvas> newCanvasWrapper; in setBitmap() 187 static inline SkCanvas::SaveLayerFlags layerFlags(SaveFlags::Flags flags) { in layerFlags() 188 SkCanvas::SaveLayerFlags layerFlags = 0; in layerFlags() 191 layerFlags |= SkCanvas::kDontClipToLayer_Legacy_SaveLayerFlag; in layerFlags() [all …]
|
D | SkiaCanvas.h | 41 explicit SkiaCanvas(SkCanvas* canvas); 45 virtual SkCanvas* asSkCanvas() override { return mCanvas; } in asSkCanvas() 151 void reset(SkCanvas* skiaCanvas); 175 void drawPoints(const float* points, int count, const SkPaint& paint, SkCanvas::PointMode mode); 182 std::unique_ptr<SkCanvas> mCanvasWrapper; // might own a wrapper on the canvas 183 std::unique_ptr<SkCanvas> mCanvasOwned; // might own a canvas we allocated 184 SkCanvas* mCanvas; // we do NOT own this canvas, it must survive us
|
D | VectorDrawable.cpp | 150 void FullPath::draw(SkCanvas* outCanvas, bool useStagingData) { in draw() 265 void ClipPath::draw(SkCanvas* outCanvas, bool useStagingData) { in draw() 274 void Group::draw(SkCanvas* outCanvas, bool useStagingData) { in draw() 557 void Tree::draw(SkCanvas* canvas, const SkRect& bounds) { in draw() 562 bounds, getPaint(), SkCanvas::kFast_SrcRectConstraint); in draw() 574 bounds, getPaint(), SkCanvas::kFast_SrcRectConstraint); in draw() 587 SkCanvas outCanvas(outCache); in updateBitmapCache()
|
/frameworks/base/libs/hwui/utils/ |
D | TestWindowContext.h | 22 class SkCanvas; variable 42 SkCanvas* prepareToDraw();
|
/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); 114 virtual void onDraw(SkCanvas* canvas) override;
|
/frameworks/base/core/jni/android/graphics/ |
D | Picture.cpp | 45 SkCanvas* canvas = mRecorder->beginRecording(SkIntToScalar(width), SkIntToScalar(height)); in beginRecording() 107 SkCanvas* canvas = reRecorder.beginRecording(mWidth, mHeight, NULL, 0); in makePartialCopy()
|