Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: services/ui/gpu/gpu_main.h

Issue 2744363002: Clear shader disk cache after glProgramBinary failure. (Closed)
Patch Set: Remove singleton and clean up init Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/ipc/service/gpu_channel_test_common.cc ('k') | services/ui/gpu/gpu_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_UI_GPU_GPU_MAIN_H_ 5 #ifndef SERVICES_UI_GPU_GPU_MAIN_H_
6 #define SERVICES_UI_GPU_GPU_MAIN_H_ 6 #define SERVICES_UI_GPU_GPU_MAIN_H_
7 7
8 #include "base/threading/thread.h" 8 #include "base/threading/thread.h"
9 #include "gpu/ipc/in_process_command_buffer.h" 9 #include "gpu/ipc/in_process_command_buffer.h"
10 #include "gpu/ipc/service/gpu_init.h" 10 #include "gpu/ipc/service/gpu_init.h"
(...skipping 11 matching lines...) Expand all
22 class GpuService; 22 class GpuService;
23 23
24 class GpuMain : public gpu::GpuSandboxHelper, public mojom::GpuMain { 24 class GpuMain : public gpu::GpuSandboxHelper, public mojom::GpuMain {
25 public: 25 public:
26 explicit GpuMain(mojom::GpuMainRequest request); 26 explicit GpuMain(mojom::GpuMainRequest request);
27 ~GpuMain() override; 27 ~GpuMain() override;
28 28
29 // mojom::GpuMain implementation: 29 // mojom::GpuMain implementation:
30 void CreateGpuService(mojom::GpuServiceRequest request, 30 void CreateGpuService(mojom::GpuServiceRequest request,
31 mojom::GpuHostPtr gpu_host, 31 mojom::GpuHostPtr gpu_host,
32 const gpu::GpuPreferences& preferences) override; 32 const gpu::GpuPreferences& preferences,
33 mojo::ScopedSharedBufferHandle activity_flags) override;
33 void CreateDisplayCompositor( 34 void CreateDisplayCompositor(
34 cc::mojom::DisplayCompositorRequest request, 35 cc::mojom::DisplayCompositorRequest request,
35 cc::mojom::DisplayCompositorClientPtr client) override; 36 cc::mojom::DisplayCompositorClientPtr client) override;
36 37
37 void OnStart(); 38 void OnStart();
38 39
39 GpuService* gpu_service() { return gpu_service_.get(); } 40 GpuService* gpu_service() { return gpu_service_.get(); }
40 41
41 private: 42 private:
42 void InitOnGpuThread( 43 void InitOnGpuThread(
43 scoped_refptr<base::SingleThreadTaskRunner> io_runner, 44 scoped_refptr<base::SingleThreadTaskRunner> io_runner,
44 scoped_refptr<base::SingleThreadTaskRunner> compositor_runner); 45 scoped_refptr<base::SingleThreadTaskRunner> compositor_runner);
45 46
46 void CreateDisplayCompositorInternal( 47 void CreateDisplayCompositorInternal(
47 cc::mojom::DisplayCompositorRequest request, 48 cc::mojom::DisplayCompositorRequest request,
48 cc::mojom::DisplayCompositorClientPtrInfo client_info); 49 cc::mojom::DisplayCompositorClientPtrInfo client_info);
49 void CreateDisplayCompositorOnCompositorThread( 50 void CreateDisplayCompositorOnCompositorThread(
50 gpu::ImageFactory* image_factory, 51 gpu::ImageFactory* image_factory,
51 mojom::GpuServicePtrInfo gpu_service_info, 52 mojom::GpuServicePtrInfo gpu_service_info,
52 cc::mojom::DisplayCompositorRequest request, 53 cc::mojom::DisplayCompositorRequest request,
53 cc::mojom::DisplayCompositorClientPtrInfo client_info); 54 cc::mojom::DisplayCompositorClientPtrInfo client_info);
54 void CreateGpuServiceOnGpuThread(mojom::GpuServiceRequest request, 55 void CreateGpuServiceOnGpuThread(mojom::GpuServiceRequest request,
55 mojom::GpuHostPtrInfo gpu_host_info, 56 mojom::GpuHostPtrInfo gpu_host_info,
56 const gpu::GpuPreferences& preferences); 57 const gpu::GpuPreferences& preferences,
58 gpu::GpuProcessActivityFlags activity_flags);
57 void BindGpuInternalOnGpuThread(mojom::GpuServiceRequest request); 59 void BindGpuInternalOnGpuThread(mojom::GpuServiceRequest request);
58 60
59 void TearDownOnCompositorThread(); 61 void TearDownOnCompositorThread();
60 void TearDownOnGpuThread(); 62 void TearDownOnGpuThread();
61 63
62 // gpu::GpuSandboxHelper: 64 // gpu::GpuSandboxHelper:
63 void PreSandboxStartup() override; 65 void PreSandboxStartup() override;
64 bool EnsureSandboxInitialized( 66 bool EnsureSandboxInitialized(
65 gpu::GpuWatchdogThread* watchdog_thread) override; 67 gpu::GpuWatchdogThread* watchdog_thread) override;
66 68
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 scoped_refptr<base::SingleThreadTaskRunner> compositor_thread_task_runner_; 102 scoped_refptr<base::SingleThreadTaskRunner> compositor_thread_task_runner_;
101 103
102 mojo::Binding<mojom::GpuMain> binding_; 104 mojo::Binding<mojom::GpuMain> binding_;
103 105
104 DISALLOW_COPY_AND_ASSIGN(GpuMain); 106 DISALLOW_COPY_AND_ASSIGN(GpuMain);
105 }; 107 };
106 108
107 } // namespace ui 109 } // namespace ui
108 110
109 #endif // SERVICES_UI_GPU_GPU_MAIN_H_ 111 #endif // SERVICES_UI_GPU_GPU_MAIN_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_channel_test_common.cc ('k') | services/ui/gpu/gpu_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698