Home
last modified time | relevance | path

Searched refs:SkRect (Results 1 – 25 of 80) sorted by relevance

1234

/frameworks/base/libs/hwui/
DRecordingCanvas.h76 void saveLayer(const SkRect*, const SkPaint*, const SkImageFilter*, const SkImage*,
78 void saveBehind(const SkRect*);
87 void clipRect(const SkRect&, SkClipOp, bool aa);
94 void drawRect(const SkRect&, const SkPaint&);
96 void drawOval(const SkRect&, const SkPaint&);
97 void drawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&);
101 void drawAnnotation(const SkRect&, const char*, SkData*);
108 void drawImageNine(sk_sp<const SkImage>, const SkIRect&, const SkRect&, const SkPaint*);
109 void drawImageRect(sk_sp<const SkImage>, const SkRect*, const SkRect&, const SkPaint*,
111 void drawImageLattice(sk_sp<const SkImage>, const SkCanvas::Lattice&, const SkRect&,
[all …]
DRecordingCanvas.cpp46 static const SkRect kUnset = {SK_ScalarInfinity, 0, 0, 0};
47 static const SkRect* maybe_unset(const SkRect& r) { in maybe_unset()
97 SaveLayer(const SkRect* bounds, const SkPaint* paint, const SkImageFilter* backdrop, in SaveLayer()
110 SkRect bounds = kUnset;
123 SaveBehind(const SkRect* subset) { in SaveBehind()
126 SkRect subset = kUnset;
163 ClipRect(const SkRect& rect, SkClipOp op, bool aa) : rect(rect), op(op), aa(aa) {} in ClipRect()
164 SkRect rect;
206 DrawRect(const SkRect& rect, const SkPaint& paint) : rect(rect), paint(paint) {} in DrawRect()
207 SkRect rect;
[all …]
DDamageAccumulator.cpp42 SkRect pendingDirty;
122 static inline void mapRect(const Matrix4* matrix, const SkRect& in, SkRect* out) { in mapRect()
140 static inline void mapRect(const RenderProperties& props, const SkRect& in, SkRect* out) { in mapRect()
143 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()
DReadback.cpp95 const SkRect dstRect = SkRect::MakeIWH(bitmap->width(), bitmap->height()); in copyLayerInto()
135 SkRect skiaDestRect = SkRect::MakeWH(bitmap->width(), bitmap->height()); in copyImageInto()
136 SkRect skiaSrcRect = srcRect.toSkRect(); in copyImageInto()
138 skiaSrcRect = SkRect::MakeIWH(displayedWidth, displayedHeight); in copyImageInto()
140 bool srcNotEmpty = skiaSrcRect.intersect(SkRect::MakeIWH(displayedWidth, displayedHeight)); in copyImageInto()
159 bool Readback::copyLayerInto(Layer* layer, const SkRect* srcRect, const SkRect* dstRect, in copyLayerInto()
DSkiaCanvas.cpp174 const SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); in saveLayer()
191 SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); in saveUnclippedLayer()
209 Clip(const SkRect& rect, SkClipOp op, const SkMatrix& m) in Clip()
355 bool SkiaCanvas::getClipBounds(SkRect* outRect) const { in getClipBounds()
371 SkRect r = SkRect::Make(ibounds); in getClipBounds()
378 SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); in quickRejectRect()
387 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom); in clipRect()
501 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom); in drawRoundRect()
517 SkRect oval = SkRect::MakeLTRB(left, top, right, bottom); in drawOval()
524 SkRect arc = SkRect::MakeLTRB(left, top, right, bottom); in drawArc()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DFatalTestCanvas.h27 void onDrawAnnotation(const SkRect&, const char key[], SkData* value) { in onDrawAnnotation() argument
41 void onDrawRect(const SkRect&, const SkPaint&) { in onDrawRect() argument
47 void onDrawOval(const SkRect&, const SkPaint&) { in onDrawOval() argument
50 void onDrawArc(const SkRect&, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, in onDrawArc() argument
63 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int count, in onDrawAtlas() argument
64 SkBlendMode, const SkRect* cull, const SkPaint*) { in onDrawAtlas()
73 void onDrawImageRect(const SkImage*, const SkRect*, const SkRect&, const SkPaint*, in onDrawImageRect() argument
77 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& dst, const SkPaint*) { in onDrawImageNine()
80 void onDrawImageLattice(const SkImage*, const Lattice& lattice, const SkRect& dst, in onDrawImageLattice()
87 void onDrawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkPaint*, in onDrawBitmapRect() argument
[all …]
DDamageAccumulatorTests.cpp34 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 …]
DSkiaPipelineTests.cpp48 SkRect dirty = SkRectMakeLargest(); in RENDERTHREAD_SKIA_PIPELINE_TEST()
69 SkRect dirty = SkRectMakeLargest(); in RENDERTHREAD_SKIA_PIPELINE_TEST()
104 SkRect dirty = SkRectMakeLargest(); in RENDERTHREAD_SKIA_PIPELINE_TEST()
128 SkRect dirty = SkRect::MakeXYWH(0, 1, 2, 1); in RENDERTHREAD_SKIA_PIPELINE_TEST()
167 SkRect dirty = SkRectMakeLargest(); in RENDERTHREAD_SKIA_PIPELINE_TEST()
169 layerUpdateQueue.enqueueLayerWithDamage(blueNode.get(), SkRect::MakeWH(2, 1)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
195 SkRect dirty = SkRect::MakeXYWH(0, 0, 1, 1); in RENDERTHREAD_SKIA_PIPELINE_TEST()
264 void onDrawRect(const SkRect& rect, const SkPaint& paint) override { in RENDERTHREAD_SKIA_PIPELINE_TEST()
269 EXPECT_EQ(SkRect::MakeLTRB(600, 100, 700, 500), TestUtils::getClipBounds(this)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
274 EXPECT_EQ(SkRect::MakeLTRB(100, 400, 600, 500), TestUtils::getClipBounds(this)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
[all …]
DRenderNodeDrawableTests.cpp95 void onDrawRect(const SkRect& rect, const SkPaint& paint) override { in onDrawRect()
174 static SkRect getRecorderClipBounds(const SkiaRecordingCanvas& recorder) { in getRecorderClipBounds()
175 SkRect clipBounds; in getRecorderClipBounds()
196 ASSERT_EQ(SkRect::MakeLTRB(0, 0, 400, 800), getRecorderClipBounds(recorder)); in TEST()
201 ASSERT_EQ(SkRect::MakeLTRB(0, 0, 400, 400), getRecorderClipBounds(recorder)); in TEST()
205 ASSERT_EQ(SkRect::MakeLTRB(50, 50, 350, 350), getRecorderClipBounds(recorder)); in TEST()
211 ASSERT_EQ(SkRect::MakeLTRB(0, 0, 400, 800), getRecorderClipBounds(recorder)); in TEST()
240 void onDrawRect(const SkRect& rect, const SkPaint& paint) override { in RENDERTHREAD_TEST()
246 EXPECT_EQ(SkRect::MakeWH(100, 100), rect); in RENDERTHREAD_TEST()
249 EXPECT_EQ(SkRect::MakeLTRB(0, 0, 100, 100), TestUtils::getClipBounds(this)); in RENDERTHREAD_TEST()
[all …]
DSkiaBehaviorTests.cpp74 p0.addRect(SkRect::MakeXYWH(-5.0f, 0.0f, 1080.0f, 242.0f)); in TEST()
75 p1.addRect(SkRect::MakeXYWH(0.0f, 0.0f, 1080.0f, 242.0f)); in TEST()
77 SkRect resultRect; in TEST()
79 ASSERT_EQ(SkRect::MakeXYWH(0.0f, 0.0f, 1075.0f, 242.0f), resultRect); in TEST()
DSkiaRenderPropertiesTests.cpp49 void onDrawRect(const SkRect& rect, const SkPaint& paint) override { in testProperty()
82 EXPECT_EQ(SkRect::MakeLTRB(10, 20, 100, 100), TestUtils::getClipBounds(&canvas)) in TEST()
93 EXPECT_EQ(SkRect::MakeLTRB(25, 25, 75, 75), TestUtils::getClipBounds(&canvas)); in TEST()
104 EXPECT_EQ(SkRect::MakeLTRB(10, 20, 30, 40), TestUtils::getClipBounds(&canvas)); in TEST()
/frameworks/base/libs/hwui/pipeline/skia/
DLayerDrawable.cpp42 static bool shouldFilterRect(const SkMatrix& matrix, const SkRect& srcRect, const SkRect& dstRect) { in shouldFilterRect()
44 SkRect dstDevRect = matrix.mapRect(dstRect); in shouldFilterRect()
71 const SkRect* srcRect, const SkRect* dstRect, in DrawLayer()
120 SkRect skiaSrcRect; in DrawLayer()
124 skiaSrcRect = SkRect::MakeIWH(layerWidth, layerHeight); in DrawLayer()
127 SkRect skiaDestRect; in DrawLayer()
131 skiaDestRect = SkRect::MakeIWH(layerWidth, layerHeight); in DrawLayer()
147 SkRect imageRect = SkRect::MakeIWH(layerImage->width(), layerImage->height()); in DrawLayer()
DVectorDrawableAtlas.h38 SkRect rect;
119 CacheEntry(const SkRect& newVDrect, const SkRect& newRect, in CacheEntry()
126 SkRect VDrect;
131 SkRect rect;
164 std::multimap<size_t, SkRect> mFreeRects;
DDumpOpsCanvas.h39 void onClipRect(const SkRect& rect, SkClipOp, ClipEdgeStyle) override { in onClipRect()
61 void onDrawRect(const SkRect&, const SkPaint&) override { in onDrawRect() argument
69 void onDrawOval(const SkRect&, const SkPaint&) override { in onDrawOval() argument
73 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) override { in onDrawArc() argument
93 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& dst, in onDrawImageNine()
98 void onDrawImageRect(const SkImage*, const SkRect*, const SkRect&, const SkPaint*, in onDrawImageRect() argument
103 void onDrawImageLattice(const SkImage*, const Lattice& lattice, const SkRect& dst, in onDrawImageLattice()
DLayerDrawable.h35 static bool DrawLayer(GrContext* context, SkCanvas* canvas, Layer* layer, const SkRect* srcRect,
36 const SkRect* dstRect, bool useLayerTransform);
39 virtual SkRect onGetBounds() override { in onGetBounds()
40 return SkRect::MakeWH(mLayerUpdater->getWidth(), mLayerUpdater->getHeight()); in onGetBounds()
DSkiaProfileRenderer.cpp24 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()
DAnimatedDrawables.h39 virtual SkRect onGetBounds() override { in onGetBounds()
40 return SkRect::MakeLTRB(mLeft->value, mTop->value, mRight->value, mBottom->value); in onGetBounds()
43 SkRect rect = SkRect::MakeLTRB(mLeft->value, mTop->value, mRight->value, mBottom->value); in onDraw()
65 virtual SkRect onGetBounds() override { in onGetBounds()
69 return SkRect::MakeLTRB(x - radius, y - radius, x + radius, y + radius); in onGetBounds()
DVectorDrawableAtlas.cpp107 SkRect currentVDRect = entry.VDrect; in repack()
120 SkRect newRect = in repack()
121 SkRect::MakeXYWH(pos.fX, pos.fY, currentVDRect.width(), currentVDRect.height()); in repack()
136 SkRect newRect = SkRect::MakeWH(currentVDRect.width(), currentVDRect.height()); in repack()
167 result.rect = SkRect::MakeXYWH(pos.fX, pos.fY, width, height); in requestNewEntry()
180 SkRect& freeRect = freeRectIt->second; in requestNewEntry()
182 result.rect = SkRect::MakeXYWH(freeRect.fLeft, freeRect.fTop, width, height); in requestNewEntry()
203 result.rect = SkRect::MakeWH(width, height); in requestNewEntry()
243 SkRect& removedRect = entry->rect; in releaseEntry()
246 SkRect& removedVDRect = entry->VDrect; in releaseEntry()
DRenderNodeDrawable.cpp78 static void clipOutline(const Outline& outline, SkCanvas* canvas, const SkRect* pendingClip) { in clipOutline()
92 SkRect rect = possibleRect.toSkRect(); in clipOutline()
223 const SkRect bounds = SkRect::MakeWH(properties.getWidth(), properties.getHeight()); in drawContent()
301 SkRect bounds = SkRect::MakeLTRB(layerBounds.left, layerBounds.top, layerBounds.right, in setViewProperties()
314 const SkRect* pendingClip = nullptr; in setViewProperties()
315 SkRect clipRect; in setViewProperties()
DSkiaOpenGLPipeline.h37 bool draw(const renderthread::Frame& frame, const SkRect& screenDirty, const SkRect& dirty,
43 bool swapBuffers(const renderthread::Frame& frame, bool drew, const SkRect& screenDirty,
DSkiaVulkanPipeline.h36 bool draw(const renderthread::Frame& frame, const SkRect& screenDirty, const SkRect& dirty,
42 bool swapBuffers(const renderthread::Frame& frame, bool drew, const SkRect& screenDirty,
/frameworks/base/libs/hwui/tests/common/
DTestUtils.cpp161 SkRect TestUtils::getClipBounds(const SkCanvas* canvas) { in getClipBounds()
162 return SkRect::Make(canvas->getDeviceClipBounds()); in getClipBounds()
165 SkRect TestUtils::getLocalClipBounds(const SkCanvas* canvas) { in getLocalClipBounds()
168 return SkRect::MakeEmpty(); in getLocalClipBounds()
170 SkRect outlineInDeviceCoord = TestUtils::getClipBounds(canvas); in getLocalClipBounds()
171 SkRect outlineInLocalCoord; in getLocalClipBounds()
/frameworks/base/core/jni/android/graphics/pdf/
DPdfDocument.cpp36 PageRecord(int width, int height, const SkRect& contentRect) in PageRecord()
55 SkRect mContentRect;
68 SkRect contentRect = SkRect::MakeLTRB( in startPage()
75 SkRect::MakeWH(contentRect.width(), contentRect.height())); in startPage()
/frameworks/base/libs/hwui/hwui/
DCanvas.cpp182 SkRect outer = SkRect::MakeLTRB(outerLeft, outerTop, outerRight, outerBottom); in drawDoubleRoundRectXY()
183 SkRect inner = SkRect::MakeLTRB(innerLeft, innerTop, innerRight, innerBottom); in drawDoubleRoundRectXY()
199 SkRect outer = SkRect::MakeLTRB(outerLeft, outerTop, outerRight, outerBottom); in drawDoubleRoundRectRadii()
200 SkRect inner = SkRect::MakeLTRB(innerLeft, innerTop, innerRight, innerBottom); in drawDoubleRoundRectRadii()
/frameworks/base/libs/hwui/tests/common/scenes/
DReadbackFromHardwareBitmap.cpp35 canvas.drawRect(SkRect::MakeXYWH(30, 30, 30, 150), paint); in createHardwareBitmap()
36 canvas.drawRect(SkRect::MakeXYWH(30, 30, 100, 30), paint); in createHardwareBitmap()
37 canvas.drawRect(SkRect::MakeXYWH(30, 100, 70, 30), paint); in createHardwareBitmap()

1234