aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-08-28 20:34:26 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-08-28 20:34:26 +0000
commitb8fd6ac5fce242860253a14de77e9902e8dbbe5b (patch)
treea068e7300b95ad1d4318d445fa2a5105c6416cbb
parent9c4037ea0f271b3d27eb51c1c0b4694fb2377d47 (diff)
parent7324bdbb1ee618a6fca7aa3a99bb9340b73bfdf9 (diff)
downloadcdd-b8fd6ac5fce242860253a14de77e9902e8dbbe5b.tar.gz
Merge "CDD: Handheld: Require the report for GPU profiling" into rvc-dev am: 7324bdbb1e
Original change: https://googleplex-android-review.googlesource.com/c/platform/compatibility/cdd/+/11298602 Change-Id: I0b417779759f13a7434aca901c7a26b6f2e33a89
-rw-r--r--2_device-types/2_2_handheld-reqs.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/2_device-types/2_2_handheld-reqs.md b/2_device-types/2_2_handheld-reqs.md
index 2ab7427..00930b0 100644
--- a/2_device-types/2_2_handheld-reqs.md
+++ b/2_device-types/2_2_handheld-reqs.md
@@ -59,6 +59,27 @@ displays through [`Configuration.isScreenHdr()`
Handheld device implementations:
+* [[7.1](#7_1_display_and_graphics).4.6/H-0-1] MUST report whether the device
+ supports the GPU profiling capability via a system property
+ `graphics.gpu.profiler.support`.
+
+If Handheld device implementations declare support via a system property
+`graphics.gpu.profiler.support`, they:
+
+* [[7.1](#7_1_display_and_graphics).4.6/H-1-1] MUST report as output a
+ protobuf trace that complies with the schema for GPU counters and GPU
+ renderstages defined in the [Perfetto documentation](https://developer.android.com/studio/command-line/perfetto).
+* [[7.1](#7_1_display_and_graphics).4.6/H-1-2] MUST report conformant values
+ for the device’s GPU counters following the
+ [gpu counter trace packet proto](https://android.googlesource.com/platform/external/perfetto/+/refs/heads/master/protos/perfetto/trace/gpu/gpu_counter_event.proto).
+* [[7.1](#7_1_display_and_graphics).4.6/H-1-3] MUST report conformant values
+ for the device’s GPU RenderStages following the
+ [render stage trace packet proto](https://android.googlesource.com/platform/external/perfetto/+/refs/heads/master/protos/perfetto/trace/gpu/gpu_render_stage_event.proto).
+* [[7.1](#7_1_display_and_graphics).4.6/H-1-4] MUST report a GPU Frequency
+ tracepoint as specified by the format: [power/gpu_frequency](https://android.googlesource.com/platform/external/perfetto/+/refs/heads/master/protos/perfetto/trace/ftrace/power.proto).
+
+Handheld device implementations:
+
* [[7.1](#7_1_display_and_graphics).5/H-0-1] MUST include support for legacy
application compatibility mode as implemented by the upstream Android open
source code. That is, device implementations MUST NOT alter the triggers or