| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_GPU_GPU_CHILD_THREAD_H_ | 5 #ifndef CONTENT_GPU_GPU_CHILD_THREAD_H_ |
| 6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ | 6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 const gpu::GpuPreferences& preferences, | 103 const gpu::GpuPreferences& preferences, |
| 104 mojo::ScopedSharedBufferHandle activity_flags) override; | 104 mojo::ScopedSharedBufferHandle activity_flags) override; |
| 105 void CreateDisplayCompositor( | 105 void CreateDisplayCompositor( |
| 106 cc::mojom::DisplayCompositorRequest request, | 106 cc::mojom::DisplayCompositorRequest request, |
| 107 cc::mojom::DisplayCompositorClientPtr client) override; | 107 cc::mojom::DisplayCompositorClientPtr client) override; |
| 108 | 108 |
| 109 // base::FieldTrialList::Observer: | 109 // base::FieldTrialList::Observer: |
| 110 void OnFieldTrialGroupFinalized(const std::string& trial_name, | 110 void OnFieldTrialGroupFinalized(const std::string& trial_name, |
| 111 const std::string& group_name) override; | 111 const std::string& group_name) override; |
| 112 | 112 |
| 113 // Message handlers. | |
| 114 void OnCollectGraphicsInfo(); | |
| 115 void OnSetVideoMemoryWindowCount(uint32_t window_count); | |
| 116 | |
| 117 void OnGpuSwitched(); | 113 void OnGpuSwitched(); |
| 118 | 114 |
| 119 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, | 115 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, |
| 120 int client_id, | 116 int client_id, |
| 121 const gpu::SyncToken& sync_token); | 117 const gpu::SyncToken& sync_token); |
| 122 void BindServiceFactoryRequest( | 118 void BindServiceFactoryRequest( |
| 123 service_manager::mojom::ServiceFactoryRequest request); | 119 service_manager::mojom::ServiceFactoryRequest request); |
| 124 | 120 |
| 125 gpu::GpuChannelManager* gpu_channel_manager() { | 121 gpu::GpuChannelManager* gpu_channel_manager() { |
| 126 return gpu_service_->gpu_channel_manager(); | 122 return gpu_service_->gpu_channel_manager(); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 155 AssociatedInterfaceRegistryImpl associated_interfaces_; | 151 AssociatedInterfaceRegistryImpl associated_interfaces_; |
| 156 std::unique_ptr<ui::GpuService> gpu_service_; | 152 std::unique_ptr<ui::GpuService> gpu_service_; |
| 157 mojo::AssociatedBinding<ui::mojom::GpuMain> gpu_main_binding_; | 153 mojo::AssociatedBinding<ui::mojom::GpuMain> gpu_main_binding_; |
| 158 | 154 |
| 159 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 155 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
| 160 }; | 156 }; |
| 161 | 157 |
| 162 } // namespace content | 158 } // namespace content |
| 163 | 159 |
| 164 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 160 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
| OLD | NEW |