Home
last modified time | relevance | path

Searched refs:localClip (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/libs/hwui/
DOpDumper.cpp36 if (op.localClip in dump()
37 && (!op.localClip->rect.contains(localBounds) || op.localClip->intersectWithRoot)) { in dump()
39 << " clip=" << op.localClip->rect in dump()
40 << " mode=" << (int)op.localClip->mode; in dump()
42 if (op.localClip->intersectWithRoot) { in dump()
DRecordedOp.h153 …const Rect& unmappedBounds, const Matrix4& localMatrix, const ClipBase* localClip, const SkPaint* …
154 …_PARAMS_PAINTLESS const Rect& unmappedBounds, const Matrix4& localMatrix, const ClipBase* localClip
155 #define SUPER(Type) RecordedOp(RecordedOpId::Type, unmappedBounds, localMatrix, localClip, paint)
156 #define SUPER_PAINTLESS(Type) RecordedOp(RecordedOpId::Type, unmappedBounds, localMatrix, localClip
169 const ClipBase* localClip; member
178 , localClip(localClip) in RecordedOp()
249 CirclePropsOp(const Matrix4& localMatrix, const ClipBase* localClip, const SkPaint* paint, in CirclePropsOp()
251 : RecordedOp(RecordedOpId::CirclePropsOp, Rect(), localMatrix, localClip, paint) in CirclePropsOp()
262 ColorOp(const ClipBase* localClip, int color, SkXfermode::Mode mode) in ColorOp()
263 : RecordedOp(RecordedOpId::ColorOp, Rect(), Matrix4::identity(), localClip, nullptr) in ColorOp()
[all …]
DTessellationCache.h93 ShadowTask(const Matrix4* drawTransform, const Rect& localClip, bool opaque, in ShadowTask() argument
97 , localClip(localClip) in ShadowTask()
114 const Rect localClip; variable
165 void precacheShadows(const Matrix4* drawTransform, const Rect& localClip,
169 void getShadowBuffers(const Matrix4* drawTransform, const Rect& localClip,
175 sp<ShadowTask> getShadowTask(const Matrix4* drawTransform, const Rect& localClip,
227 const Matrix4* drawTransform, const Rect* localClip,
DTessellationCache.cpp208 const Matrix4* drawTransform, const Rect* localClip, in tessellateShadows() argument
263 casterBounds, *localClip, maxZ, ambientBuffer); in tessellateShadows()
267 *drawTransform, lightCenter, lightRadius, casterBounds, *localClip, in tessellateShadows()
281 tessellateShadows(&t->drawTransform, &t->localClip, t->opaque, &t->casterPerimeter, in onProcess()
355 void TessellationCache::precacheShadows(const Matrix4* drawTransform, const Rect& localClip, in precacheShadows() argument
362 sp<ShadowTask> task = new ShadowTask(drawTransform, localClip, opaque, in precacheShadows()
372 void TessellationCache::getShadowBuffers(const Matrix4* drawTransform, const Rect& localClip, in getShadowBuffers() argument
379 precacheShadows(drawTransform, localClip, opaque, casterPerimeter, in getShadowBuffers()
388 const Matrix4* drawTransform, const Rect& localClip, in getShadowTask() argument
395 precacheShadows(drawTransform, localClip, opaque, casterPerimeter, in getShadowTask()
DShadowTessellator.cpp34 const Rect& localClip, float maxZ, VertexBuffer& shadowVertexBuffer) { in tessellateAmbientShadow() argument
49 if (!localClip.intersects(ambientShadowBounds)) { in tessellateAmbientShadow()
64 const Rect& casterBounds, const Rect& localClip, VertexBuffer& shadowVertexBuffer) { in tessellateSpotShadow() argument
99 lightRect.unionWith(localClip); in tessellateSpotShadow()
DShadowTessellator.h74 const Rect& localClip, float maxZ, VertexBuffer& shadowVertexBuffer);
79 const Rect& casterBounds, const Rect& localClip, VertexBuffer& shadowVertexBuffer);
DBakedOpState.cpp54 recordedOp.localClip, *(snapshot.transform)); in ResolvedRenderState()
86 const Matrix4& localTransform, const ClipBase* localClip) { in ResolvedRenderState() argument
88 clipState = snapshot.serializeIntersectedClip(allocator, localClip, *(snapshot.transform)); in ResolvedRenderState()
DBakedOpState.h60 const Matrix4& localTransform, const ClipBase* localClip);
151 : computedState(allocator, snapshot, recordedOp.localMatrix, recordedOp.localClip) in BakedOpState()
DSnapshot.cpp91 void Snapshot::clip(const Rect& localClip, SkRegion::Op op) { in clip() argument
93 mClipArea->clipRectWithTransform(localClip, transform, op); in clip()
DFrameBuilder.cpp541 mCanvasState.writableSnapshot()->applyClip(op.localClip, in deferRenderNodeOpImpl()
639 op.localClip, in deferVectorDrawableOp()
656 op.localClip, in deferCirclePropsOp()
731 op.localClip, in deferRoundRectPropsOp()
926 beginLayerOp.localClip, in deferEndLayerOp()
DSnapshot.h128 void clip(const Rect& localClip, SkRegion::Op op);
DRecordingCanvas.cpp609 if (op->localClip && op->localClip->rect.isEmpty()) { in addOp()
DBakedOpDispatcher.cpp800 RectOp rectOp(op.unmappedBounds, op.localMatrix, op.localClip, &paint); in renderRectForLayer()
/frameworks/base/libs/hwui/tests/unit/
DRecordingCanvasTests.cpp67 EXPECT_CLIP_RECT(Rect(100, 100), dl->getOps()[0]->localClip); in TEST()
68 EXPECT_CLIP_RECT(Rect(100, 100), dl->getOps()[1]->localClip); in TEST()
69 EXPECT_EQ(dl->getOps()[0]->localClip, dl->getOps()[1]->localClip) in TEST()
125 EXPECT_EQ(nullptr, op.localClip); in TEST()
159 EXPECT_EQ(nullptr, op.localClip); in TEST()
237 EXPECT_EQ(nullptr, op.localClip); in TEST()
273 EXPECT_EQ(nullptr, op.localClip); in TEST()
282 EXPECT_EQ(nullptr, op.localClip); in TEST()
322 EXPECT_EQ(nullptr, op.localClip); in TEST()
327 EXPECT_CLIP_RECT(Rect(180, 160), op.localClip); in TEST()
[all …]
DOpDumperTests.cpp38 op.localClip = &clipRect; in TEST()
DFrameBuilderTests.cpp2190 EXPECT_TRUE(op.localClip->intersectWithRoot); in RENDERTHREAD_TEST()
/frameworks/base/libs/hwui/tests/microbench/
DShadowBench.cpp34 Rect localClip; member
65 out->localClip = SAMPLE_CLIP; in createShadowTestData()
74 tessellateShadows(&testData.drawTransform, &testData.localClip, in tessellateShadows()