summaryrefslogtreecommitdiff
path: root/devel/electron27/files/patch-cc_layers_mirror__layer__impl.h
blob: 12f0b8952f47d7bc633d4784341d4452876687cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- cc/layers/mirror_layer_impl.h.orig	2023-12-07 21:19:00 UTC
+++ cc/layers/mirror_layer_impl.h
@@ -5,6 +5,7 @@
 #ifndef CC_LAYERS_MIRROR_LAYER_IMPL_H_
 #define CC_LAYERS_MIRROR_LAYER_IMPL_H_
 
+#include <cstdint>
 #include <memory>
 
 #include "base/memory/ptr_util.h"
@@ -56,7 +57,8 @@ class CC_EXPORT MirrorLayerImpl : public LayerImpl {
  private:
   const char* LayerTypeAsString() const override;
   viz::CompositorRenderPassId mirrored_layer_render_pass_id() const {
-    return viz::CompositorRenderPassId{mirrored_layer_id()};
+    return viz::CompositorRenderPassId{
+        static_cast<uint64_t>(mirrored_layer_id())};
   }
 
   int mirrored_layer_id_ = 0;