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

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

Issue 1081483002: GPU Tracer no longer issue device traces when device category is off. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gpu_tracer.cc
diff --git a/gpu/command_buffer/service/gpu_tracer.cc b/gpu/command_buffer/service/gpu_tracer.cc
index a633959f385d11f9ff0ad72f543bc3bd5d2b8543..c38ced703578ec6c9c9bbc7b220852cc65ecc4d1 100644
--- a/gpu/command_buffer/service/gpu_tracer.cc
+++ b/gpu/command_buffer/service/gpu_tracer.cc
@@ -90,7 +90,8 @@ GPUTrace::GPUTrace(scoped_refptr<Outputter> outputter,
name_(name),
outputter_(outputter),
enabled_(enabled) {
- if (gpu_timing_client->IsAvailable() &&
+ if (enabled &&
vmiura 2015/04/10 22:18:50 Thinking about this, "enabled" here and "tracing_s
David Yen 2015/04/10 22:36:09 Done.
+ gpu_timing_client->IsAvailable() &&
gpu_timing_client->IsTimerOffsetAvailable()) {
gpu_timer_ = gpu_timing_client->CreateGPUTimer();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698