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 17import Chip from "./Chip" 18import ChipType from "./ChipType" 19 20export const VISIBLE_CHIP = new Chip("V", "visible", ChipType.DEFAULT) 21 22export const RELATIVE_Z_CHIP = { 23 short: 'RelZ', 24 long: 'Is relative Z-ordered to another surface', 25 class: 'warn', 26}; 27 28export const RELATIVE_Z_PARENT_CHIP = { 29 short: 'RelZParent', 30 long: 'Something is relative Z-ordered to this surface', 31 class: 'warn', 32}; 33 34export const MISSING_LAYER = { 35 short: 'MissingLayer', 36 long: 'This layer was referenced from the parent, but not present in the trace', 37 class: 'error', 38}; 39 40export const GPU_CHIP = { 41 short: 'GPU', 42 long: 'This layer was composed on the GPU', 43 class: 'gpu', 44}; 45 46export const HWC_CHIP = { 47 short: 'HWC', 48 long: 'This layer was composed by Hardware Composer', 49 class: 'hwc', 50};