/frameworks/base/libs/hwui/tests/unit/ |
D | FatalTestCanvas.h | 28 void onDrawAnnotation(const SkRect&, const char key[], SkData* value) { in onDrawAnnotation() argument 51 const SkRect* cullRect, const SkPaint& paint) { in onDrawTextRSXform() 64 void onDrawRect(const SkRect&, const SkPaint&) { in onDrawRect() argument 70 void onDrawOval(const SkRect&, const SkPaint&) { in onDrawOval() argument 73 void onDrawArc(const SkRect&, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, in onDrawArc() argument 86 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int count, in onDrawAtlas() argument 87 SkBlendMode, const SkRect* cull, const SkPaint*) { in onDrawAtlas() 96 void onDrawImageRect(const SkImage*, const SkRect*, const SkRect&, const SkPaint*, in onDrawImageRect() argument 100 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& dst, const SkPaint*) { in onDrawImageNine() 103 void onDrawImageLattice(const SkImage*, const Lattice& lattice, const SkRect& dst, in onDrawImageLattice() [all …]
|
D | DamageAccumulatorTests.cpp | 34 SkRect curDirty; in TEST() 40 ASSERT_EQ(SkRect(), curDirty); in TEST() 44 ASSERT_EQ(SkRect::MakeLTRB(50, 50, 100, 100), curDirty); in TEST() 47 ASSERT_EQ(SkRect::MakeLTRB(50, 50, 100, 100), curDirty); in TEST() 55 SkRect curDirty; in TEST() 60 ASSERT_EQ(SkRect::MakeLTRB(50, 50, 100, 100), curDirty); in TEST() 63 ASSERT_EQ(SkRect::MakeLTRB(75, 75, 125, 125), curDirty); in TEST() 69 SkRect curDirty; in TEST() 81 ASSERT_EQ(SkRect::MakeLTRB(50, 50, 200, 125), curDirty); in TEST() 99 SkRect dirty; in TEST() [all …]
|
D | SkiaPipelineTests.cpp | 45 SkRect dirty = SkRect::MakeLargest(); in RENDERTHREAD_SKIA_PIPELINE_TEST() 68 SkRect dirty = SkRect::MakeLargest(); in RENDERTHREAD_SKIA_PIPELINE_TEST() 92 SkRect dirty = SkRect::MakeXYWH(0, 1, 2, 1); in RENDERTHREAD_SKIA_PIPELINE_TEST() 131 SkRect dirty = SkRect::MakeLargest(); in RENDERTHREAD_SKIA_PIPELINE_TEST() 133 layerUpdateQueue.enqueueLayerWithDamage(blueNode.get(), SkRect::MakeWH(2, 1)); in RENDERTHREAD_SKIA_PIPELINE_TEST() 159 SkRect dirty = SkRect::MakeXYWH(0, 0, 1, 1); in RENDERTHREAD_SKIA_PIPELINE_TEST() 233 void onDrawRect(const SkRect& rect, const SkPaint& paint) override { in RENDERTHREAD_SKIA_PIPELINE_TEST() 238 EXPECT_EQ(SkRect::MakeLTRB(600, 100, 700, 500), TestUtils::getClipBounds(this)); in RENDERTHREAD_SKIA_PIPELINE_TEST() 243 EXPECT_EQ(SkRect::MakeLTRB(100, 400, 600, 500), TestUtils::getClipBounds(this)); in RENDERTHREAD_SKIA_PIPELINE_TEST() 248 EXPECT_EQ(SkRect::MakeLTRB(100, 100, 700, 500), TestUtils::getClipBounds(this)); in RENDERTHREAD_SKIA_PIPELINE_TEST() [all …]
|
D | RenderNodeDrawableTests.cpp | 91 void onDrawRect(const SkRect& rect, const SkPaint& paint) override { in onDrawRect() 171 static SkRect getRecorderClipBounds(const SkiaRecordingCanvas& recorder) { in getRecorderClipBounds() 172 SkRect clipBounds; in getRecorderClipBounds() 194 ASSERT_EQ(SkRect::MakeLTRB(0, 0, 400, 800), getRecorderClipBounds(recorder)); in TEST() 199 ASSERT_EQ(SkRect::MakeLTRB(0, 0, 400, 400), getRecorderClipBounds(recorder)); in TEST() 203 ASSERT_EQ(SkRect::MakeLTRB(50, 50, 350, 350), getRecorderClipBounds(recorder)); in TEST() 209 ASSERT_EQ(SkRect::MakeLTRB(0, 0, 400, 800), getRecorderClipBounds(recorder)); in TEST() 238 void onDrawRect(const SkRect& rect, const SkPaint& paint) override { in RENDERTHREAD_TEST() 243 EXPECT_EQ(SkRect::MakeWH(100, 100), rect); in RENDERTHREAD_TEST() 246 EXPECT_EQ(SkRect::MakeLTRB(0, 0, 100, 100), TestUtils::getClipBounds(this)); in RENDERTHREAD_TEST() [all …]
|
D | SkiaRenderPropertiesTests.cpp | 50 void onDrawRect(const SkRect& rect, const SkPaint& paint) override { in testProperty() 81 EXPECT_EQ(SkRect::MakeLTRB(10, 20, 100, 100), TestUtils::getClipBounds(&canvas)) in TEST() 90 EXPECT_EQ(SkRect::MakeLTRB(25, 25, 75, 75), TestUtils::getClipBounds(&canvas)); in TEST() 99 EXPECT_EQ(SkRect::MakeLTRB(10, 20, 30, 40), TestUtils::getClipBounds(&canvas)); in TEST()
|
D | SkiaBehaviorTests.cpp | 95 p0.addRect(SkRect::MakeXYWH(-5.0f, 0.0f, 1080.0f, 242.0f)); in TEST() 96 p1.addRect(SkRect::MakeXYWH(0.0f, 0.0f, 1080.0f, 242.0f)); in TEST() 98 SkRect resultRect; in TEST() 100 ASSERT_EQ(SkRect::MakeXYWH(0.0f, 0.0f, 1075.0f, 242.0f), resultRect); in TEST()
|
D | FrameBuilderTests.cpp | 137 FrameBuilder frameBuilder(SkRect::MakeWH(100, 200), 100, 200, in RENDERTHREAD_OPENGL_PIPELINE_TEST() 165 FrameBuilder frameBuilder(SkRect::MakeWH(100, 200), 100, 200, in RENDERTHREAD_OPENGL_PIPELINE_TEST() 194 FrameBuilder frameBuilder(SkRect::MakeWH(200, 200), 200, 200, in RENDERTHREAD_OPENGL_PIPELINE_TEST() 211 FrameBuilder frameBuilder(SkRect::MakeWH(200, 200), 200, 200, in RENDERTHREAD_OPENGL_PIPELINE_TEST() 247 FrameBuilder frameBuilder(SkRect::MakeWH(200, 200), 200, 200, in RENDERTHREAD_OPENGL_PIPELINE_TEST() 273 FrameBuilder frameBuilder(SkRect::MakeWH(100, 100), 100, 100, in RENDERTHREAD_OPENGL_PIPELINE_TEST() 344 FrameBuilder frameBuilder(SkRect::MakeWH(800, 600), 800, 600, in RENDERTHREAD_OPENGL_PIPELINE_TEST() 366 FrameBuilder frameBuilder(SkRect::MakeWH(800, 600), 800, 600, in RENDERTHREAD_OPENGL_PIPELINE_TEST() 409 FrameBuilder frameBuilder(SkRect::MakeWH(200, 200), 200, 200, in RENDERTHREAD_OPENGL_PIPELINE_TEST() 437 FrameBuilder frameBuilder(SkRect::MakeLTRB(10, 10, 190, 190), 200, 200, in RENDERTHREAD_OPENGL_PIPELINE_TEST() [all …]
|
/frameworks/base/libs/hwui/ |
D | SkiaCanvasProxy.h | 59 virtual void onDrawOval(const SkRect&, const SkPaint&) override; 60 virtual void onDrawRect(const SkRect&, const SkPaint&) override; 63 virtual void onDrawArc(const SkRect&, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, 67 virtual void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, 70 const SkRect& dst, const SkPaint*) override; 72 virtual void onDrawImageRect(const SkImage*, const SkRect*, const SkRect&, const SkPaint*, 74 virtual void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& dst, 76 virtual void onDrawImageLattice(const SkImage*, const Lattice& lattice, const SkRect& dst, 91 const SkRect* cullRect, const SkPaint& paint); 99 virtual void onClipRect(const SkRect&, SkClipOp, ClipEdgeStyle) override;
|
D | SkiaCanvasProxy.cpp | 86 void SkiaCanvasProxy::onDrawOval(const SkRect& rect, const SkPaint& paint) { in onDrawOval() 90 void SkiaCanvasProxy::onDrawRect(const SkRect& rect, const SkPaint& paint) { in onDrawRect() 96 const SkRect& rect = roundRect.rect(); in onDrawRRect() 107 void SkiaCanvasProxy::onDrawArc(const SkRect& rect, SkScalar startAngle, SkScalar sweepAngle, in onDrawArc() 136 void SkiaCanvasProxy::onDrawBitmapRect(const SkBitmap& skBitmap, const SkRect* srcPtr, in onDrawBitmapRect() 137 const SkRect& dst, const SkPaint* paint, SrcRectConstraint) { in onDrawBitmapRect() 138 SkRect src = (srcPtr) ? *srcPtr : SkRect::MakeWH(skBitmap.width(), skBitmap.height()); in onDrawBitmapRect() 146 const SkRect& dst, const SkPaint*) { in onDrawBitmapNine() 160 void SkiaCanvasProxy::onDrawImageRect(const SkImage* image, const SkRect* srcPtr, const SkRect& dst, in onDrawImageRect() 166 SkRect src = (srcPtr) ? *srcPtr : SkRect::MakeWH(image->width(), image->height()); in onDrawImageRect() [all …]
|
D | DamageAccumulator.cpp | 42 SkRect pendingDirty; 121 static inline void mapRect(const Matrix4* matrix, const SkRect& in, SkRect* out) { in mapRect() 139 static inline void mapRect(const RenderProperties& props, const SkRect& in, SkRect* out) { in mapRect() 142 SkRect temp(in); in mapRect() 181 SkRect* rect = &frame->pendingDirty; in applyTransforms() 231 void DamageAccumulator::peekAtDirty(SkRect* dest) const { in peekAtDirty() 235 void DamageAccumulator::finish(SkRect* totalDirty) { in finish()
|
D | SkiaCanvas.cpp | 188 const SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); in saveLayer() 206 Clip(const SkRect& rect, SkClipOp op, const SkMatrix& m) in Clip() 354 bool SkiaCanvas::getClipBounds(SkRect* outRect) const { in getClipBounds() 370 SkRect r = SkRect::Make(ibounds); in getClipBounds() 377 SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); in quickRejectRect() 386 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom); in clipRect() 497 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom); in drawRoundRect() 508 SkRect oval = SkRect::MakeLTRB(left, top, right, bottom); in drawOval() 515 SkRect arc = SkRect::MakeLTRB(left, top, right, bottom); in drawArc() 545 SkRect srcRect = SkRect::MakeLTRB(srcLeft, srcTop, srcRight, srcBottom); in drawBitmap() [all …]
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | VectorDrawableAtlas.h | 37 SkRect rect; 114 CacheEntry(const SkRect& newVDrect, const SkRect& newRect, in CacheEntry() 123 SkRect VDrect; 128 SkRect rect; 161 std::multimap<size_t, SkRect> mFreeRects;
|
D | DumpOpsCanvas.h | 39 void onClipRect(const SkRect& rect, SkClipOp, ClipEdgeStyle) override { in onClipRect() 63 void onDrawRect(const SkRect&, const SkPaint&) override { in onDrawRect() argument 71 void onDrawOval(const SkRect&, const SkPaint&) override { in onDrawOval() argument 75 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) override { in onDrawArc() argument 105 void onDrawTextRSXform(const void*, size_t, const SkRSXform[], const SkRect*, in onDrawTextRSXform() argument 118 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& dst, in onDrawImageNine() 123 void onDrawImageRect(const SkImage*, const SkRect*, const SkRect&, const SkPaint*, in onDrawImageRect() argument 128 void onDrawImageLattice(const SkImage*, const Lattice& lattice, const SkRect& dst, in onDrawImageLattice()
|
D | SkiaProfileRenderer.cpp | 24 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom); in drawRect() 30 SkRect rect = SkRect::MakeLTRB(rects[index + 0], rects[index + 1], rects[index + 2], in drawRects()
|
D | AnimatedDrawables.h | 43 virtual SkRect onGetBounds() override { in onGetBounds() 44 return SkRect::MakeLTRB(mLeft->value, mTop->value, mRight->value, mBottom->value); in onGetBounds() 47 SkRect rect = SkRect::MakeLTRB(mLeft->value, mTop->value, mRight->value, mBottom->value); in onDraw() 71 virtual SkRect onGetBounds() override { in onGetBounds() 75 return SkRect::MakeLTRB(x - radius, y - radius, x + radius, y + radius); in onGetBounds()
|
D | ReorderBarrierDrawables.h | 44 virtual SkRect onGetBounds() override { in onGetBounds() 45 return SkRect::MakeLargest(); in onGetBounds() 69 virtual SkRect onGetBounds() override { in onGetBounds() 70 return SkRect::MakeLargest(); in onGetBounds()
|
D | VectorDrawableAtlas.cpp | 107 SkRect currentVDRect = entry.VDrect; in repack() 120 SkRect newRect = SkRect::MakeXYWH(pos.fX, pos.fY, currentVDRect.width(), in repack() 136 SkRect newRect = SkRect::MakeWH(currentVDRect.width(), in repack() 168 result.rect = SkRect::MakeXYWH(pos.fX, pos.fY, width, height); in requestNewEntry() 181 SkRect& freeRect = freeRectIt->second; in requestNewEntry() 183 result.rect = SkRect::MakeXYWH(freeRect.fLeft, freeRect.fTop, width, height); in requestNewEntry() 204 result.rect = SkRect::MakeWH(width, height); in requestNewEntry() 235 SkRect& removedRect = entry->rect; in releaseEntry() 238 SkRect& removedVDRect = entry->VDrect; in releaseEntry()
|
D | RenderNodeDrawable.cpp | 61 static void clipOutline(const Outline& outline, SkCanvas* canvas, const SkRect* pendingClip) { in clipOutline() 75 SkRect rect = possibleRect.toSkRect(); in clipOutline() 104 SkRect dimensions = SkRect::MakeWH(renderNode->getWidth(), renderNode->getHeight()); in forceDraw() 171 const SkRect bounds = SkRect::MakeWH(properties.getWidth(), properties.getHeight()); in drawContent() 251 SkRect bounds = SkRect::MakeLTRB(layerBounds.left, layerBounds.top, in setViewProperties() 264 const SkRect* pendingClip = nullptr; in setViewProperties() 265 SkRect clipRect; in setViewProperties()
|
D | SkiaOpenGLReadback.cpp | 81 SkRect skiaSrcRect = srcRect.toSkRect(); in copyImageInto() 83 SkRect skiaDestRect = SkRect::MakeWH(bitmap->width(), bitmap->height()); in copyImageInto() 87 skiaSrcRect = SkRect::MakeIWH(imgWidth, imgHeight); in copyImageInto() 93 srcNotEmpty = skiaSrcRect.intersect(SkRect::MakeIWH(imgWidth, imgHeight)); in copyImageInto()
|
D | SkiaRecordingCanvas.cpp | 128 virtual SkRect onGetBounds() override { in onGetBounds() 129 return SkRect::MakeLargest(); in onGetBounds() 185 SkRect srcRect = SkRect::MakeLTRB(srcLeft, srcTop, srcRight, srcBottom); in drawBitmap() 186 SkRect dstRect = SkRect::MakeLTRB(dstLeft, dstTop, dstRight, dstBottom); in drawBitmap() 215 SkRect dst = SkRect::MakeLTRB(dstLeft, dstTop, dstRight, dstBottom); in drawNinePatch()
|
D | SkiaOpenGLPipeline.h | 35 bool draw(const renderthread::Frame& frame, const SkRect& screenDirty, const SkRect& dirty, 42 bool swapBuffers(const renderthread::Frame& frame, bool drew, const SkRect& screenDirty,
|
D | SkiaVulkanPipeline.h | 33 bool draw(const renderthread::Frame& frame, const SkRect& screenDirty, const SkRect& dirty, 40 bool swapBuffers(const renderthread::Frame& frame, bool drew, const SkRect& screenDirty,
|
D | SkiaPipeline.cpp | 116 const SkRect bounds = SkRect::MakeWH(properties.getWidth(), properties.getHeight()); in renderLayersImpl() 198 void SkiaPipeline::renderFrame(const LayerUpdateQueue& layers, const SkRect& clip, in renderFrame() 255 void SkiaPipeline::renderFrameImpl(const LayerUpdateQueue& layers, const SkRect& clip, in renderFrameImpl() 304 canvas->clipRect(SkRect::MakeLTRB(content.right, backdrop.top, in renderFrameImpl() 312 canvas->clipRect(SkRect::MakeLTRB(content.left, content.bottom, in renderFrameImpl() 326 const SkRect contentLocalClip = SkRect::MakeXYWH(contentDrawBounds.left, in renderFrameImpl() 372 void SkiaPipeline::renderOverdraw(const LayerUpdateQueue& layers, const SkRect& clip, in renderOverdraw()
|
/frameworks/base/core/jni/android/graphics/pdf/ |
D | PdfDocument.cpp | 37 PageRecord(int width, int height, const SkRect& contentRect) in PageRecord() 56 SkRect mContentRect; 69 SkRect contentRect = SkRect::MakeLTRB( in startPage() 76 SkRect::MakeWH(contentRect.width(), contentRect.height())); in startPage()
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | ReadbackFromHardwareBitmap.cpp | 37 canvas.drawRect(SkRect::MakeXYWH(30, 30, 30, 150), paint); in createHardwareBitmap() 38 canvas.drawRect(SkRect::MakeXYWH(30, 30, 100, 30), paint); in createHardwareBitmap() 39 canvas.drawRect(SkRect::MakeXYWH(30, 100, 70, 30), paint); in createHardwareBitmap()
|