Home
last modified time | relevance | path

Searched refs:clippedBounds (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/libs/hwui/tests/unit/
DBakedOpStateTests.cpp41 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 __anon460eaaef0102()
106 EXPECT_TRUE(state.clippedBounds.contains(49.5f, 49.5f, 150.5f, 150.5f)); in __anon460eaaef0202()
107 EXPECT_TRUE(Rect(49, 49, 151, 151).contains(state.clippedBounds)); in __anon460eaaef0202()
112 EXPECT_EQ(Rect(40, 40, 160, 160), state.clippedBounds); in __anon460eaaef0302()
119 EXPECT_EQ(Rect(149.5f, 149.5f, 200, 200), state.clippedBounds); in __anon460eaaef0402()
125 EXPECT_TRUE(state.clippedBounds.contains(149.5f, 149.5f, 200, 200)); in __anon460eaaef0502()
126 EXPECT_TRUE(Rect(149, 149, 200, 200).contains(state.clippedBounds)); in __anon460eaaef0502()
131 EXPECT_TRUE(state.clippedBounds.contains(120, 120, 200, 200)); in __anon460eaaef0602()
[all …]
DFrameBuilderTests.cpp153 EXPECT_EQ(Rect(45, 45, 55, 55), state.computedState.clippedBounds) in RENDERTHREAD_TEST()
231 EXPECT_EQ(Rect(5, 10, 55, 60), state.computedState.clippedBounds); in RENDERTHREAD_TEST()
256 const Rect& clippedBounds = state.computedState.clippedBounds; in RENDERTHREAD_TEST() local
261 EXPECT_EQ(Rect(600, 100, 700, 500), clippedBounds); in RENDERTHREAD_TEST()
266 EXPECT_EQ(Rect(100, 400, 600, 500), clippedBounds); in RENDERTHREAD_TEST()
271 EXPECT_EQ(Rect(100, 100, 700, 500), clippedBounds); in RENDERTHREAD_TEST()
276 EXPECT_EQ(Rect(0, 0, 800, 200), clippedBounds); in RENDERTHREAD_TEST()
565 Rect fill = opList.states[0]->computedState.clippedBounds; in RENDERTHREAD_TEST()
566 Rect stroke = opList.states[1]->computedState.clippedBounds; in RENDERTHREAD_TEST()
567 EXPECT_EQ(stroke, opList.states[2]->computedState.clippedBounds) in RENDERTHREAD_TEST()
[all …]
/frameworks/base/libs/hwui/
DBakedOpState.cpp39 clippedBounds = recordedOp.unmappedBounds; in ResolvedRenderState()
42 clippedBounds.outset(recordedOp.paint->getStrokeWidth() * 0.5f); in ResolvedRenderState()
44 transform.mapRect(clippedBounds); in ResolvedRenderState()
49 clippedBounds.outset(0.5f); in ResolvedRenderState()
58 if (CC_UNLIKELY(clipRect.isEmpty() || !clippedBounds.intersects(clipRect))) { in ResolvedRenderState()
64 clippedBounds.setEmpty(); in ResolvedRenderState()
67 clipSideFlags = computeClipSideFlags(clipRect, clippedBounds); in ResolvedRenderState()
68 clippedBounds.doIntersect(clipRect); in ResolvedRenderState()
89 clippedBounds = clipState->rect; in ResolvedRenderState()
97 , clippedBounds(clipState->rect) in ResolvedRenderState()
[all …]
DLayerBuilder.cpp34 mBounds = op->computedState.clippedBounds; in BatchBase()
42 if (rect.intersects(op->computedState.clippedBounds)) { in intersects()
72 mBounds.unionWith(op->computedState.clippedBounds); in batchOp()
132 if (intersects(op->computedState.clippedBounds)) return false; in canMergeWith()
156 const Rect& opBounds = op->computedState.clippedBounds; in canMergeWith()
184 mBounds.unionWith(op->computedState.clippedBounds); in mergeOp()
212 void LayerBuilder::locateInsertIndex(int batchId, const Rect& clippedBounds, in locateInsertIndex() argument
225 if (overBatch->intersects(clippedBounds)) { in locateInsertIndex()
247 && bakedState->computedState.clippedBounds.contains(repaintRect) in onDeferOp()
294 locateInsertIndex(batchId, op->computedState.clippedBounds, in deferUnmergeableOp()
[all …]
DLayerBuilder.h85 void locateInsertIndex(int batchId, const Rect& clippedBounds,
DBakedOpState.h93 Rect clippedBounds; variable
DBakedOpRenderer.h81 renderGlop(&state.computedState.clippedBounds, in renderGlop()
DBakedOpDispatcher.cpp838 *(op.layerHandle) = renderer.copyToLayer(state.computedState.clippedBounds); in onCopyToLayerOp()
844 if (!state.computedState.clippedBounds.isEmpty()) { in onCopyFromLayerOp()
850 … RectOp rectOp(state.computedState.clippedBounds, Matrix4::identity(), nullptr, &layerPaint); in onCopyFromLayerOp()
862 .setModelViewMapUnitToRect(state.computedState.clippedBounds) in onCopyFromLayerOp()
DBakedOpRenderer.cpp356 prepareRender(&state.computedState.clippedBounds, state.computedState.getClipIfNeeded()); in renderFunctor()
DOpenGLRenderer.cpp1110 Rect clippedBounds(state.mBounds); in storeDisplayState() local
1115 clippedBounds.doIntersect(currentClip); in storeDisplayState()
1116 if (clippedBounds.isEmpty()) { in storeDisplayState()
1130 state.mBounds.set(clippedBounds); in storeDisplayState()