chromium/tools/metrics/histograms/metadata/compositing/enums.xml

<!--
Copyright 2023 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<!--

This file describes the enumerations referenced by entries in histograms.xml for
this directory. Some enums may instead be listed in the central enums.xml file
at src/tools/metrics/histograms/enums.xml when multiple files use them.

For best practices on writing enumerations descriptions, see
https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/metrics/histograms/README.md#Enum-Histograms

Please follow the instructions in the OWNERS file in this directory to find a
reviewer. If no OWNERS file exists, please consider signing up at
go/reviewing-metrics (Googlers only), as all subdirectories are expected to
have an OWNERS file. As a last resort you can send the CL to
[email protected].
-->

<histogram-configuration>

<!-- Enum types -->

<enums>

<enum name="AttemptingMultipleOverlays">
  <int value="0" label="Yes"/>
  <int value="1" label="No, feature is disabled"/>
  <int value="2" label="No, candidate requires an overlay"/>
  <int value="3" label="No, candidate uses an unsupported strategy"/>
</enum>

<enum name="BufferFormat">
  <summary>The possible format of buffers. See ui/gfx/buffer_types.h.</summary>
  <int value="0" label="R_8"/>
  <int value="1" label="R_16"/>
  <int value="2" label="RG_88"/>
  <int value="3" label="RG_1616"/>
  <int value="4" label="BGR_565"/>
  <int value="5" label="RGBA_4444"/>
  <int value="6" label="RGBX_8888"/>
  <int value="7" label="RGBA_8888"/>
  <int value="8" label="BGRX_8888"/>
  <int value="9" label="BGRA_1010102"/>
  <int value="10" label="RGBA_1010102"/>
  <int value="11" label="BGRA_8888"/>
  <int value="12" label="RGBA_F16"/>
  <int value="13" label="YVU_420"/>
  <int value="14" label="YUV_420_BIPLANAR"/>
  <int value="15" label="YUVA_420_TRIPLANAR"/>
  <int value="16" label="P010"/>
</enum>

<enum name="CALayerResult">
  <int value="0" label="Success"/>
  <int value="1" label="Unknown failure"/>
  <int value="2" label="IOSurface resource not overlay candidate"/>
  <int value="3" label="StreamVideo resource not overlay candidate"/>
  <int value="4" label="StreamVideo texture not identity"/>
  <int value="5" label="Texture resource not overlay candidate"/>
  <int value="6" label="Texture resource Y flipping not supported"/>
  <int value="7" label="Tile resource not overlay candidate"/>
  <int value="8" label="Unsupported quad blend mode"/>
  <int value="9" label="Unsupported quad transform"/>
  <int value="10" label="Unsupported quad clipping"/>
  <int value="11" label="DebugBorder quads not supported"/>
  <int value="12" label="PictureContent quads not supported"/>
  <int value="13" label="RenderPass quads not supported"/>
  <int value="14" label="SurfaceContent quads not supported"/>
  <int value="15" label="YUVVideo quads not supported"/>
  <int value="16"
      label="Different clip settings in a sorting context is not supported"/>
  <int value="17"
      label="Different vertex opacities for a single texture is not supported"/>
  <int value="18" label="RenderPassDrawQuad has a filter scale"/>
  <int value="19" label="RenderPassDrawQuad has background filters"/>
  <int value="20" label="RenderPassDrawQuad has a mask"/>
  <int value="21" label="RenderPassDrawQuad has unconvertable filters"/>
  <int value="22" label="RenderPassDrawQuad has a sorting context id"/>
  <int value="23" label="Too many RenderPassDrawQuads"/>
  <int value="24" label="Unsupported rounded corner rect"/>
  <int value="25" label="Rounded rect doesn't match clip rect"/>
  <int value="26" label="Rounded rect doesn't have uniform corner radii"/>
  <int value="27" label="Too many quads"/>
  <int value="28" label="YUVVideoDrawQuad not overlay candidate"/>
  <int value="29" label="YUVVideoDrawQuad Y/UV coordinates mismatch"/>
  <int value="30" label="YUVVideoDrawQuad has invalid planes"/>
  <int value="31" label="Has copy requests"/>
  <int value="32" label="Overlay disabled"/>
  <int value="33" label="Video capture enabled"/>
  <int value="34" label="Did not swap (Not for histogram)"/>
  <int value="35" label="No widget (Not for histogram)"/>
</enum>

<enum name="ColorGamut">
  <int value="0" label="sRGB"/>
  <int value="1" label="Wide Color Gamut"/>
  <int value="2" label="HDR"/>
</enum>

<enum name="ColorSpacePrimaryID">
  <summary>
    The possible color space primary ID. See ui/gfx/color_space.h.
  </summary>
  <int value="0" label="INVALID"/>
  <int value="1" label="BT709"/>
  <int value="2" label="BT470M"/>
  <int value="3" label="BT470BG"/>
  <int value="4" label="SMPTE170M"/>
  <int value="5" label="SMPTE240M"/>
  <int value="6" label="FILM"/>
  <int value="7" label="BT2020"/>
  <int value="8" label="SMPTEST428_1"/>
  <int value="9" label="SMPTEST431_2"/>
  <int value="10" label="P3"/>
  <int value="11" label="XYZ_D50"/>
  <int value="12" label="ADOBE_RGB"/>
  <int value="13" label="APPLE_GENERIC_RGB"/>
  <int value="14" label="WIDE_GAMUT_COLOR_SPIN"/>
  <int value="15" label="CUSTOM"/>
  <int value="16" label="EBU_3213_E"/>
