summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorStan Iliev <stani@google.com>2020-02-18 10:12:42 -0500
committerStan Iliev <stani@google.com>2020-02-18 10:12:42 -0500
commitb65171956c846031517c709ec0726c99a2bc5962 (patch)
tree3089bc71a8c519b902a8e81a9f66e7b7511b52bb /libs
parent6fb74aeefcf8c9298d165ff200ba6a1d5dec8f89 (diff)
downloadbase-b65171956c846031517c709ec0726c99a2bc5962.tar.gz
Update GraphicsStats proto definition
Follow ProtoBestPractices and comments suggested by cl/295218381. Changing proto definition, should be fine, because these are fields added after the last Android release. Move PipelineType enum inside GraphicsStats and add a default UNKNOWN state. Rename start_millis and end_millis in GraphicsStats atom. Fields in GraphicsStatsProto cannot be renamed as these were part of previous Android releases. Test: Ran "adb shell cmd stats pull-source 10068" Test: Ran "statsd_testdrive 10068" and it looks OK Bug: 149646555 Change-Id: Idc326eb2a7eb9ff0be39026e6fec544491b7d8a6
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/protos/graphicsstats.proto5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/hwui/protos/graphicsstats.proto b/libs/hwui/protos/graphicsstats.proto
index dd5676c9c961..745393ce1a3d 100644
--- a/libs/hwui/protos/graphicsstats.proto
+++ b/libs/hwui/protos/graphicsstats.proto
@@ -30,8 +30,9 @@ message GraphicsStatsServiceDumpProto {
message GraphicsStatsProto {
enum PipelineType {
- GL = 0;
- VULKAN = 1;
+ UNKNOWN = 0;
+ GL = 1;
+ VULKAN = 2;
}
// The package name of the app