| OLD | NEW |
| 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 Loading... |
| 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( |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 scoped_refptr<base::SingleThreadTaskRunner> compositor_thread_task_runner_; | 101 scoped_refptr<base::SingleThreadTaskRunner> compositor_thread_task_runner_; |
| 101 | 102 |
| 102 mojo::Binding<mojom::GpuMain> binding_; | 103 mojo::Binding<mojom::GpuMain> binding_; |
| 103 | 104 |
| 104 DISALLOW_COPY_AND_ASSIGN(GpuMain); | 105 DISALLOW_COPY_AND_ASSIGN(GpuMain); |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 } // namespace ui | 108 } // namespace ui |
| 108 | 109 |
| 109 #endif // SERVICES_UI_GPU_GPU_MAIN_H_ | 110 #endif // SERVICES_UI_GPU_GPU_MAIN_H_ |
| OLD | NEW |