Clean up PlatformThread.
* Move PlatformThread to rtc::. * Remove ::CreateThread factory method. * Make non-scoped_ptr from a lot of invocations. * Make Start/Stop void. * Remove rtc::Thread priorities, which were unused and would collide. * Add ::IsRunning() to PlatformThread. BUG= R=tommi@webrtc.org Review URL: https://codereview.webrtc.org/1476453002 . Cr-Commit-Position: refs/heads/master@{#10812}
This commit is contained in:
@ -30,9 +30,12 @@
|
||||
|
||||
class Trace;
|
||||
|
||||
namespace rtc {
|
||||
class PlatformThread;
|
||||
} // namespace rtc
|
||||
|
||||
namespace webrtc {
|
||||
class EventTimerWrapper;
|
||||
class PlatformThread;
|
||||
class VideoRenderNSOpenGL;
|
||||
class CriticalSectionWrapper;
|
||||
|
||||
@ -166,7 +169,8 @@ private: // variables
|
||||
bool _fullScreen;
|
||||
int _id;
|
||||
CriticalSectionWrapper& _nsglContextCritSec;
|
||||
rtc::scoped_ptr<PlatformThread> _screenUpdateThread;
|
||||
// TODO(pbos): Remove scoped_ptr and use PlatformThread directly.
|
||||
rtc::scoped_ptr<rtc::PlatformThread> _screenUpdateThread;
|
||||
EventTimerWrapper* _screenUpdateEvent;
|
||||
NSOpenGLContext* _nsglContext;
|
||||
NSOpenGLContext* _nsglFullScreenContext;
|
||||
|
||||
Reference in New Issue
Block a user