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

Unified Diff: content/common/gpu/client/context_provider_command_buffer.cc

Issue 2550583002: gpu: Thread-safe command buffer state lookup. (Closed)
Patch Set: jbauman's review Created 4 years 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
« no previous file with comments | « cc/test/test_context_support.cc ('k') | content/renderer/pepper/ppb_graphics_3d_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/client/context_provider_command_buffer.cc
diff --git a/content/common/gpu/client/context_provider_command_buffer.cc b/content/common/gpu/client/context_provider_command_buffer.cc
index 74bbf375caece9a56c5883ca887dfb2db98dbfb7..5aa148499e85420e87f71fbd67564b31e9b39e94 100644
--- a/content/common/gpu/client/context_provider_command_buffer.cc
+++ b/content/common/gpu/client/context_provider_command_buffer.cc
@@ -292,9 +292,9 @@ bool ContextProviderCommandBuffer::BindToCurrentThread() {
return false;
}
- if (command_buffer_->GetLastError() != gpu::error::kNoError) {
+ if (command_buffer_->GetLastState().error != gpu::error::kNoError) {
DLOG(ERROR) << "Context dead on arrival. Last error: "
- << command_buffer_->GetLastError();
+ << command_buffer_->GetLastState().error;
return false;
}
@@ -454,6 +454,9 @@ bool ContextProviderCommandBuffer::OnMemoryDump(
if (support_locking_)
hold.emplace(context_lock_);
+ gles2_impl_->OnMemoryDump(args, pmd);
+ gles2_helper_->OnMemoryDump(args, pmd);
+
context_thread_checker_.DetachFromThread();
SkiaGpuTraceMemoryDump trace_memory_dump(
pmd, gles2_impl_->ShareGroupTracingGUID());
« no previous file with comments | « cc/test/test_context_support.cc ('k') | content/renderer/pepper/ppb_graphics_3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698