recipes-demo/homescreen/homescreen_git.bb: Bump SRCREV
[AGL/meta-agl-demo.git] / recipes-wam / cef / files / chromium / 0004-agl-Add-a-method-to-check-if-the-agl-window-is-confi.patch
1 From 76cb42f0773ecff97710d7d5ea20cd16b8781d51 Mon Sep 17 00:00:00 2001
2 From: Roger Zanoni <rzanoni@igalia.com>
3 Date: Fri, 30 Jun 2023 10:25:10 +0200
4 Subject: [PATCH 04/33] [agl] Add a method to check if the agl window is
5  configured
6
7 This will be used on cef side to know the time when the window can be
8 displayed.
9
10 Signed-off-by: Roger Zanoni <rzanoni@igalia.com>
11 ---
12  ui/aura/agl/window_tree_host_agl.h           | 1 +
13  ui/aura/agl/window_tree_host_platform_agl.cc | 4 ++++
14  ui/aura/agl/window_tree_host_platform_agl.h  | 1 +
15  ui/platform_window/agl/platform_window_agl.h | 1 +
16  4 files changed, 7 insertions(+)
17
18 diff --git a/ui/aura/agl/window_tree_host_agl.h b/ui/aura/agl/window_tree_host_agl.h
19 index 858a078d939d0..b9aa451c8332e 100644
20 --- a/ui/aura/agl/window_tree_host_agl.h
21 +++ b/ui/aura/agl/window_tree_host_agl.h
22 @@ -35,6 +35,7 @@ class AURA_EXPORT WindowTreeHostAgl {
23    virtual void SetAglReady() {}
24    virtual void SetAglBackground() {}
25    virtual void SetAglPanel(uint32_t edge) {}
26 +  virtual bool IsSurfaceConfigured() const { return false; }
27  };
28  
29  }  // namespace aura
30 diff --git a/ui/aura/agl/window_tree_host_platform_agl.cc b/ui/aura/agl/window_tree_host_platform_agl.cc
31 index e34595fe0ed9c..67190e1da6973 100644
32 --- a/ui/aura/agl/window_tree_host_platform_agl.cc
33 +++ b/ui/aura/agl/window_tree_host_platform_agl.cc
34 @@ -47,4 +47,8 @@ void WindowTreeHostPlatformAgl::SetAglPanel(uint32_t edge) {
35    window_tree_host_platform_->platform_window()->SetAglPanel(edge);
36  }
37  
38 +bool WindowTreeHostPlatformAgl::IsSurfaceConfigured() const {
39 +  return window_tree_host_platform_->platform_window()->IsSurfaceConfigured();
40 +}
41 +
42  }  // namespace aura
43 diff --git a/ui/aura/agl/window_tree_host_platform_agl.h b/ui/aura/agl/window_tree_host_platform_agl.h
44 index 181eefae346f7..e5a29fa1bfca3 100644
45 --- a/ui/aura/agl/window_tree_host_platform_agl.h
46 +++ b/ui/aura/agl/window_tree_host_platform_agl.h
47 @@ -41,6 +41,7 @@ class AURA_EXPORT WindowTreeHostPlatformAgl : public aura::WindowTreeHost {
48    void SetAglReady() override;
49    void SetAglBackground() override;
50    void SetAglPanel(uint32_t edge) override;
51 +  bool IsSurfaceConfigured() const override;
52  
53   private:
54    aura::WindowTreeHostPlatform* window_tree_host_platform_;
55 diff --git a/ui/platform_window/agl/platform_window_agl.h b/ui/platform_window/agl/platform_window_agl.h
56 index 4bc915d663e72..cab1f42272772 100644
57 --- a/ui/platform_window/agl/platform_window_agl.h
58 +++ b/ui/platform_window/agl/platform_window_agl.h
59 @@ -29,6 +29,7 @@ class PlatformWindowAgl {
60    virtual void SetAglReady() {}
61    virtual void SetAglBackground() {}
62    virtual void SetAglPanel(uint32_t edge) {}
63 +  virtual bool IsSurfaceConfigured() { return false; }
64  };
65  
66  }  // namespace ui
67 -- 
68 2.42.1
69