File: static-assert.patch

package info (click to toggle)
chromium 145.0.7632.159-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,976,224 kB
  • sloc: cpp: 36,198,469; ansic: 7,634,080; javascript: 3,564,060; python: 1,649,622; xml: 838,470; asm: 717,087; pascal: 185,708; sh: 88,786; perl: 88,718; objc: 79,984; sql: 59,811; cs: 42,452; fortran: 24,101; makefile: 21,144; tcl: 15,277; php: 14,022; yacc: 9,066; ruby: 7,553; awk: 3,720; lisp: 3,233; lex: 1,328; ada: 727; jsp: 228; sed: 36
file content (58 lines) | stat: -rw-r--r-- 2,709 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
author: Andres Salomon <dilinger@debian.org>
desc: fixes a compile-time check that clang-19 doesn't like:

fixes various compile-time static_assert() checks that clang-19 doesn't like:


../../media/gpu/vaapi/vaapi_jpeg_encoder.cc:101:19: error: static assertion expression is not an integral constant expression
  101 |     static_assert(num_dc_codes.size() == dcTable.code_length.size());
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../media/gpu/vaapi/vaapi_jpeg_encoder.cc:101:42: note: initializer of 'dcTable' is not a constant expression
  101 |     static_assert(num_dc_codes.size() == dcTable.code_length.size());
      |                                          ^

--- a/media/gpu/vaapi/vaapi_jpeg_encoder.cc
+++ b/media/gpu/vaapi/vaapi_jpeg_encoder.cc
@@ -98,24 +98,24 @@ void FillHuffmanTableParameters(
 
     // Load DC Table.
     auto num_dc_codes = base::span(huffman_tables[i].num_dc_codes);
-    static_assert(num_dc_codes.size() == dcTable.code_length.size());
+//    assert(num_dc_codes.size() == dcTable.code_length.size());
     num_dc_codes.copy_from_nonoverlapping(dcTable.code_length);
     // |code_values| of JpegHuffmanTable needs to hold DC and AC code values
     // so it has different size than
     // |huff_table_param->huffman_table[i].dc_values|. Therefore we can't use
     // SafeArrayMemcpy() here.
     auto dc_values = base::span(huffman_tables[i].dc_values);
-    static_assert(dc_values.size() <= dcTable.code_value.size());
+//    static_assert(dc_values.size() <= dcTable.code_value.size());
     dc_values.copy_from_nonoverlapping(
         base::span(dcTable.code_value).first(dc_values.size()));
 
     // Load AC Table.
     auto num_ac_codes = base::span(huffman_tables[i].num_ac_codes);
-    static_assert(num_ac_codes.size() == acTable.code_length.size());
+//    static_assert(num_ac_codes.size() == acTable.code_length.size());
     num_ac_codes.copy_from_nonoverlapping(acTable.code_length);
 
     auto ac_values = base::span(huffman_tables[i].ac_values);
-    static_assert(ac_values.size() == acTable.code_value.size());
+//    static_assert(ac_values.size() == acTable.code_value.size());
     ac_values.copy_from_nonoverlapping(acTable.code_value);
 
     std::ranges::fill(huffman_tables[i].pad, 0);
--- a/third_party/blink/renderer/modules/xr/xr_rigid_transform.h
+++ b/third_party/blink/renderer/modules/xr/xr_rigid_transform.h
@@ -12,10 +12,7 @@
 #include "third_party/blink/renderer/modules/modules_export.h"
 #include "third_party/blink/renderer/platform/bindings/script_wrappable.h"
 
-namespace gfx {
-class Transform;
-}
-
+#include "ui/gfx/geometry/transform.h"
 namespace blink {
 
 class DOMPointInit;