diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
commit | 59203c63bb777a3bacec32fb8830fba33540e809 (patch) | |
tree | 58298e711c0ff0575818c30485b44a2f21bf28a0 /gfx/layers/d3d11/TextureHostWrapperD3D11.cpp | |
parent | Adding upstream version 126.0.1. (diff) | |
download | firefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip |
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/layers/d3d11/TextureHostWrapperD3D11.cpp')
-rw-r--r-- | gfx/layers/d3d11/TextureHostWrapperD3D11.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gfx/layers/d3d11/TextureHostWrapperD3D11.cpp b/gfx/layers/d3d11/TextureHostWrapperD3D11.cpp index 380307fcea..aa6cb49f39 100644 --- a/gfx/layers/d3d11/TextureHostWrapperD3D11.cpp +++ b/gfx/layers/d3d11/TextureHostWrapperD3D11.cpp @@ -14,6 +14,7 @@ #include "mozilla/layers/GpuProcessD3D11TextureMap.h" #include "mozilla/layers/TextureD3D11.h" #include "mozilla/layers/WebRenderTextureHost.h" +#include "mozilla/ProfilerMarkers.h" #include "mozilla/SharedThreadPool.h" namespace mozilla { @@ -236,6 +237,14 @@ RefPtr<TextureHost> TextureHostWrapperD3D11::CreateFromBufferTexture( colorDepth != gfx::ColorDepth::COLOR_8 || colorRange != gfx::ColorRange::LIMITED || chromaSubsampling != gfx::ChromaSubsampling::HALF_WIDTH_AND_HEIGHT) { + if (profiler_thread_is_being_profiled_for_markers()) { + nsPrintfCString str( + "Unsupported size(%dx%d) colorDepth %hhu colorRange %hhu " + "chromaSubsampling %hhu", + size.width, size.height, uint8_t(colorDepth), uint8_t(colorRange), + uint8_t(chromaSubsampling)); + PROFILER_MARKER_TEXT("TextureHostWrapperD3D11", GRAPHICS, {}, str); + } return nullptr; } |