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

Side by Side Diff: services/ui/ws/gpu_host.cc

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 | « services/ui/ws/gpu_host.h ('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 #include "services/ui/ws/gpu_host.h" 5 #include "services/ui/ws/gpu_host.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 gpu_bindings_.AddBinding(std::move(client), std::move(request)); 86 gpu_bindings_.AddBinding(std::move(client), std::move(request));
87 return client_ref; 87 return client_ref;
88 } 88 }
89 89
90 void GpuHost::OnBadMessageFromGpu() { 90 void GpuHost::OnBadMessageFromGpu() {
91 // TODO(sad): Received some unexpected message from the gpu process. We 91 // TODO(sad): Received some unexpected message from the gpu process. We
92 // should kill the process and restart it. 92 // should kill the process and restart it.
93 NOTIMPLEMENTED(); 93 NOTIMPLEMENTED();
94 } 94 }
95 95
96 void GpuHost::DidInitialize(const gpu::GPUInfo& gpu_info) { 96 void GpuHost::DidInitialize(const gpu::GPUInfo& gpu_info,
97 const gpu::GpuFeatureInfo& gpu_feature_info) {
97 gpu_info_ = gpu_info; 98 gpu_info_ = gpu_info;
98 delegate_->OnGpuServiceInitialized(); 99 delegate_->OnGpuServiceInitialized();
99 } 100 }
100 101
102 void GpuHost::DidFailInitialize() {}
103
101 void GpuHost::DidCreateOffscreenContext(const GURL& url) {} 104 void GpuHost::DidCreateOffscreenContext(const GURL& url) {}
102 105
103 void GpuHost::DidDestroyOffscreenContext(const GURL& url) {} 106 void GpuHost::DidDestroyOffscreenContext(const GURL& url) {}
104 107
105 void GpuHost::DidDestroyChannel(int32_t client_id) {} 108 void GpuHost::DidDestroyChannel(int32_t client_id) {}
106 109
107 void GpuHost::DidLoseContext(bool offscreen, 110 void GpuHost::DidLoseContext(bool offscreen,
108 gpu::error::ContextLostReason reason, 111 gpu::error::ContextLostReason reason,
109 const GURL& active_url) {} 112 const GURL& active_url) {}
110 113
(...skipping 22 matching lines...) Expand all
133 void GpuHost::StoreShaderToDisk(int32_t client_id, 136 void GpuHost::StoreShaderToDisk(int32_t client_id,
134 const std::string& key, 137 const std::string& key,
135 const std::string& shader) {} 138 const std::string& shader) {}
136 139
137 void GpuHost::RecordLogMessage(int32_t severity, 140 void GpuHost::RecordLogMessage(int32_t severity,
138 const std::string& header, 141 const std::string& header,
139 const std::string& message) {} 142 const std::string& message) {}
140 143
141 } // namespace ws 144 } // namespace ws
142 } // namespace ui 145 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/gpu_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698