1/* 2 * Copyright 2020, The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17export class Chip { 18 short: string; 19 long: string; 20 type: string; 21 22 constructor(short: string, long: string, type: string) { 23 this.short = short; 24 this.long = long; 25 this.type = type; 26 } 27} 28 29export const VISIBLE_CHIP = new Chip('V', 'visible', 'default'); 30 31export const RELATIVE_Z_CHIP = new Chip('RelZ', 'Is relative Z-ordered to another surface', 'warn'); 32 33export const RELATIVE_Z_PARENT_CHIP = new Chip( 34 'RelZParent', 35 'Something is relative Z-ordered to this surface', 36 'warn' 37); 38 39export const MISSING_LAYER = new Chip( 40 'MissingLayer', 41 'This layer was referenced from the parent, but not present in the trace', 42 'error' 43); 44 45export const GPU_CHIP = new Chip('GPU', 'This layer was composed on the GPU', 'gpu'); 46 47export const HWC_CHIP = new Chip('HWC', 'This layer was composed by Hardware Composer', 'hwc'); 48