Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/
DOpDumper.cpp37 if (op.localClip && in dump()
38 (!op.localClip->rect.contains(localBounds) || op.localClip->intersectWithRoot)) { in dump()
39 output << std::fixed << std::setprecision(0) << " clip=" << op.localClip->rect in dump()
40 << " mode=" << (int)op.localClip->mode; in dump()
42 if (op.localClip->intersectWithRoot) { in dump()
DRecordedOp.h151 const Rect &unmappedBounds, const Matrix4 &localMatrix, const ClipBase *localClip, \
154 const Rect &unmappedBounds, const Matrix4 &localMatrix, const ClipBase *localClip
155 #define SUPER(Type) RecordedOp(RecordedOpId::Type, unmappedBounds, localMatrix, localClip, paint)
157 RecordedOp(RecordedOpId::Type, unmappedBounds, localMatrix, localClip, nullptr)
170 const ClipBase* localClip; member
180 , localClip(localClip) in RecordedOp()
242 CirclePropsOp(const Matrix4& localMatrix, const ClipBase* localClip, const SkPaint* paint, in CirclePropsOp()
244 : RecordedOp(RecordedOpId::CirclePropsOp, Rect(), localMatrix, localClip, paint) in CirclePropsOp()
255 ColorOp(const ClipBase* localClip, int color, SkBlendMode mode) in ColorOp()
256 : RecordedOp(RecordedOpId::ColorOp, Rect(), Matrix4::identity(), localClip, nullptr) in ColorOp()
[all …]
DTessellationCache.h92 ShadowTask(const Matrix4* drawTransform, const Rect& localClip, bool opaque, in ShadowTask() argument
96 , localClip(localClip) in ShadowTask()
112 const Rect localClip; variable
162 sp<ShadowTask> getShadowTask(const Matrix4* drawTransform, const Rect& localClip, bool opaque,
174 void precacheShadows(const Matrix4* drawTransform, const Rect& localClip, bool opaque,
219 void tessellateShadows(const Matrix4* drawTransform, const Rect* localClip, bool isCasterOpaque,
DShadowTessellator.cpp33 const Rect& casterBounds, const Rect& localClip, in tessellateAmbientShadow() argument
49 if (!localClip.intersects(ambientShadowBounds)) { in tessellateAmbientShadow()
64 const Rect& casterBounds, const Rect& localClip, in tessellateSpotShadow() argument
99 lightRect.unionWith(localClip); in tessellateSpotShadow()
DTessellationCache.cpp200 void tessellateShadows(const Matrix4* drawTransform, const Rect* localClip, bool isCasterOpaque, in tessellateShadows() argument
251 centroid3d, casterBounds, *localClip, maxZ, in tessellateShadows()
256 casterBounds, *localClip, spotBuffer); in tessellateShadows()
269 tessellateShadows(&t->drawTransform, &t->localClip, t->opaque, &t->casterPerimeter, in onProcess()
343 void TessellationCache::precacheShadows(const Matrix4* drawTransform, const Rect& localClip, in precacheShadows() argument
350 sp<ShadowTask> task = new ShadowTask(drawTransform, localClip, opaque, casterPerimeter, in precacheShadows()
361 const Matrix4* drawTransform, const Rect& localClip, bool opaque, in getShadowTask() argument
367 precacheShadows(drawTransform, localClip, opaque, casterPerimeter, transformXY, transformZ, in getShadowTask()
DShadowTessellator.h73 const Rect& casterBounds, const Rect& localClip, float maxZ,
80 const Rect& localClip, VertexBuffer& shadowVertexBuffer);
DBakedOpState.cpp56 clipState = snapshot.serializeIntersectedClip(allocator, recordedOp.localClip, in ResolvedRenderState()
89 const Matrix4& localTransform, const ClipBase* localClip) { in ResolvedRenderState() argument
91 clipState = snapshot.serializeIntersectedClip(allocator, localClip, *(snapshot.transform)); in ResolvedRenderState()
DBakedOpState.h61 const Matrix4& localTransform, const ClipBase* localClip);
150 : computedState(allocator, snapshot, recordedOp.localMatrix, recordedOp.localClip) in BakedOpState()
DSnapshot.cpp75 void Snapshot::clip(const Rect& localClip, SkClipOp op) { in clip() argument
77 mClipArea->clipRectWithTransform(localClip, transform, static_cast<SkRegion::Op>(op)); in clip()
DSnapshot.h108 void clip(const Rect& localClip, SkClipOp op);
DFrameBuilder.cpp530 mCanvasState.writableSnapshot()->applyClip(op.localClip, in deferRenderNodeOpImpl()
629 op.unmappedBounds, op.localMatrix, op.localClip, paint, &bitmap, in deferVectorDrawableOp()
642 op.localClip, op.paint); in deferCirclePropsOp()
714 Rect(*(op.left), *(op.top), *(op.right), *(op.bottom)), op.localMatrix, op.localClip, in deferRoundRectPropsOp()
903 beginLayerOp.unmappedBounds, localMatrix, beginLayerOp.localClip, beginLayerOp.paint, in deferEndLayerOp()
DRecordingCanvas.cpp582 if (op->localClip && op->localClip->rect.isEmpty()) { in addOp()
DBakedOpDispatcher.cpp804 RectOp rectOp(op.unmappedBounds, op.localMatrix, op.localClip, &paint); in renderRectForLayer()
/frameworks/base/libs/hwui/tests/unit/
DRecordingCanvasTests.cpp74 EXPECT_CLIP_RECT(Rect(100, 100), dl->getOps()[0]->localClip); in OPENGL_PIPELINE_TEST()
75 EXPECT_CLIP_RECT(Rect(100, 100), dl->getOps()[1]->localClip); in OPENGL_PIPELINE_TEST()
76 EXPECT_EQ(dl->getOps()[0]->localClip, dl->getOps()[1]->localClip) in OPENGL_PIPELINE_TEST()
152 EXPECT_EQ(nullptr, op.localClip); in OPENGL_PIPELINE_TEST()
185 EXPECT_EQ(nullptr, op.localClip); in OPENGL_PIPELINE_TEST()
271 EXPECT_EQ(nullptr, op.localClip); in OPENGL_PIPELINE_TEST()
306 EXPECT_EQ(nullptr, op.localClip); in OPENGL_PIPELINE_TEST()
315 EXPECT_EQ(nullptr, op.localClip); in OPENGL_PIPELINE_TEST()
354 EXPECT_EQ(nullptr, op.localClip); in OPENGL_PIPELINE_TEST()
359 EXPECT_CLIP_RECT(Rect(180, 160), op.localClip); in OPENGL_PIPELINE_TEST()
[all …]
DOpDumperTests.cpp38 op.localClip = &clipRect; in TEST()
DFrameBuilderTests.cpp2314 EXPECT_TRUE(op.localClip->intersectWithRoot); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
/frameworks/base/libs/hwui/tests/microbench/
DShadowBench.cpp34 Rect localClip; member
56 out->localClip = SAMPLE_CLIP; in createShadowTestData()
65 tessellateShadows(&testData.drawTransform, &testData.localClip, opaque, &shape, in tessellateShadows()