From 8445617191201ef0f2b57f112efacc255b095dfa Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 17 Nov 2017 10:41:02 -0800 Subject: Mark a bunch of kArray variables as const. This allows the linker to move the variables from the .data section to the .rodata section. Bug: libyuv:254 Test: out/Release/libyuv_unittest --gtest_filter=* --libyuv_width=1280 --libyuv_height=720 --libyuv_repeat=999 --libyuv_flags=-1 --libyuv_cpu_info=-1 Change-Id: I6998570f1af4337d7b80313d9e18e36aa20d6ec0 Reviewed-on: https://chromium-review.googlesource.com/777033 Commit-Queue: Frank Barchard Reviewed-by: Frank Barchard --- source/convert_from_argb.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/convert_from_argb.cc') diff --git a/source/convert_from_argb.cc b/source/convert_from_argb.cc index 77c542b7..fbd9e990 100644 --- a/source/convert_from_argb.cc +++ b/source/convert_from_argb.cc @@ -906,8 +906,8 @@ int ARGBToI400(const uint8* src_argb, } // Shuffle table for converting ARGB to RGBA. -static uvec8 kShuffleMaskARGBToRGBA = {3u, 0u, 1u, 2u, 7u, 4u, 5u, 6u, - 11u, 8u, 9u, 10u, 15u, 12u, 13u, 14u}; +static const uvec8 kShuffleMaskARGBToRGBA = { + 3u, 0u, 1u, 2u, 7u, 4u, 5u, 6u, 11u, 8u, 9u, 10u, 15u, 12u, 13u, 14u}; // Convert ARGB to RGBA. LIBYUV_API -- cgit v1.2.3