/frameworks/base/libs/hwui/ |
D | BakedOpState.cpp | 40 clippedBounds = recordedOp.unmappedBounds; in ResolvedRenderState() 43 clippedBounds.outset(recordedOp.paint->getStrokeWidth() * 0.5f); in ResolvedRenderState() 45 clippedBounds.outset(1); in ResolvedRenderState() 47 transform.mapRect(clippedBounds); in ResolvedRenderState() 52 clippedBounds.outset(0.5f); in ResolvedRenderState() 61 if (CC_UNLIKELY(clipRect.isEmpty() || !clippedBounds.intersects(clipRect))) { in ResolvedRenderState() 67 clippedBounds.setEmpty(); in ResolvedRenderState() 70 clipSideFlags = computeClipSideFlags(clipRect, clippedBounds); in ResolvedRenderState() 71 clippedBounds.doIntersect(clipRect); in ResolvedRenderState() 92 clippedBounds = clipState->rect; in ResolvedRenderState() [all …]
|
D | LayerBuilder.cpp | 33 mBounds = op->computedState.clippedBounds; in BatchBase() 41 if (rect.intersects(op->computedState.clippedBounds)) { in intersects() 70 mBounds.unionWith(op->computedState.clippedBounds); in batchOp() 126 if (intersects(op->computedState.clippedBounds)) return false; in canMergeWith() 151 const Rect& opBounds = op->computedState.clippedBounds; in canMergeWith() 182 mBounds.unionWith(op->computedState.clippedBounds); in mergeOp() 210 void LayerBuilder::locateInsertIndex(int batchId, const Rect& clippedBounds, in locateInsertIndex() argument 223 if (overBatch->intersects(clippedBounds)) { in locateInsertIndex() 245 bakedState->computedState.clippedBounds.contains(repaintRect) && in onDeferOp() 291 locateInsertIndex(batchId, op->computedState.clippedBounds, (BatchBase**)(&targetBatch), in deferUnmergeableOp() [all …]
|
D | LayerBuilder.h | 86 void locateInsertIndex(int batchId, const Rect& clippedBounds, BatchBase** targetBatch,
|
D | BakedOpState.h | 90 Rect clippedBounds; variable
|
D | BakedOpRenderer.h | 79 renderGlop(&state.computedState.clippedBounds, state.computedState.getClipIfNeeded(), glop); in renderGlop()
|
D | BakedOpDispatcher.cpp | 845 *(op.layerHandle) = renderer.copyToLayer(state.computedState.clippedBounds); in onCopyToLayerOp() 852 if (!state.computedState.clippedBounds.isEmpty()) { in onCopyFromLayerOp() 858 RectOp rectOp(state.computedState.clippedBounds, Matrix4::identity(), nullptr, in onCopyFromLayerOp() 871 .setModelViewMapUnitToRect(state.computedState.clippedBounds) in onCopyFromLayerOp()
|
D | BakedOpRenderer.cpp | 359 prepareRender(&state.computedState.clippedBounds, state.computedState.getClipIfNeeded()); in renderFunctor()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | BakedOpStateTests.cpp | 41 EXPECT_EQ(Rect(40, 60, 100, 200), state.clippedBounds); // translated and also clipped in TEST() 57 EXPECT_EQ(Rect(50, 80, 100, 200), state.clippedBounds); in TEST() 101 EXPECT_EQ(Rect(49.5f, 49.5f, 150.5f, 150.5f), state.clippedBounds); in __anon4a28d76a0102() 105 EXPECT_TRUE(state.clippedBounds.contains(49.5f, 49.5f, 150.5f, 150.5f)); in __anon4a28d76a0202() 106 EXPECT_TRUE(Rect(49, 49, 151, 151).contains(state.clippedBounds)); in __anon4a28d76a0202() 110 EXPECT_EQ(Rect(40, 40, 160, 160), state.clippedBounds); in __anon4a28d76a0302() 116 EXPECT_EQ(Rect(149.5f, 149.5f, 200, 200), state.clippedBounds); in __anon4a28d76a0402() 121 EXPECT_TRUE(state.clippedBounds.contains(149.5f, 149.5f, 200, 200)); in __anon4a28d76a0502() 122 EXPECT_TRUE(Rect(149, 149, 200, 200).contains(state.clippedBounds)); in __anon4a28d76a0502() 126 EXPECT_TRUE(state.clippedBounds.contains(120, 120, 200, 200)); in __anon4a28d76a0602() [all …]
|
D | FrameBuilderTests.cpp | 150 EXPECT_EQ(Rect(45, 45, 55, 55), state.computedState.clippedBounds) in RENDERTHREAD_OPENGL_PIPELINE_TEST() 176 EXPECT_EQ(Rect(25, 25, 175, 175), state.computedState.clippedBounds); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 257 EXPECT_EQ(Rect(5, 10, 55, 60), state.computedState.clippedBounds); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 282 const Rect& clippedBounds = state.computedState.clippedBounds; in RENDERTHREAD_OPENGL_PIPELINE_TEST() local 287 EXPECT_EQ(Rect(600, 100, 700, 500), clippedBounds); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 292 EXPECT_EQ(Rect(100, 400, 600, 500), clippedBounds); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 297 EXPECT_EQ(Rect(100, 100, 700, 500), clippedBounds); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 302 EXPECT_EQ(Rect(0, 0, 800, 200), clippedBounds); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 637 Rect fill = opList.states[0]->computedState.clippedBounds; in RENDERTHREAD_OPENGL_PIPELINE_TEST() 638 Rect stroke = opList.states[1]->computedState.clippedBounds; in RENDERTHREAD_OPENGL_PIPELINE_TEST() [all …]
|