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 #include "services/ui/gpu/gpu_service_internal.h" | 5 #include "services/ui/gpu/gpu_service_internal.h" |
6 | 6 |
7 #include "base/memory/shared_memory.h" | 7 #include "base/memory/shared_memory.h" |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 #include "base/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 void GpuServiceInternal::DidDestroyOffscreenContext(const GURL& active_url) { | 126 void GpuServiceInternal::DidDestroyOffscreenContext(const GURL& active_url) { |
127 NOTIMPLEMENTED(); | 127 NOTIMPLEMENTED(); |
128 } | 128 } |
129 | 129 |
130 void GpuServiceInternal::DidLoseContext(bool offscreen, | 130 void GpuServiceInternal::DidLoseContext(bool offscreen, |
131 gpu::error::ContextLostReason reason, | 131 gpu::error::ContextLostReason reason, |
132 const GURL& active_url) { | 132 const GURL& active_url) { |
133 NOTIMPLEMENTED(); | 133 NOTIMPLEMENTED(); |
134 } | 134 } |
135 | 135 |
136 void GpuServiceInternal::GpuMemoryUmaStats( | |
137 const gpu::GPUMemoryUmaStats& params) { | |
138 NOTIMPLEMENTED(); | |
139 } | |
140 | |
141 void GpuServiceInternal::StoreShaderToDisk(int client_id, | 136 void GpuServiceInternal::StoreShaderToDisk(int client_id, |
142 const std::string& key, | 137 const std::string& key, |
143 const std::string& shader) { | 138 const std::string& shader) { |
144 NOTIMPLEMENTED(); | 139 NOTIMPLEMENTED(); |
145 } | 140 } |
146 | 141 |
147 #if defined(OS_WIN) | 142 #if defined(OS_WIN) |
148 void GpuServiceInternal::SendAcceleratedSurfaceCreatedChildWindow( | 143 void GpuServiceInternal::SendAcceleratedSurfaceCreatedChildWindow( |
149 gpu::SurfaceHandle parent_window, | 144 gpu::SurfaceHandle parent_window, |
150 gpu::SurfaceHandle child_window) { | 145 gpu::SurfaceHandle child_window) { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 allow_real_time_streams, callback); | 247 allow_real_time_streams, callback); |
253 } | 248 } |
254 | 249 |
255 // static | 250 // static |
256 GpuServiceInternal* GpuServiceInternal::GetInstance() { | 251 GpuServiceInternal* GpuServiceInternal::GetInstance() { |
257 return base::Singleton<GpuServiceInternal, | 252 return base::Singleton<GpuServiceInternal, |
258 base::LeakySingletonTraits<GpuServiceInternal>>::get(); | 253 base::LeakySingletonTraits<GpuServiceInternal>>::get(); |
259 } | 254 } |
260 | 255 |
261 } // namespace ui | 256 } // namespace ui |
OLD | NEW |