Make CompositorD3D11::HandleError available outside of that class

NEW
Unassigned

Status

()

Core
Graphics
2 years ago
2 years ago

People

(Reporter: milan, Unassigned)

Tracking

43 Branch
All
Windows
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [gfx-noted])

CompositorD3D11::HandleError is quite useful, since it lets us handle different errors in one place - sometimes assert, sometimes crash, sometimes warn and proceed.  See bug 1188019 comment 12 for a suggestion of the other places that could use that type of functionality - we may want to extract and put this into a common place.
Files where this would help:

  DrawTargetD2D1.cpp
  SourceSurfaceD2D1.cpp
  TextureD3D11.cpp
Whiteboard: [gfx-noted]
Two of these files are in gfx/2d, so it would need to be something that is accessible from there, though not part of the Moz2D interface.
You need to log in before you can comment on or make changes to this bug.