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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 130313002: Make correct GL context current during gpu_tracer processing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed lint errors. Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/service/gpu_tracer.h » ('j') | gpu/command_buffer/service/gpu_tracer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 44a09ec8d5fd1c2eb39d6de55c2961d3e7d037a7..d6e306a1724be39d33e7a9335f69d4e7b3b78efa 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -2216,7 +2216,7 @@ bool GLES2DecoderImpl::Initialize(
DCHECK(!context_.get());
set_initialized();
- gpu_tracer_ = GPUTracer::Create();
+ gpu_tracer_ = GPUTracer::Create(base::AsWeakPtr(this));
piman 2014/01/09 02:10:33 Can we avoid weak pointers? Since |gpu_tracer_| is
vmiura 2014/01/09 02:57:02 Done.
gpu_state_tracer_ = GPUStateTracer::Create(&state_);
if (CommandLine::ForCurrentProcess()->HasSwitch(
« no previous file with comments | « no previous file | gpu/command_buffer/service/gpu_tracer.h » ('j') | gpu/command_buffer/service/gpu_tracer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698