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

Side by Side Diff: gpu/command_buffer/service/gpu_tracer.cc

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
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 "gpu/command_buffer/service/gpu_tracer.h" 5 #include "gpu/command_buffer/service/gpu_tracer.h"
6 6
7 #include <deque> 7 #include <deque>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "base/trace_event/trace_event.h" 12 #include "base/trace_event/trace_event.h"
13 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 13 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
14 #include "gpu/command_buffer/service/context_group.h" 14 #include "gpu/command_buffer/service/context_group.h"
15 #include "ui/gl/gl_bindings.h"
16 #include "ui/gl/gl_version_info.h" 15 #include "ui/gl/gl_version_info.h"
17 16
18 namespace gpu { 17 namespace gpu {
19 namespace gles2 { 18 namespace gles2 {
20 19
21 static const unsigned int kProcessInterval = 16; 20 static const unsigned int kProcessInterval = 16;
22 static TraceOutputter* g_outputter_thread = NULL; 21 static TraceOutputter* g_outputter_thread = NULL;
23 22
24 TraceMarker::TraceMarker(const std::string& category, const std::string& name) 23 TraceMarker::TraceMarker(const std::string& category, const std::string& name)
25 : category_(category), 24 : category_(category),
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 void GPUTracer::IssueProcessTask() { 320 void GPUTracer::IssueProcessTask() {
322 if (traces_.empty() || process_posted_) 321 if (traces_.empty() || process_posted_)
323 return; 322 return;
324 323
325 process_posted_ = true; 324 process_posted_ = true;
326 PostTask(); 325 PostTask();
327 } 326 }
328 327
329 } // namespace gles2 328 } // namespace gles2
330 } // namespace gpu 329 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_tracer.h ('k') | gpu/command_buffer/service/gpu_tracer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698