/frameworks/base/libs/hwui/ |
D | RecordingCanvas.h | 121 void saveLayer(const SkRect*, const SkPaint*, const SkImageFilter*, SkCanvas::SaveLayerFlags); 122 void saveBehind(const SkRect*); 133 void clipRect(const SkRect&, SkClipOp, bool aa); 141 void drawRect(const SkRect&, const SkPaint&); 143 void drawOval(const SkRect&, const SkPaint&); 144 void drawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&); 151 void drawAnnotation(const SkRect&, const char*, SkData*); 159 void drawImageRect(DrawImagePayload&&, const SkRect*, const SkRect&, const SkSamplingOptions&, 161 void drawImageLattice(DrawImagePayload&&, const SkCanvas::Lattice&, const SkRect&, SkFilterMode, 168 void drawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int, [all …]
|
D | DamageAccumulator.cpp | 42 SkRect pendingDirty; 122 static inline void mapRect(const Matrix4* matrix, const SkRect& in, SkRect* out) { in mapRect() 140 static inline void applyMatrix(const SkMatrix* transform, SkRect* rect) { in applyMatrix() 153 static inline void applyMatrix(const SkMatrix& transform, SkRect* rect) { in applyMatrix() 157 static inline void mapRect(const RenderProperties& props, const SkRect& in, SkRect* out) { in mapRect() 159 SkRect temp(in); in mapRect() 199 SkRect* rect = &frame->pendingDirty; in applyTransforms() 222 if (!frame->pendingDirty.intersect(SkRect::MakeIWH(props.getWidth(), props.getHeight()))) { in applyRenderNodeTransform() 245 SkRect DamageAccumulator::computeClipAndTransform(const SkRect& bounds, Matrix4* outMatrix) const { in computeClipAndTransform() 248 SkRect pretransformResult = bounds; in computeClipAndTransform() [all …]
|
D | Readback.cpp | 122 SkRect srcRect = request->srcRect.toSkRect(); in copySurfaceInto() 124 SkRect imageSrcRect = SkRect::MakeIWH(description.width, description.height); in copySurfaceInto() 128 SkRect::MakeLTRB(cropRect.left, cropRect.top, cropRect.right, cropRect.bottom); in copySurfaceInto() 159 const SkRect textureRect = in copySurfaceInto() 161 ? SkRect::MakeIWH(imageSrcRect.height(), imageSrcRect.width()) in copySurfaceInto() 162 : SkRect::MakeIWH(imageSrcRect.width(), imageSrcRect.height()); in copySurfaceInto() 215 const SkRect imageDstRect = SkRect::Make(imageWH); in copySurfaceInto() 231 SK_RECT_ARGS(SkRect::MakeWH(bitmap->width(), bitmap->height()))); in copySurfaceInto() 233 SkRect::MakeWH(bitmap->width(), bitmap->height()), in copySurfaceInto() 289 const SkRect dstRect = SkRect::MakeIWH(bitmap->width(), bitmap->height()); in copyLayerInto() [all …]
|
D | DamageAccumulator.h | 60 void peekAtDirty(SkRect* dest) const; 64 SkRect computeClipAndTransform(const SkRect& bounds, Matrix4* outMatrix) const; 66 void finish(SkRect* totalDirty); 77 const SkRect parentBounds;
|
D | RecordingCanvas.cpp | 68 static const SkRect kUnset = {SK_ScalarInfinity, 0, 0, 0}; 69 static const SkRect* maybe_unset(const SkRect& r) { in maybe_unset() 122 SaveLayer(const SkRect* bounds, const SkPaint* paint, const SkImageFilter* backdrop, in SaveLayer() 133 SkRect bounds = kUnset; 143 SaveBehind(const SkRect* subset) { in SaveBehind() 146 SkRect subset = kUnset; 189 ClipRect(const SkRect& rect, SkClipOp op, bool aa) : rect(rect), op(op), aa(aa) {} in ClipRect() 190 SkRect rect; 244 DrawRect(const SkRect& rect, const SkPaint& paint) : rect(rect), paint(paint) {} in DrawRect() 245 SkRect rect; [all …]
|
D | Layer.cpp | 65 static bool shouldFilterRect(const SkMatrix& matrix, const SkRect& srcRect, const SkRect& dstRect) { in shouldFilterRect() 67 SkRect dstDevRect = matrix.mapRect(dstRect); in shouldFilterRect() 131 SkRect imageRect = SkRect::MakeIWH(layerImage->width(), layerImage->height()); in draw()
|
D | SkiaCanvas.cpp | 67 Clip(const SkRect& rect, SkClipOp op, const SkMatrix& m) in Clip() 225 const SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); in saveLayer() 241 SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); in saveUnclippedLayer() 378 bool SkiaCanvas::getClipBounds(SkRect* outRect) const { in getClipBounds() 394 SkRect r = SkRect::Make(ibounds); in getClipBounds() 401 SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); in quickRejectRect() 410 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom); in clipRect() 428 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom); in replaceClipRect_deprecated() 548 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom); in drawRoundRect() 564 SkRect oval = SkRect::MakeLTRB(left, top, right, bottom); in drawOval() [all …]
|
D | Readback.h | 28 struct SkRect; 55 bool copyLayerInto(Layer* layer, const SkRect* srcRect, const SkRect* dstRect,
|
/frameworks/base/libs/hwui/tests/unit/ |
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 | FatalTestCanvas.h | 29 void onDrawAnnotation(const SkRect&, const char key[], SkData* value) { in onDrawAnnotation() argument 43 void onDrawRect(const SkRect&, const SkPaint&) { in onDrawRect() argument 49 void onDrawOval(const SkRect&, const SkPaint&) { in onDrawOval() argument 52 void onDrawArc(const SkRect&, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, in onDrawArc() argument 65 void onDrawAtlas2(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int count, in onDrawAtlas2() argument 66 SkBlendMode, const SkSamplingOptions&, const SkRect* cull, const SkPaint*) { in onDrawAtlas2() 72 void onDrawImageRect2(const SkImage*, const SkRect&, const SkRect&, const SkSamplingOptions&, in onDrawImageRect2() argument 76 void onDrawImageLattice2(const SkImage*, const Lattice& lattice, const SkRect& dst, in onDrawImageLattice2()
|
D | SkiaPipelineTests.cpp | 51 SkRect dirty = SkRectMakeLargest(); in RENDERTHREAD_TEST() 74 SkRect dirty = SkRectMakeLargest(); in RENDERTHREAD_TEST() 98 SkRect dirty = SkRect::MakeXYWH(0, 1, 2, 1); in RENDERTHREAD_TEST() 137 SkRect dirty = SkRectMakeLargest(); in RENDERTHREAD_TEST() 139 layerUpdateQueue.enqueueLayerWithDamage(blueNode.get(), SkRect::MakeWH(2, 1)); in RENDERTHREAD_TEST() 165 SkRect dirty = SkRect::MakeXYWH(0, 0, 1, 1); in RENDERTHREAD_TEST() 234 void onDrawRect(const SkRect& rect, const SkPaint& paint) override { in RENDERTHREAD_TEST() 239 EXPECT_EQ(SkRect::MakeLTRB(600, 100, 700, 500), TestUtils::getClipBounds(this)); in RENDERTHREAD_TEST() 244 EXPECT_EQ(SkRect::MakeLTRB(100, 400, 600, 500), TestUtils::getClipBounds(this)); in RENDERTHREAD_TEST() 249 EXPECT_EQ(SkRect::MakeLTRB(100, 100, 700, 500), TestUtils::getClipBounds(this)); in RENDERTHREAD_TEST() [all …]
|
D | RenderNodeDrawableTests.cpp | 99 void onDrawRect(const SkRect& rect, const SkPaint& paint) override { in onDrawRect() 178 static SkRect getRecorderClipBounds(const SkiaRecordingCanvas& recorder) { in getRecorderClipBounds() 179 SkRect clipBounds; in getRecorderClipBounds() 200 ASSERT_EQ(SkRect::MakeLTRB(0, 0, 400, 800), getRecorderClipBounds(recorder)); in TEST() 205 ASSERT_EQ(SkRect::MakeLTRB(0, 0, 400, 400), getRecorderClipBounds(recorder)); in TEST() 209 ASSERT_EQ(SkRect::MakeLTRB(50, 50, 350, 350), getRecorderClipBounds(recorder)); in TEST() 215 ASSERT_EQ(SkRect::MakeLTRB(0, 0, 400, 800), getRecorderClipBounds(recorder)); in TEST() 244 void onDrawRect(const SkRect& rect, const SkPaint& paint) override { in RENDERTHREAD_TEST() 250 EXPECT_EQ(SkRect::MakeWH(100, 100), rect); in RENDERTHREAD_TEST() 253 EXPECT_EQ(SkRect::MakeLTRB(0, 0, 100, 100), TestUtils::getClipBounds(this)); in RENDERTHREAD_TEST() [all …]
|
D | SkiaBehaviorTests.cpp | 78 p0.addRect(SkRect::MakeXYWH(-5.0f, 0.0f, 1080.0f, 242.0f)); in TEST() 79 p1.addRect(SkRect::MakeXYWH(0.0f, 0.0f, 1080.0f, 242.0f)); in TEST() 81 SkRect resultRect; in TEST() 83 ASSERT_EQ(SkRect::MakeXYWH(0.0f, 0.0f, 1075.0f, 242.0f), resultRect); in TEST()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | LayerDrawable.cpp | 41 SkRect srcRect = layer->getCurrentCropRect(); in onDraw() 52 static bool shouldFilterRect(const SkMatrix& matrix, const SkRect& srcRect, const SkRect& dstRect) { in shouldFilterRect() 54 SkRect dstDevRect = matrix.mapRect(dstRect); in shouldFilterRect() 80 static void adjustCropForYUV(uint32_t format, int bufferWidth, int bufferHeight, SkRect* cropRect) { in adjustCropForYUV() 110 const SkRect* srcRect, in DrawLayer() 111 const SkRect* dstRect, in DrawLayer() 138 SkRect skiaSrcRect; in DrawLayer() 143 skiaSrcRect = SkRect::MakeIWH(imageWidth, imageHeight); in DrawLayer() 145 SkRect skiaDestRect; in DrawLayer() 148 ? SkRect::MakeIWH(dstRect->height(), dstRect->width()) in DrawLayer() [all …]
|
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 | LayerDrawable.h | 38 const SkRect* srcRect, 39 const SkRect* dstRect, 43 virtual SkRect onGetBounds() override { in onGetBounds() 44 return SkRect::MakeWH(mLayerUpdater->getWidth(), mLayerUpdater->getHeight()); in onGetBounds()
|
D | BackdropFilterDrawable.h | 46 SkRect mDstBounds; 47 SkRect mImageSubset; 61 virtual SkRect onGetBounds() override { return mBounds; } in onGetBounds() 62 const SkRect mBounds;
|
D | DumpOpsCanvas.h | 41 void onClipRect(const SkRect& rect, SkClipOp, ClipEdgeStyle) override { in onClipRect() 65 void onDrawRect(const SkRect&, const SkPaint&) override { in onDrawRect() argument 73 void onDrawOval(const SkRect&, const SkPaint&) override { in onDrawOval() argument 77 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) override { in onDrawArc() argument 93 void onDrawImageRect2(const SkImage*, const SkRect&, const SkRect&, const SkSamplingOptions&, in onDrawImageRect2() argument 98 void onDrawImageLattice2(const SkImage*, const Lattice& lattice, const SkRect& dst, in onDrawImageLattice2()
|
/frameworks/base/libs/hwui/canvas/ |
D | CanvasFrontend.cpp | 52 const SkRect& bounds, bool aa, bool fillsBounds) { in apply() 56 SkRect devBounds; in apply() 69 void CanvasStateHelper::internalClipRect(const SkRect& rect, SkClipOp op) { in internalClipRect() 74 SkRect bounds = path.getBounds(); in internalClipPath() 109 SkRect CanvasStateHelper::getClipBounds() const { in getClipBounds() 115 return SkRect::MakeEmpty(); in getClipBounds() 118 return inverse.mapRect(SkRect::Make(bounds)); in getClipBounds() 122 const SkRect& bounds) const { in quickReject() 123 SkRect devRect = matrix.mapRect(bounds); in quickReject() 129 return clip().quickReject(transform(), SkRect::MakeLTRB(left, top, right, bottom)); in quickRejectRect()
|
D | CanvasOps.h | 83 SkRect bounds; 106 SkRect rect; 135 SkRect rect = SkRect::MakeLTRB(left->value, top->value, right->value, bottom->value); 206 SkRect rect; 222 SkRect rect; 257 SkRect oval; 267 SkRect oval; 363 SkRect src, 364 SkRect dst, 374 SkRect src; [all …]
|
/frameworks/base/libs/hwui/tests/common/ |
D | CallCountingCanvas.h | 57 void onDrawRect(const SkRect& rect, const SkPaint& paint) override { in onDrawRect() 73 void onDrawOval(const SkRect& rect, const SkPaint& paint) override { in onDrawOval() 78 void onDrawArc(const SkRect& rect, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, in onDrawArc() 113 void onDrawImageRect2(const SkImage*, const SkRect&, const SkRect&, const SkSamplingOptions&, in onDrawImageRect2() argument 120 const SkRect& dst, SkFilterMode, const SkPaint* paint) override { in onDrawImageLattice2() 125 void onDrawAtlas2(const SkImage* atlas, const SkRSXform xform[], const SkRect rect[], in onDrawAtlas2() 127 const SkRect* cull, const SkPaint* paint) override { in onDrawAtlas2() 132 void onDrawAnnotation(const SkRect& rect, const char key[], SkData* value) override { in onDrawAnnotation()
|
D | TestUtils.cpp | 85 layerUpdater->updateLayer(true, nullptr, 0, SkRect::MakeEmpty()); in createTextureLayerUpdater() 169 SkRect TestUtils::getClipBounds(const SkCanvas* canvas) { in getClipBounds() 170 return SkRect::Make(canvas->getDeviceClipBounds()); in getClipBounds() 173 SkRect TestUtils::getLocalClipBounds(const SkCanvas* canvas) { in getLocalClipBounds() 176 return SkRect::MakeEmpty(); in getLocalClipBounds() 178 SkRect outlineInDeviceCoord = TestUtils::getClipBounds(canvas); in getLocalClipBounds() 179 SkRect outlineInLocalCoord; in getLocalClipBounds()
|
/frameworks/native/services/surfaceflinger/Utils/ |
D | OverlayUtils.h | 87 const SkRect rect = [&]() { in drawSegment() 90 return SkRect::MakeLTRB(left, 0, left + kDigitWidth, kDigitSpace); in drawSegment() 92 return SkRect::MakeLTRB(left, 0, left + kDigitSpace, kDigitHeight / 2.); in drawSegment() 94 return SkRect::MakeLTRB(left + kDigitWidth - kDigitSpace, 0, left + kDigitWidth, in drawSegment() 97 return SkRect::MakeLTRB(left, kDigitHeight / 2. - kDigitSpace / 2., in drawSegment() 101 return SkRect::MakeLTRB(left, kDigitHeight / 2., left + kDigitSpace, in drawSegment() 104 return SkRect::MakeLTRB(left + kDigitWidth - kDigitSpace, kDigitHeight / 2., in drawSegment() 107 return SkRect::MakeLTRB(left, kDigitHeight - kDigitSpace, left + kDigitWidth, in drawSegment() 110 return SkRect::MakeLTRB(left, kDigitHeight - kDigitSpace, left + kDigitSpace, in drawSegment()
|
/frameworks/base/libs/hwui/platform/android/pipeline/skia/ |
D | SkiaVulkanPipeline.h | 27 struct SkRect; 41 const renderthread::Frame& frame, const SkRect& screenDirty, const SkRect& dirty, 49 const SkRect& screenDirty, FrameInfo* currentFrameInfo,
|
/frameworks/base/libs/hwui/hwui/ |
D | Canvas.cpp | 144 SkRect outer = SkRect::MakeLTRB(outerLeft, outerTop, outerRight, outerBottom); in drawDoubleRoundRectXY() 145 SkRect inner = SkRect::MakeLTRB(innerLeft, innerTop, innerRight, innerBottom); in drawDoubleRoundRectXY() 161 SkRect outer = SkRect::MakeLTRB(outerLeft, outerTop, outerRight, outerBottom); in drawDoubleRoundRectRadii() 162 SkRect inner = SkRect::MakeLTRB(innerLeft, innerTop, innerRight, innerBottom); in drawDoubleRoundRectRadii()
|