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

Side by Side Diff: content/gpu/gpu_child_thread.h

Issue 2781553002: gpu: Introduce separate mojo api for failed initialization. (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 unified diff | Download patch
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 DeferredMessages deferred_messages, 65 DeferredMessages deferred_messages,
66 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory); 66 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory);
67 67
68 GpuChildThread(const InProcessChildThreadParams& params, 68 GpuChildThread(const InProcessChildThreadParams& params,
69 const gpu::GPUInfo& gpu_info, 69 const gpu::GPUInfo& gpu_info,
70 const gpu::GpuFeatureInfo& gpu_feature_info, 70 const gpu::GpuFeatureInfo& gpu_feature_info,
71 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory); 71 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory);
72 72
73 ~GpuChildThread() override; 73 ~GpuChildThread() override;
74 74
75 void Shutdown() override;
76
77 void Init(const base::Time& process_start_time); 75 void Init(const base::Time& process_start_time);
78 76
79 private: 77 private:
80 GpuChildThread(const ChildThreadImpl::Options& options, 78 GpuChildThread(const ChildThreadImpl::Options& options,
81 std::unique_ptr<gpu::GpuWatchdogThread> gpu_watchdog_thread, 79 std::unique_ptr<gpu::GpuWatchdogThread> gpu_watchdog_thread,
82 bool dead_on_arrival, 80 bool dead_on_arrival,
83 bool in_browser_process, 81 bool in_browser_process,
84 const gpu::GPUInfo& gpu_info, 82 const gpu::GPUInfo& gpu_info,
85 const gpu::GpuFeatureInfo& gpu_feature_info, 83 const gpu::GpuFeatureInfo& gpu_feature_info,
86 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory); 84 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 AssociatedInterfaceRegistryImpl associated_interfaces_; 141 AssociatedInterfaceRegistryImpl associated_interfaces_;
144 std::unique_ptr<ui::GpuService> gpu_service_; 142 std::unique_ptr<ui::GpuService> gpu_service_;
145 mojo::AssociatedBinding<ui::mojom::GpuMain> gpu_main_binding_; 143 mojo::AssociatedBinding<ui::mojom::GpuMain> gpu_main_binding_;
146 144
147 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); 145 DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
148 }; 146 };
149 147
150 } // namespace content 148 } // namespace content
151 149
152 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ 150 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698