| 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_WS_GPU_HOST_H_ | 5 #ifndef SERVICES_UI_WS_GPU_HOST_H_ |
| 6 #define SERVICES_UI_WS_GPU_HOST_H_ | 6 #define SERVICES_UI_WS_GPU_HOST_H_ |
| 7 | 7 |
| 8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
| 9 #include "base/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
| 10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 void DidDestroyOffscreenContext(const GURL& url) override; | 50 void DidDestroyOffscreenContext(const GURL& url) override; |
| 51 void DidDestroyChannel(int32_t client_id) override; | 51 void DidDestroyChannel(int32_t client_id) override; |
| 52 void DidLoseContext(bool offscreen, | 52 void DidLoseContext(bool offscreen, |
| 53 gpu::error::ContextLostReason reason, | 53 gpu::error::ContextLostReason reason, |
| 54 const GURL& active_url) override; | 54 const GURL& active_url) override; |
| 55 void SetChildSurface(gpu::SurfaceHandle parent, | 55 void SetChildSurface(gpu::SurfaceHandle parent, |
| 56 gpu::SurfaceHandle child) override; | 56 gpu::SurfaceHandle child) override; |
| 57 void StoreShaderToDisk(int32_t client_id, | 57 void StoreShaderToDisk(int32_t client_id, |
| 58 const std::string& key, | 58 const std::string& key, |
| 59 const std::string& shader) override; | 59 const std::string& shader) override; |
| 60 void RecordLogMessage(int32_t severity, |
| 61 const std::string& header, |
| 62 const std::string& message) override; |
| 60 | 63 |
| 61 GpuHostDelegate* const delegate_; | 64 GpuHostDelegate* const delegate_; |
| 62 int32_t next_client_id_; | 65 int32_t next_client_id_; |
| 63 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 66 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
| 64 mojom::GpuServicePtr gpu_service_; | 67 mojom::GpuServicePtr gpu_service_; |
| 65 mojo::Binding<mojom::GpuHost> gpu_host_binding_; | 68 mojo::Binding<mojom::GpuHost> gpu_host_binding_; |
| 66 gpu::GPUInfo gpu_info_; | 69 gpu::GPUInfo gpu_info_; |
| 67 std::unique_ptr<ServerGpuMemoryBufferManager> gpu_memory_buffer_manager_; | 70 std::unique_ptr<ServerGpuMemoryBufferManager> gpu_memory_buffer_manager_; |
| 68 | 71 |
| 69 mojom::GpuMainPtr gpu_main_; | 72 mojom::GpuMainPtr gpu_main_; |
| 70 | 73 |
| 71 // TODO(fsamuel): GpuHost should not be holding onto |gpu_main_impl| | 74 // TODO(fsamuel): GpuHost should not be holding onto |gpu_main_impl| |
| 72 // because that will live in another process soon. | 75 // because that will live in another process soon. |
| 73 std::unique_ptr<GpuMain> gpu_main_impl_; | 76 std::unique_ptr<GpuMain> gpu_main_impl_; |
| 74 | 77 |
| 75 DISALLOW_COPY_AND_ASSIGN(GpuHost); | 78 DISALLOW_COPY_AND_ASSIGN(GpuHost); |
| 76 }; | 79 }; |
| 77 | 80 |
| 78 } // namespace ws | 81 } // namespace ws |
| 79 } // namespace ui | 82 } // namespace ui |
| 80 | 83 |
| 81 #endif // SERVICES_UI_WS_GPU_HOST_H_ | 84 #endif // SERVICES_UI_WS_GPU_HOST_H_ |
| OLD | NEW |