</enum>

<enum name="ColorSpaceTransferID">
  <summary>
    The possible color space transfer ID. See ui/gfx/color_space.h.
  </summary>
  <int value="0" label="INVALID"/>
  <int value="1" label="BT709"/>
  <int value="2" label="BT709_APPLE"/>
  <int value="3" label="GAMMA18"/>
  <int value="4" label="GAMMA22"/>
  <int value="5" label="GAMMA24"/>
  <int value="6" label="GAMMA28"/>
  <int value="7" label="SMPTE170M"/>
  <int value="8" label="SMPTE240M"/>
  <int value="9" label="LINEAR"/>
  <int value="10" label="LOG"/>
  <int value="11" label="LOG_SQRT"/>
  <int value="12" label="IEC61966_2_4"/>
  <int value="13" label="BT1361_ECG"/>
  <int value="14" label="SRGB"/>
  <int value="15" label="BT2020_10"/>
  <int value="16" label="BT2020_12"/>
  <int value="17" label="PQ"/>
  <int value="18" label="SMPTEST428_1"/>
  <int value="19" label="HLG"/>
  <int value="20" label="SRGB_HDR"/>
  <int value="21" label="LINEAR_HDR"/>
  <int value="22" label="CUSTOM"/>
  <int value="23" label="CUSTOM_HDR"/>
  <int value="24" label="PIECEWISE_HDR"/>
  <int value="25" label="SCRGB_LINEAR_80_NITS"/>
</enum>

<enum name="FrameReportType">
  <int value="0" label="Presented Frame"/>
  <int value="1" label="Missed Deadline Frame"/>
  <int value="2" label="Dropped Frame"/>
  <int value="3" label="Compositor Only Frame"/>
</enum>

<enum name="LCDTextDisallowedReason">
  <int value="0" label="None"/>
  <int value="1" label="Setting"/>
  <int value="2" label="Background color not opaque"/>
  <int value="3" label="Other contents not opaque"/>
  <int value="4" label="Non-integral translation"/>
  <int value="5" label="Non-integral x offset"/>
  <int value="6" label="Non-integral y offset"/>
  <int value="7" label="Will-change: transform"/>
  <int value="8" label="Pixel or color effect"/>
  <int value="9" label="Transform animation"/>
  <int value="10" label="No text"/>
</enum>

<enum name="PageFlipResult">
  <int value="0" label="Success">
    Indicates that the page flip was committed successfully.
  </int>
  <int value="1" label="Failed plane assignment">
    Indicates that the page flip failed because we could not assign planes.
  </int>
  <int value="2" label="Failed commit">
    Indicates that we assigned planes but the DRM commit failed.
  </int>
</enum>

<enum name="PromotingMaskCandidates">
  <int value="0" label="Yes"/>
  <int value="1" label="No, mask candidate does not need overlays"/>
  <int value="2" label="No, multiple overlays is disabled"/>
  <int value="3" label="No, mask candidate rejected by DRM"/>
</enum>

<enum name="RenderPassDamage">
  <int value="0" label="Output rect">
    Clipping at the root does not make the damage smaller than the output rect.
  </int>
  <int value="1" label="Clipped by root">
    Clipping at the root will clip the render pass and make it smaller than
    output rect.
  </int>
  <int value="2" label="Force full output rect">
    Full output rect damage was forced for this render pass.
  </int>
</enum>

<enum name="RenderPassDrawRectAssign">
  <int value="0" label="New Output rect">
    Initializing a drawn rect with an output rect for the first time.
  </int>
  <int value="1" label="Reassignment">
    Reassigning a different output rect to an existing non empty drawn rect.
  </int>
  <int value="2" label="No Assignment">No changes to drawn rect.</int>
  <int value="3" label="Full Damage">
    Assignment to drawn rect is equal to the damage.
  </int>
</enum>

<enum name="ToggleFrameRateCase">
  <int value="0" label="No video"/>
  <int value="1" label="Frame rate toggling supported by the platfrom"/>
  <int value="2"
      label="Single video with perfect cadence that matches the display"/>
  <int value="3"
      label="Single video with perfect cadence that differs from the display"/>
  <int value="4" label="Single video without perfect cadence"/>
  <int value="5" label="Multiple videos"/>
</enum>

<enum name="VizBreakdown">
  <int value="0" label="SubmitToReceiveCompositorFrame"/>
  <int value="1" label="ReceivedCompositorFrameToStartDraw"/>
  <int value="2" label="StartDrawToSwapStart"/>
  <int value="3" label="SwapStartToSwapEnd"/>
  <int value="4" label="SwapStartToBufferAvailable"/>
  <int value="5" label="BufferAvailableToBufferReady"/>
  <int value="6" label="BufferReadyToLatch"/>
  <int value="7" label="LatchToSwapEnd"/>
  <int value="8" label="SwapEndToPresentationCompositorFrame"/>
</enum>

</enums>

</histogram-configuration>