summaryrefslogtreecommitdiff
path: root/libs/hwui/ProfileData.cpp
diff options
context:
space:
mode:
author Chet Haase <chet@google.com> 2021-09-27 20:56:08 +0000
committer Chet Haase <chet@google.com> 2021-12-14 21:43:05 +0000
commit33c1ea73e869e68b793ae9a21c2d8ea41e9f1c9a (patch)
treec4e3f4b0bd305e7aee025519c0b48a18576189e6 /libs/hwui/ProfileData.cpp
parent1544cd3cd23cd67f5d683edf89a26163dae63ed0 (diff)
Enable path clipping for View outlines
Clipping Views to Outlines has existed for several releases, as has providing a Path for shaping Oulines. However, using a Path-shaped Outline to clip a View against was specifically disabled internally, due to historical functionality limitations (prior to enabling Skia for HWUI rendering) as well as performance concerns. On current (even relatively low-end) hardware, path clipping is now sufficiently performant that we are enabling this functionality. This functionality will be used by AndroidX APIs that enable easier shaping via paths. Bug: 201807515 Test: Manual testing including hwui performance tests and CTS OutlineTest Change-Id: Ic61d9393cb72c6ad3517954177e5037a383a0c4d
Diffstat (limited to 'libs/hwui/ProfileData.cpp')
-rw-r--r--libs/hwui/ProfileData.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/ProfileData.cpp b/libs/hwui/ProfileData.cpp
index dd8439647fd3..3d0ca0a10851 100644
--- a/libs/hwui/ProfileData.cpp
+++ b/libs/hwui/ProfileData.cpp
@@ -137,6 +137,7 @@ void ProfileData::dump(int fd) const {
histogramGPUForEach([fd](HistogramEntry entry) {
dprintf(fd, " %ums=%u", entry.renderTimeMs, entry.frameCount);
});
+ dprintf(fd, "\n");
}
uint32_t ProfileData::findPercentile(int percentile) const {