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

Side by Side Diff: ppapi/proxy/ppapi_command_buffer_proxy.cc

Issue 1916303003: Report lost context from GLES2Implementation based on share group state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lost-share-group: disconnect-channel Created 4 years, 7 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 | « ppapi/proxy/ppapi_command_buffer_proxy.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 (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 #include "ppapi/proxy/ppapi_command_buffer_proxy.h" 5 #include "ppapi/proxy/ppapi_command_buffer_proxy.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/numerics/safe_conversions.h" 9 #include "base/numerics/safe_conversions.h"
10 #include "ppapi/proxy/ppapi_messages.h" 10 #include "ppapi/proxy/ppapi_messages.h"
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 return; 172 return;
173 173
174 Send(new PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer( 174 Send(new PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer(
175 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, id)); 175 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, id));
176 } 176 }
177 177
178 void PpapiCommandBufferProxy::SetLock(base::Lock*) { 178 void PpapiCommandBufferProxy::SetLock(base::Lock*) {
179 NOTIMPLEMENTED(); 179 NOTIMPLEMENTED();
180 } 180 }
181 181
182 bool PpapiCommandBufferProxy::IsGpuChannelLost() {
183 NOTIMPLEMENTED();
184 return false;
185 }
186
187 void PpapiCommandBufferProxy::EnsureWorkVisible() { 182 void PpapiCommandBufferProxy::EnsureWorkVisible() {
188 DCHECK_GE(flushed_fence_sync_release_, validated_fence_sync_release_); 183 DCHECK_GE(flushed_fence_sync_release_, validated_fence_sync_release_);
189 Send(new PpapiHostMsg_PPBGraphics3D_EnsureWorkVisible( 184 Send(new PpapiHostMsg_PPBGraphics3D_EnsureWorkVisible(
190 ppapi::API_ID_PPB_GRAPHICS_3D, resource_)); 185 ppapi::API_ID_PPB_GRAPHICS_3D, resource_));
191 validated_fence_sync_release_ = flushed_fence_sync_release_; 186 validated_fence_sync_release_ = flushed_fence_sync_release_;
192 } 187 }
193 188
194 gpu::CommandBufferNamespace PpapiCommandBufferProxy::GetNamespaceID() const { 189 gpu::CommandBufferNamespace PpapiCommandBufferProxy::GetNamespaceID() const {
195 return gpu::CommandBufferNamespace::GPU_IO; 190 return gpu::CommandBufferNamespace::GPU_IO;
196 } 191 }
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 message->set_unblock(true); 321 message->set_unblock(true);
327 Send(message); 322 Send(message);
328 323
329 flush_info_->flush_pending = false; 324 flush_info_->flush_pending = false;
330 flush_info_->resource.SetHostResource(0, 0); 325 flush_info_->resource.SetHostResource(0, 0);
331 flushed_fence_sync_release_ = pending_fence_sync_release_; 326 flushed_fence_sync_release_ = pending_fence_sync_release_;
332 } 327 }
333 328
334 } // namespace proxy 329 } // namespace proxy
335 } // namespace ppapi 330 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_command_buffer_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698