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_SERVICE_INTERNAL_H_ | 5 #ifndef SERVICES_UI_GPU_GPU_SERVICE_INTERNAL_H_ |
6 #define SERVICES_UI_GPU_GPU_SERVICE_INTERNAL_H_ | 6 #define SERVICES_UI_GPU_GPU_SERVICE_INTERNAL_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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 gfx::BufferFormat format, | 91 gfx::BufferFormat format, |
92 int client_id); | 92 int client_id); |
93 | 93 |
94 // gpu::GpuChannelManagerDelegate: | 94 // gpu::GpuChannelManagerDelegate: |
95 void DidCreateOffscreenContext(const GURL& active_url) override; | 95 void DidCreateOffscreenContext(const GURL& active_url) override; |
96 void DidDestroyChannel(int client_id) override; | 96 void DidDestroyChannel(int client_id) override; |
97 void DidDestroyOffscreenContext(const GURL& active_url) override; | 97 void DidDestroyOffscreenContext(const GURL& active_url) override; |
98 void DidLoseContext(bool offscreen, | 98 void DidLoseContext(bool offscreen, |
99 gpu::error::ContextLostReason reason, | 99 gpu::error::ContextLostReason reason, |
100 const GURL& active_url) override; | 100 const GURL& active_url) override; |
101 void GpuMemoryUmaStats(const gpu::GPUMemoryUmaStats& params) override; | |
102 void StoreShaderToDisk(int client_id, | 101 void StoreShaderToDisk(int client_id, |
103 const std::string& key, | 102 const std::string& key, |
104 const std::string& shader) override; | 103 const std::string& shader) override; |
105 #if defined(OS_WIN) | 104 #if defined(OS_WIN) |
106 void SendAcceleratedSurfaceCreatedChildWindow( | 105 void SendAcceleratedSurfaceCreatedChildWindow( |
107 gpu::SurfaceHandle parent_window, | 106 gpu::SurfaceHandle parent_window, |
108 gpu::SurfaceHandle child_window) override; | 107 gpu::SurfaceHandle child_window) override; |
109 #endif | 108 #endif |
110 void SetActiveURL(const GURL& url) override; | 109 void SetActiveURL(const GURL& url) override; |
111 | 110 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 gpu::GPUInfo gpu_info_; | 153 gpu::GPUInfo gpu_info_; |
155 | 154 |
156 mojo::Binding<mojom::GpuServiceInternal> binding_; | 155 mojo::Binding<mojom::GpuServiceInternal> binding_; |
157 | 156 |
158 DISALLOW_COPY_AND_ASSIGN(GpuServiceInternal); | 157 DISALLOW_COPY_AND_ASSIGN(GpuServiceInternal); |
159 }; | 158 }; |
160 | 159 |
161 } // namespace ui | 160 } // namespace ui |
162 | 161 |
163 #endif // SERVICES_UI_GPU_GPU_SERVICE_INTERNAL_H_ | 162 #endif // SERVICES_UI_GPU_GPU_SERVICE_INTERNAL_H_ |
OLD | NEW |