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

Side by Side Diff: content/browser/gpu/gpu_process_host.h

Issue 2781553002: gpu: Introduce separate mojo api for failed initialization. (Closed)
Patch Set: . Created 3 years, 8 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 | « no previous file | content/browser/gpu/gpu_process_host.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_BROWSER_GPU_GPU_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 void RouteOnUIThread(const IPC::Message& message); 177 void RouteOnUIThread(const IPC::Message& message);
178 178
179 // BrowserChildProcessHostDelegate implementation. 179 // BrowserChildProcessHostDelegate implementation.
180 bool OnMessageReceived(const IPC::Message& message) override; 180 bool OnMessageReceived(const IPC::Message& message) override;
181 void OnChannelConnected(int32_t peer_pid) override; 181 void OnChannelConnected(int32_t peer_pid) override;
182 void OnProcessLaunched() override; 182 void OnProcessLaunched() override;
183 void OnProcessLaunchFailed(int error_code) override; 183 void OnProcessLaunchFailed(int error_code) override;
184 void OnProcessCrashed(int exit_code) override; 184 void OnProcessCrashed(int exit_code) override;
185 185
186 // ui::mojom::GpuHost: 186 // ui::mojom::GpuHost:
187 void DidInitialize(const gpu::GPUInfo& gpu_info) override; 187 void DidInitialize(const gpu::GPUInfo& gpu_info,
188 const gpu::GpuFeatureInfo& gpu_feature_info) override;
189 void DidFailInitialize() override;
188 void DidCreateOffscreenContext(const GURL& url) override; 190 void DidCreateOffscreenContext(const GURL& url) override;
189 void DidDestroyOffscreenContext(const GURL& url) override; 191 void DidDestroyOffscreenContext(const GURL& url) override;
190 void DidDestroyChannel(int32_t client_id) override; 192 void DidDestroyChannel(int32_t client_id) override;
191 void DidLoseContext(bool offscreen, 193 void DidLoseContext(bool offscreen,
192 gpu::error::ContextLostReason reason, 194 gpu::error::ContextLostReason reason,
193 const GURL& active_url) override; 195 const GURL& active_url) override;
194 void SetChildSurface(gpu::SurfaceHandle parent, 196 void SetChildSurface(gpu::SurfaceHandle parent,
195 gpu::SurfaceHandle child) override; 197 gpu::SurfaceHandle child) override;
196 void StoreShaderToDisk(int32_t client_id, 198 void StoreShaderToDisk(int32_t client_id,
197 const std::string& key, 199 const std::string& key,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 gpu::GpuProcessHostActivityFlags activity_flags_; 303 gpu::GpuProcessHostActivityFlags activity_flags_;
302 304
303 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_; 305 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_;
304 306
305 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 307 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
306 }; 308 };
307 309
308 } // namespace content 310 } // namespace content
309 311
310 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 312 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698