[CP] Roll libwebp to 1.3.1 (#45675) (#45896)

[CP] https://github.com/flutter/engine/pull/45675

---------

Co-authored-by: Jason Simmons <jason-simmons@users.noreply.github.com>
diff --git a/DEPS b/DEPS
index b3ae5ce..186accc 100644
--- a/DEPS
+++ b/DEPS
@@ -257,7 +257,7 @@
 ]
 
 deps = {
-  'src': 'https://github.com/flutter/buildroot.git' + '@' + 'a067408d923ccf80742571bb7a71705499f5779e',
+  'src': 'https://github.com/flutter/buildroot.git' + '@' + '748677009746c89a406a058444635c3cf65faf66',
 
    # Fuchsia compatibility
    #
@@ -597,7 +597,7 @@
    Var('flutter_git') + '/third_party/libpng' + '@' + '9187b6e12756317f6d44fc669ac11dfc262bd192',
 
   'src/third_party/libwebp':
-   Var('chromium_git') + '/webm/libwebp.git' + '@' + '7dfde712a477e420968732161539011e0fd446cf', # 1.2.0
+   Var('chromium_git') + '/webm/libwebp.git' + '@' + '2af26267cdfcb63a88e5c74a85927a12d6ca1d76', # 1.3.1
 
   'src/third_party/wuffs':
    Var('skia_git') + '/external/github.com/google/wuffs-mirror-release-c.git' + '@' + '600cd96cf47788ee3a74b40a6028b035c9fd6a61',
diff --git a/ci/licenses_golden/excluded_files b/ci/licenses_golden/excluded_files
index a5e366c..8b2e0c4 100644
--- a/ci/licenses_golden/excluded_files
+++ b/ci/licenses_golden/excluded_files
@@ -2340,20 +2340,22 @@
 ../../../third_party/libtess2/Example
 ../../../third_party/libtess2/README.md
 ../../../third_party/libtess2/alg_outline.md
+../../../third_party/libwebp/.cmake-format.py
 ../../../third_party/libwebp/.git
 ../../../third_party/libwebp/.gitattributes
 ../../../third_party/libwebp/.gitignore
 ../../../third_party/libwebp/.mailmap
+../../../third_party/libwebp/.style.yapf
 ../../../third_party/libwebp/AUTHORS
 ../../../third_party/libwebp/Android.mk
 ../../../third_party/libwebp/CMakeLists.txt
+../../../third_party/libwebp/CONTRIBUTING.md
 ../../../third_party/libwebp/ChangeLog
 ../../../third_party/libwebp/Makefile.vc
 ../../../third_party/libwebp/NEWS
 ../../../third_party/libwebp/PATENTS
-../../../third_party/libwebp/README
-../../../third_party/libwebp/README.mux
-../../../third_party/libwebp/README.webp_js
+../../../third_party/libwebp/PRESUBMIT.py
+../../../third_party/libwebp/README.md
 ../../../third_party/libwebp/build.gradle
 ../../../third_party/libwebp/cmake
 ../../../third_party/libwebp/codereview.settings
diff --git a/ci/licenses_golden/licenses_third_party b/ci/licenses_golden/licenses_third_party
index 0349ed2..eb43f0d 100644
--- a/ci/licenses_golden/licenses_third_party
+++ b/ci/licenses_golden/licenses_third_party
@@ -1,4 +1,4 @@
-Signature: 112855356d58e4351d67f14f8256eda2
+Signature: f9f365f37fe3a396d6d67dec46c64ea9
 
 ====================================================================================================
 LIBRARY: angle
@@ -35445,7 +35445,10 @@
 LIBRARY: libwebp
 ORIGIN: ../../../third_party/libwebp/COPYING
 TYPE: LicenseType.bsd
+FILE: ../../../third_party/libwebp/.pylintrc
 FILE: ../../../third_party/libwebp/extras/webp_quality.c
+FILE: ../../../third_party/libwebp/sharpyuv/libsharpyuv.pc.in
+FILE: ../../../third_party/libwebp/sharpyuv/libsharpyuv.rc
 FILE: ../../../third_party/libwebp/src/demux/libwebpdemux.pc.in
 FILE: ../../../third_party/libwebp/src/demux/libwebpdemux.rc
 FILE: ../../../third_party/libwebp/src/libwebp.pc.in
@@ -43674,6 +43677,43 @@
 ====================================================================================================
 
 ====================================================================================================
+LIBRARY: libwebp
+ORIGIN: ../../../third_party/libwebp/src/dsp/lossless_sse41.c + ../../../third_party/libwebp/COPYING
+TYPE: LicenseType.bsd
+FILE: ../../../third_party/libwebp/src/dsp/lossless_sse41.c
+----------------------------------------------------------------------------------------------------
+Copyright 2021 Google Inc. All Rights Reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+  * Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+
+  * Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in
+    the documentation and/or other materials provided with the
+    distribution.
+
+  * Neither the name of Google nor the names of its contributors may
+    be used to endorse or promote products derived from this software
+    without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+====================================================================================================
+
+====================================================================================================
 LIBRARY: angle
 ORIGIN: ../../../third_party/angle/include/angle_cl.h + ../../../third_party/angle/LICENSE
 ORIGIN: ../../../third_party/angle/src/common/CircularBuffer.h + ../../../third_party/angle/LICENSE
@@ -44141,6 +44181,67 @@
 ====================================================================================================
 
 ====================================================================================================
+LIBRARY: libwebp
+ORIGIN: ../../../third_party/libwebp/sharpyuv/sharpyuv.c + ../../../third_party/libwebp/COPYING
+ORIGIN: ../../../third_party/libwebp/sharpyuv/sharpyuv.h + ../../../third_party/libwebp/COPYING
+ORIGIN: ../../../third_party/libwebp/sharpyuv/sharpyuv_cpu.c + ../../../third_party/libwebp/COPYING
+ORIGIN: ../../../third_party/libwebp/sharpyuv/sharpyuv_cpu.h + ../../../third_party/libwebp/COPYING
+ORIGIN: ../../../third_party/libwebp/sharpyuv/sharpyuv_csp.c + ../../../third_party/libwebp/COPYING
+ORIGIN: ../../../third_party/libwebp/sharpyuv/sharpyuv_csp.h + ../../../third_party/libwebp/COPYING
+ORIGIN: ../../../third_party/libwebp/sharpyuv/sharpyuv_dsp.c + ../../../third_party/libwebp/COPYING
+ORIGIN: ../../../third_party/libwebp/sharpyuv/sharpyuv_dsp.h + ../../../third_party/libwebp/COPYING
+ORIGIN: ../../../third_party/libwebp/sharpyuv/sharpyuv_gamma.c + ../../../third_party/libwebp/COPYING
+ORIGIN: ../../../third_party/libwebp/sharpyuv/sharpyuv_gamma.h + ../../../third_party/libwebp/COPYING
+ORIGIN: ../../../third_party/libwebp/sharpyuv/sharpyuv_neon.c + ../../../third_party/libwebp/COPYING
+ORIGIN: ../../../third_party/libwebp/sharpyuv/sharpyuv_sse2.c + ../../../third_party/libwebp/COPYING
+ORIGIN: ../../../third_party/libwebp/src/dsp/cpu.h + ../../../third_party/libwebp/COPYING
+TYPE: LicenseType.bsd
+FILE: ../../../third_party/libwebp/sharpyuv/sharpyuv.c
+FILE: ../../../third_party/libwebp/sharpyuv/sharpyuv.h
+FILE: ../../../third_party/libwebp/sharpyuv/sharpyuv_cpu.c
+FILE: ../../../third_party/libwebp/sharpyuv/sharpyuv_cpu.h
+FILE: ../../../third_party/libwebp/sharpyuv/sharpyuv_csp.c
+FILE: ../../../third_party/libwebp/sharpyuv/sharpyuv_csp.h
+FILE: ../../../third_party/libwebp/sharpyuv/sharpyuv_dsp.c
+FILE: ../../../third_party/libwebp/sharpyuv/sharpyuv_dsp.h
+FILE: ../../../third_party/libwebp/sharpyuv/sharpyuv_gamma.c
+FILE: ../../../third_party/libwebp/sharpyuv/sharpyuv_gamma.h
+FILE: ../../../third_party/libwebp/sharpyuv/sharpyuv_neon.c
+FILE: ../../../third_party/libwebp/sharpyuv/sharpyuv_sse2.c
+FILE: ../../../third_party/libwebp/src/dsp/cpu.h
+----------------------------------------------------------------------------------------------------
+Copyright 2022 Google Inc. All Rights Reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+  * Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+
+  * Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in
+    the documentation and/or other materials provided with the
+    distribution.
+
+  * Neither the name of Google nor the names of its contributors may
+    be used to endorse or promote products derived from this software
+    without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+====================================================================================================
+
+====================================================================================================
 LIBRARY: angle
 ORIGIN: ../../../third_party/angle/include/platform/autogen/FeaturesD3D_autogen.h + ../../../third_party/angle/LICENSE
 ORIGIN: ../../../third_party/angle/include/platform/autogen/FeaturesGL_autogen.h + ../../../third_party/angle/LICENSE
@@ -61797,4 +61898,4 @@
 3. This notice may not be removed or altered from any source distribution.
 ====================================================================================================
 
-Total license count: 866
+Total license count: 868