| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 cc::mojom::DisplayCompositorRequest request, | 105 cc::mojom::DisplayCompositorRequest request, |
| 106 cc::mojom::DisplayCompositorClientPtr client) override; | 106 cc::mojom::DisplayCompositorClientPtr client) override; |
| 107 | 107 |
| 108 // base::FieldTrialList::Observer: | 108 // base::FieldTrialList::Observer: |
| 109 void OnFieldTrialGroupFinalized(const std::string& trial_name, | 109 void OnFieldTrialGroupFinalized(const std::string& trial_name, |
| 110 const std::string& group_name) override; | 110 const std::string& group_name) override; |
| 111 | 111 |
| 112 // Message handlers. | 112 // Message handlers. |
| 113 void OnFinalize(); | 113 void OnFinalize(); |
| 114 void OnCollectGraphicsInfo(); | 114 void OnCollectGraphicsInfo(); |
| 115 void OnGetVideoMemoryUsageStats(); | |
| 116 void OnSetVideoMemoryWindowCount(uint32_t window_count); | 115 void OnSetVideoMemoryWindowCount(uint32_t window_count); |
| 117 | 116 |
| 118 void OnClean(); | 117 void OnClean(); |
| 119 void OnCrash(); | 118 void OnCrash(); |
| 120 void OnHang(); | 119 void OnHang(); |
| 121 #if defined(OS_ANDROID) | 120 #if defined(OS_ANDROID) |
| 122 void OnJavaCrash(); | 121 void OnJavaCrash(); |
| 123 #endif | 122 #endif |
| 124 void OnGpuSwitched(); | 123 void OnGpuSwitched(); |
| 125 | 124 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 AssociatedInterfaceRegistryImpl associated_interfaces_; | 168 AssociatedInterfaceRegistryImpl associated_interfaces_; |
| 170 std::unique_ptr<ui::GpuService> gpu_service_; | 169 std::unique_ptr<ui::GpuService> gpu_service_; |
| 171 mojo::AssociatedBinding<ui::mojom::GpuMain> gpu_main_binding_; | 170 mojo::AssociatedBinding<ui::mojom::GpuMain> gpu_main_binding_; |
| 172 | 171 |
| 173 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 172 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
| 174 }; | 173 }; |
| 175 | 174 |
| 176 } // namespace content | 175 } // namespace content |
| 177 | 176 |
| 178 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 177 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
| OLD | NEW |