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

Unified Diff: services/ui/gpu/gpu_service.h

Issue 2781293003: gpu: Have GpuService create and own GpuMemoryBufferFactory. (Closed)
Patch Set: . Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: services/ui/gpu/gpu_service.h
diff --git a/services/ui/gpu/gpu_service.h b/services/ui/gpu/gpu_service.h
index 63ad9b73f589d9c275320cda16836111462776e8..2e8a3f8878c136d7ed5b4a3fa0d4261b758649af 100644
--- a/services/ui/gpu/gpu_service.h
+++ b/services/ui/gpu/gpu_service.h
@@ -47,7 +47,6 @@ class GpuService : public gpu::GpuChannelManagerDelegate,
public:
GpuService(const gpu::GPUInfo& gpu_info,
std::unique_ptr<gpu::GpuWatchdogThread> watchdog,
- gpu::GpuMemoryBufferFactory* memory_buffer_factory,
scoped_refptr<base::SingleThreadTaskRunner> io_runner,
const gpu::GpuFeatureInfo& gpu_feature_info);
@@ -69,6 +68,8 @@ class GpuService : public gpu::GpuChannelManagerDelegate,
return gpu_channel_manager_.get();
}
+ gpu::ImageFactory* gpu_image_factory();
+
gpu::GpuWatchdogThread* watchdog_thread() { return watchdog_thread_.get(); }
const gpu::GpuFeatureInfo& gpu_feature_info() const {
@@ -158,7 +159,7 @@ class GpuService : public gpu::GpuChannelManagerDelegate,
std::unique_ptr<gpu::GpuWatchdogThread> watchdog_thread_;
- gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory_;
+ std::unique_ptr<gpu::GpuMemoryBufferFactory> gpu_memory_buffer_factory_;
gpu::GpuPreferences gpu_preferences_;

Powered by Google App Engine
This is Rietveld 408576698