summaryrefslogtreecommitdiff
path: root/www/ungoogled-chromium/files/patch-components_viz_service_display__embedder_skia__output__surface__impl__on__gpu.cc
blob: 18a95604581828a39af796d2da9e3623e81ca35f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc.orig	2023-12-23 12:33:28 UTC
+++ components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc
@@ -1567,7 +1567,12 @@ void SkiaOutputSurfaceImplOnGpu::CopyOutputNV12(
 
       // Issue readbacks from the surfaces:
       for (size_t i = 0; i < CopyOutputResult::kNV12MaxPlanes; ++i) {
+#if defined(__clang__) && (__clang_major__ >= 16)
         SkISize size(plane_surfaces[i]->width(), plane_surfaces[i]->height());
+#else
+        SkISize s = { plane_surfaces[i]->width(), plane_surfaces[i]->height() };
+        SkISize size(s);
+#endif
         SkImageInfo dst_info = SkImageInfo::Make(
             size, (i == 0) ? kAlpha_8_SkColorType : kR8G8_unorm_SkColorType,
             kUnpremul_SkAlphaType);