Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Side by Side Diff: services/ui/gpu/gpu_service.h

Issue 2942283002: viz: Use a simple GpuMemoryBufferManager implementation. (Closed)
Patch Set: . Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/ui/gpu/gpu_main.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_H_ 5 #ifndef SERVICES_UI_GPU_GPU_SERVICE_H_
6 #define SERVICES_UI_GPU_GPU_SERVICE_H_ 6 #define SERVICES_UI_GPU_GPU_SERVICE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/synchronization/waitable_event.h" 10 #include "base/synchronization/waitable_event.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 media::MediaGpuChannelManager* media_gpu_channel_manager() { 67 media::MediaGpuChannelManager* media_gpu_channel_manager() {
68 return media_gpu_channel_manager_.get(); 68 return media_gpu_channel_manager_.get();
69 } 69 }
70 70
71 gpu::GpuChannelManager* gpu_channel_manager() { 71 gpu::GpuChannelManager* gpu_channel_manager() {
72 return gpu_channel_manager_.get(); 72 return gpu_channel_manager_.get();
73 } 73 }
74 74
75 gpu::ImageFactory* gpu_image_factory(); 75 gpu::ImageFactory* gpu_image_factory();
76 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory() {
77 return gpu_memory_buffer_factory_.get();
78 }
76 79
77 gpu::GpuWatchdogThread* watchdog_thread() { return watchdog_thread_.get(); } 80 gpu::GpuWatchdogThread* watchdog_thread() { return watchdog_thread_.get(); }
78 81
79 const gpu::GpuFeatureInfo& gpu_feature_info() const { 82 const gpu::GpuFeatureInfo& gpu_feature_info() const {
80 return gpu_feature_info_; 83 return gpu_feature_info_;
81 } 84 }
82 85
83 void set_in_host_process(bool in_host_process) { 86 void set_in_host_process(bool in_host_process) {
84 in_host_process_ = in_host_process; 87 in_host_process_ = in_host_process;
85 } 88 }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 204
202 base::WeakPtr<GpuService> weak_ptr_; 205 base::WeakPtr<GpuService> weak_ptr_;
203 base::WeakPtrFactory<GpuService> weak_ptr_factory_; 206 base::WeakPtrFactory<GpuService> weak_ptr_factory_;
204 207
205 DISALLOW_COPY_AND_ASSIGN(GpuService); 208 DISALLOW_COPY_AND_ASSIGN(GpuService);
206 }; 209 };
207 210
208 } // namespace ui 211 } // namespace ui
209 212
210 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_ 213 #endif // SERVICES_UI_GPU_GPU_SERVICE_H_
OLDNEW
« no previous file with comments | « services/ui/gpu/gpu_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698