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

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

Issue 2643853005: chromeos: Initial support for crash reporting for chrome --mash (Closed)
Patch Set: deps Created 3 years, 11 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
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_SERVICE_H_ 5 #ifndef SERVICES_UI_GPU_GPU_SERVICE_H_
6 #define SERVICES_UI_GPU_GPU_SERVICE_H_ 6 #define SERVICES_UI_GPU_GPU_SERVICE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "base/threading/non_thread_safe.h" 10 #include "base/threading/non_thread_safe.h"
(...skipping 27 matching lines...) Expand all
38 38
39 class GpuMain; 39 class GpuMain;
40 40
41 // This runs in the GPU process, and communicates with the gpu host (which is 41 // This runs in the GPU process, and communicates with the gpu host (which is
42 // the window server) over the mojom APIs. This is responsible for setting up 42 // the window server) over the mojom APIs. This is responsible for setting up
43 // the connection to clients, allocating/free'ing gpu memory etc. 43 // the connection to clients, allocating/free'ing gpu memory etc.
44 class GpuService : public gpu::GpuChannelManagerDelegate, 44 class GpuService : public gpu::GpuChannelManagerDelegate,
45 public mojom::GpuService, 45 public mojom::GpuService,
46 public base::NonThreadSafe { 46 public base::NonThreadSafe {
47 public: 47 public:
48 // Crash key for the URL of the active tab.
49 static const char kActiveUrlCrashKey[];
50
48 GpuService(const gpu::GPUInfo& gpu_info, 51 GpuService(const gpu::GPUInfo& gpu_info,
49 std::unique_ptr<gpu::GpuWatchdogThread> watchdog, 52 std::unique_ptr<gpu::GpuWatchdogThread> watchdog,
50 gpu::GpuMemoryBufferFactory* memory_buffer_factory, 53 gpu::GpuMemoryBufferFactory* memory_buffer_factory,
51 scoped_refptr<base::SingleThreadTaskRunner> io_runner); 54 scoped_refptr<base::SingleThreadTaskRunner> io_runner);
52 55
53 ~GpuService() override; 56 ~GpuService() override;
54 57
55 void InitializeWithHost(mojom::GpuHostPtr gpu_host, 58 void InitializeWithHost(mojom::GpuHostPtr gpu_host,
56 const gpu::GpuPreferences& preferences); 59 const gpu::GpuPreferences& preferences);
57 void Bind(mojom::GpuServiceRequest request); 60 void Bind(mojom::GpuServiceRequest request);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 std::unique_ptr<gpu::GpuChannelManager> gpu_channel_manager_; 145 std::unique_ptr<gpu::GpuChannelManager> gpu_channel_manager_;
143 std::unique_ptr<media::MediaGpuChannelManager> media_gpu_channel_manager_; 146 std::unique_ptr<media::MediaGpuChannelManager> media_gpu_channel_manager_;
144 mojo::BindingSet<mojom::GpuService> bindings_; 147 mojo::BindingSet<mojom::GpuService> bindings_;
145 148
146 DISALLOW_COPY_AND_ASSIGN(GpuService); 149 DISALLOW_COPY_AND_ASSIGN(GpuService);
147 }; 150 };
148 151
149 } // namespace ui 152 } // namespace ui
150 153
151 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_ 154 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698