summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jordan Demeulenaere <jdemeulenaere@google.com> 2025-02-03 06:37:08 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2025-02-03 06:37:08 -0800
commitaf9d3ada1b43416f4596aa7b3a5981525e3ca845 (patch)
tree24aecd95cb6953e8aafddbb2071d5d70e702f82c
parent44f195a46a8f72e8eb93610e828d034c17a7a912 (diff)
parentdebf1d0321025e7382efda6c397cf73a4e534ee3 (diff)
Merge "Remove Modifier.measureTracer {}" into main
-rw-r--r--packages/SystemUI/compose/core/src/com/android/compose/modifiers/MeasureTracing.kt32
1 files changed, 0 insertions, 32 deletions
diff --git a/packages/SystemUI/compose/core/src/com/android/compose/modifiers/MeasureTracing.kt b/packages/SystemUI/compose/core/src/com/android/compose/modifiers/MeasureTracing.kt
deleted file mode 100644
index 9ce6cd11a2b0..000000000000
--- a/packages/SystemUI/compose/core/src/com/android/compose/modifiers/MeasureTracing.kt
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (C) 2024 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.android.compose.modifiers
-
-import androidx.compose.ui.Modifier
-import androidx.compose.ui.layout.layout
-import androidx.compose.ui.unit.IntOffset
-import com.android.app.tracing.traceSection
-
-/** Adds perfetto markers for the measure + layout stages. */
-inline fun Modifier.measureTracer(crossinline traceNameProducer: () -> String): Modifier {
- return layout { measurable, constraints ->
- traceSection(traceNameProducer) {
- val placeable = measurable.measure(constraints)
- layout(placeable.width, placeable.height) { placeable.placeRelative(IntOffset.Zero) }
- }
- }
-}