mirror of
https://github.com/nxp-imx/meta-imx.git
synced 2025-07-19 18:39:09 +02:00
35 lines
1.4 KiB
Diff
35 lines
1.4 KiB
Diff
From d4edb5af2a09a891e02a22514703860c911664a0 Mon Sep 17 00:00:00 2001
|
|
From: Wujian Sun <wujian.sun_1@nxp.com>
|
|
Date: Tue, 10 Dec 2024 14:40:49 +0800
|
|
Subject: [PATCH] Fix canvas test fail for webgl
|
|
|
|
canvas fallback from GPU to CPU meet issue with WillReadFrequently.
|
|
Set it false as default to avoid the failures.
|
|
|
|
conformance/canvas/draw-webgl-to-canvas-test.html
|
|
conformance/canvas/draw-static-webgl-to-multiple-canvas-test.html
|
|
|
|
Upstream-Status: Inappropriate [i.MX specific]
|
|
|
|
Signed-off-by: Wujian Sun <wujian.sun_1@nxp.com>
|
|
---
|
|
.../htmlcanvas/canvas_context_creation_attributes_helpers.cc | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/third_party/blink/renderer/modules/canvas/htmlcanvas/canvas_context_creation_attributes_helpers.cc b/third_party/blink/renderer/modules/canvas/htmlcanvas/canvas_context_creation_attributes_helpers.cc
|
|
index 8938e79c1cbd0..b699d89763ad9 100644
|
|
--- a/third_party/blink/renderer/modules/canvas/htmlcanvas/canvas_context_creation_attributes_helpers.cc
|
|
+++ b/third_party/blink/renderer/modules/canvas/htmlcanvas/canvas_context_creation_attributes_helpers.cc
|
|
@@ -53,7 +53,7 @@ bool ToCanvasContextCreationAttributes(
|
|
break;
|
|
default:
|
|
result.will_read_frequently =
|
|
- CanvasContextCreationAttributesCore::WillReadFrequently::kUndefined;
|
|
+ CanvasContextCreationAttributesCore::WillReadFrequently::kFalse;
|
|
}
|
|
result.xr_compatible = attrs->xrCompatible();
|
|
return true;
|
|
--
|
|
2.34.1
|
|
|