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

Side by Side Diff: content/browser/browser_main_loop.h

Issue 879703003: Make in-process gpu init thread safe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 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 #ifndef CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
6 #define CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 6 #define CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 int PreMainMessageLoopRun(); 144 int PreMainMessageLoopRun();
145 145
146 void MainMessageLoopRun(); 146 void MainMessageLoopRun();
147 147
148 base::FilePath GetStartupTraceFileName( 148 base::FilePath GetStartupTraceFileName(
149 const base::CommandLine& command_line) const; 149 const base::CommandLine& command_line) const;
150 void InitStartupTracing(const base::CommandLine& command_line); 150 void InitStartupTracing(const base::CommandLine& command_line);
151 void EndStartupTracing(); 151 void EndStartupTracing();
152 152
153 bool UsingInProcessGpu() const;
154 void InitializeGpuDataManager();
155
153 // Members initialized on construction --------------------------------------- 156 // Members initialized on construction ---------------------------------------
154 const MainFunctionParams& parameters_; 157 const MainFunctionParams& parameters_;
155 const base::CommandLine& parsed_command_line_; 158 const base::CommandLine& parsed_command_line_;
156 int result_code_; 159 int result_code_;
157 // True if the non-UI threads were created. 160 // True if the non-UI threads were created.
158 bool created_threads_; 161 bool created_threads_;
159 162
160 // Members initialized in |MainMessageLoopStart()| --------------------------- 163 // Members initialized in |MainMessageLoopStart()| ---------------------------
161 scoped_ptr<base::MessageLoop> main_message_loop_; 164 scoped_ptr<base::MessageLoop> main_message_loop_;
162 scoped_ptr<base::SystemMonitor> system_monitor_; 165 scoped_ptr<base::SystemMonitor> system_monitor_;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 220
218 // This timer initiates trace file saving. 221 // This timer initiates trace file saving.
219 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_; 222 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_;
220 223
221 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); 224 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop);
222 }; 225 };
223 226
224 } // namespace content 227 } // namespace content
225 228
226 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 229 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_main_loop.cc » ('j') | content/browser/browser_main_loop.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698