From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- gfx/webrender_bindings/RenderThread.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gfx/webrender_bindings/RenderThread.h') diff --git a/gfx/webrender_bindings/RenderThread.h b/gfx/webrender_bindings/RenderThread.h index f9ab1e742e..6191a28bcd 100644 --- a/gfx/webrender_bindings/RenderThread.h +++ b/gfx/webrender_bindings/RenderThread.h @@ -489,6 +489,11 @@ class RenderThread final { RefPtr mRenderTextureOpsRunnable MOZ_GUARDED_BY(mRenderTextureMapLock); +#ifdef DEBUG + // used for tests only to ensure render textures don't increase + int32_t mRenderTexturesLastTime MOZ_GUARDED_BY(mRenderTextureMapLock) = -1; +#endif + // Set from MainThread, read from either MainThread or RenderThread bool mHasShutdown; -- cgit v1.2.3