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

Side by Side Diff: content/gpu/gpu_main.cc

Issue 503253003: Remove implicit conversions from scoped_refptr to T* in content/*/gpu/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « content/common/gpu/media/gpu_video_encode_accelerator.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stdlib.h> 5 #include <stdlib.h>
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <dwmapi.h> 8 #include <dwmapi.h>
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 dead_on_arrival, 341 dead_on_arrival,
342 gpu_info, 342 gpu_info,
343 deferred_messages.Get()); 343 deferred_messages.Get());
344 while (!deferred_messages.Get().empty()) 344 while (!deferred_messages.Get().empty())
345 deferred_messages.Get().pop(); 345 deferred_messages.Get().pop();
346 346
347 child_thread->Init(start_time); 347 child_thread->Init(start_time);
348 348
349 gpu_process.set_main_thread(child_thread); 349 gpu_process.set_main_thread(child_thread);
350 350
351 if (watchdog_thread) 351 if (watchdog_thread.get())
352 watchdog_thread->AddPowerObserver(); 352 watchdog_thread->AddPowerObserver();
353 353
354 { 354 {
355 TRACE_EVENT0("gpu", "Run Message Loop"); 355 TRACE_EVENT0("gpu", "Run Message Loop");
356 main_message_loop.Run(); 356 main_message_loop.Run();
357 } 357 }
358 358
359 child_thread->StopWatchdog(); 359 child_thread->StopWatchdog();
360 360
361 return 0; 361 return 0;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 return true; 512 return true;
513 } 513 }
514 514
515 return false; 515 return false;
516 } 516 }
517 #endif // defined(OS_WIN) 517 #endif // defined(OS_WIN)
518 518
519 } // namespace. 519 } // namespace.
520 520
521 } // namespace content 521 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/media/gpu_video_encode_accelerator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698