ca_layer_result.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // Copyright 2022 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef UI_GFX_CA_LAYER_RESULT_H_
  5. #define UI_GFX_CA_LAYER_RESULT_H_
  6. namespace gfx {
  7. // This is the result of ProcessForCALayerOverlays() and is for macOS only.
  8. // This enum is used for histogram states and should only have new values added
  9. // to the end before COUNT. tools/metrics/histograms/enums.xml should be updated
  10. // together.
  11. // All changes made to enum CALayerResult should be added to
  12. // ui/gfx/mojom/ca_layer_result.mojom.
  13. enum CALayerResult {
  14. kCALayerSuccess = 0,
  15. kCALayerFailedUnknown = 1,
  16. // kCALayerFailedIOSurfaceNotCandidate = 2,
  17. kCALayerFailedStreamVideoNotCandidate = 3,
  18. // kCALayerFailedStreamVideoTransform = 4,
  19. kCALayerFailedTextureNotCandidate = 5,
  20. // kCALayerFailedTextureYFlipped = 6,
  21. kCALayerFailedTileNotCandidate = 7,
  22. kCALayerFailedQuadBlendMode = 8,
  23. // kCALayerFailedQuadTransform = 9,
  24. kCALayerFailedQuadClipping = 10,
  25. kCALayerFailedDebugBoarder = 11,
  26. kCALayerFailedPictureContent = 12,
  27. // kCALayerFailedRenderPass = 13,
  28. kCALayerFailedSurfaceContent = 14,
  29. // kCALayerFailedYUVVideoContent = 15,
  30. kCALayerFailedDifferentClipSettings = 16,
  31. kCALayerFailedDifferentVertexOpacities = 17,
  32. // kCALayerFailedRenderPassfilterScale = 18,
  33. kCALayerFailedRenderPassBackdropFilters = 19,
  34. kCALayerFailedRenderPassPassMask = 20,
  35. kCALayerFailedRenderPassFilterOperation = 21,
  36. kCALayerFailedRenderPassSortingContextId = 22,
  37. kCALayerFailedTooManyRenderPassDrawQuads = 23,
  38. // kCALayerFailedQuadRoundedCorner = 24,
  39. // kCALayerFailedQuadRoundedCornerClipMismatch = 25,
  40. kCALayerFailedQuadRoundedCornerNotUniform = 26,
  41. kCALayerFailedTooManyQuads = 27,
  42. kCALayerFailedYUVNotCandidate = 28,
  43. kCALayerFailedYUVTexcoordMismatch = 29,
  44. kCALayerFailedYUVInvalidPlanes = 30,
  45. kCALayerFailedCopyRequests = 31,
  46. kCALayerFailedOverlayDisabled = 32,
  47. kCALayerFailedVideoCaptureEnabled = 33,
  48. kCALayerUnknownDidNotSwap = 34, // For gpu_bench_marking only
  49. kCALayerUnknownNoWidget = 35, // For gpu_bench_marking only
  50. kMaxValue = kCALayerUnknownNoWidget,
  51. };
  52. } // namespace gfx
  53. #endif // UI_GFX_CA_LAYER_RESULT_H_