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;
|