aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-services_ui_gpu_gpu__service.cc
blob: 791f589920b1f41339496862951ed3976bb11bb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- services/ui/gpu/gpu_service.cc.orig	2017-06-05 19:03:11 UTC
+++ services/ui/gpu/gpu_service.cc
@@ -269,7 +269,7 @@ void GpuService::RequestCompleteGpuInfo(
   }
   UpdateGpuInfoPlatform();
   callback.Run(gpu_info_);
-#if defined(OS_WIN)
+#if defined(OS_WIN) && !defined(OS_BSD)
   if (!in_host_process_) {
     // The unsandboxed GPU process fulfilled its duty. Rest in peace.
     base::MessageLoop::current()->QuitWhenIdle();
@@ -305,7 +305,7 @@ void GpuService::UpdateGpuInfoPlatform() {
   }
   gpu::SetKeysForCrashLogging(gpu_info_);
 }
-#elif defined(OS_WIN)
+#elif defined(OS_WIN) && !defined(OS_BSD)
 void GpuService::UpdateGpuInfoPlatform() {
   DCHECK(main_runner_->BelongsToCurrentThread());
   // GPU full info collection should only happen on un-sandboxed GPU process
@@ -353,7 +353,7 @@ void GpuService::StoreShaderToDisk(int client_id,
   (*gpu_host_)->StoreShaderToDisk(client_id, key, shader);
 }
 
-#if defined(OS_WIN)
+#if defined(OS_WIN) && !defined(OS_BSD)
 void GpuService::SendAcceleratedSurfaceCreatedChildWindow(
     gpu::SurfaceHandle parent_window,
     gpu::SurfaceHandle child_window) {