aboutsummaryrefslogblamecommitdiff
path: root/www/chromium/files/patch-chromecast_browser_cast__content__browser__client.cc
blob: abe79ed7dab4f0ebfdaa0e712c9da7c7e2b24031 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                                       
                                                     
                   
                                                                                 

       

                                                                                               
                                                           
                                                                                 
 
                                                                          


                                                                            

                                                                       


                                                                                 
                                                                          


                                                                

                                                                                               


                                                                                 
--- chromecast/browser/cast_content_browser_client.cc.orig	2022-04-21 18:48:31 UTC
+++ chromecast/browser/cast_content_browser_client.cc
@@ -134,7 +134,7 @@
 #include "extensions/common/constants.h"                            // nogncheck
 #endif
 
-#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(USE_OZONE)
+#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && defined(USE_OZONE)
 #include "chromecast/browser/webview/webview_controller.h"
 #endif  // (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(USE_OZONE)
 
@@ -475,7 +475,7 @@ void CastContentBrowserClient::AppendExtraCommandLineS
                                           switches::kAudioOutputChannels));
     }
   } else if (process_type == switches::kGpuProcess) {
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
     // Necessary for accelerated 2d canvas.  By default on Linux, Chromium
     // assumes GLES2 contexts can be lost to a power-save mode, which breaks GPU
     // canvas apps.
@@ -871,7 +871,7 @@ CastContentBrowserClient::CreateThrottlesForNavigation
             handle, general_audience_browsing_service_.get()));
   }
 
-#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(USE_OZONE)
+#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && defined(USE_OZONE)
   auto webview_throttle = WebviewController::MaybeGetNavigationThrottle(handle);
   if (webview_throttle) {
     throttles.push_back(std::move(webview_throttle));