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

Side by Side Diff: webrtc/modules/video_render/mac/video_render_agl.h

Issue 1476453002: Clean up PlatformThread. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: IsRunning DCHECK Created 5 years 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 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 static pascal OSStatus sHandleWindowResized( 135 static pascal OSStatus sHandleWindowResized(
136 EventHandlerCallRef nextHandler, EventRef theEvent, void* userData); 136 EventHandlerCallRef nextHandler, EventRef theEvent, void* userData);
137 static pascal OSStatus sHandleHiViewResized( 137 static pascal OSStatus sHandleHiViewResized(
138 EventHandlerCallRef nextHandler, EventRef theEvent, void* userData); 138 EventHandlerCallRef nextHandler, EventRef theEvent, void* userData);
139 139
140 HIViewRef _hiviewRef; 140 HIViewRef _hiviewRef;
141 WindowRef _windowRef; 141 WindowRef _windowRef;
142 bool _fullScreen; 142 bool _fullScreen;
143 int _id; 143 int _id;
144 webrtc::CriticalSectionWrapper& _renderCritSec; 144 webrtc::CriticalSectionWrapper& _renderCritSec;
145 rtc::scoped_ptr<webrtc::PlatformThread> _screenUpdateThread; 145 // TODO(pbos): Remove scoped_ptr and use PlatformThread directly.
146 rtc::scoped_ptr<rtc::PlatformThread> _screenUpdateThread;
146 webrtc::EventWrapper* _screenUpdateEvent; 147 webrtc::EventWrapper* _screenUpdateEvent;
147 bool _isHIViewRef; 148 bool _isHIViewRef;
148 AGLContext _aglContext; 149 AGLContext _aglContext;
149 int _windowWidth; 150 int _windowWidth;
150 int _windowHeight; 151 int _windowHeight;
151 int _lastWindowWidth; 152 int _lastWindowWidth;
152 int _lastWindowHeight; 153 int _lastWindowHeight;
153 int _lastHiViewWidth; 154 int _lastHiViewWidth;
154 int _lastHiViewHeight; 155 int _lastHiViewHeight;
155 int _currentParentWindowHeight; 156 int _currentParentWindowHeight;
(...skipping 11 matching lines...) Expand all
167 HIRect _currentViewBounds; 168 HIRect _currentViewBounds;
168 HIRect _lastViewBounds; 169 HIRect _lastViewBounds;
169 bool _renderingIsPaused; 170 bool _renderingIsPaused;
170 }; 171 };
171 172
172 } // namespace webrtc 173 } // namespace webrtc
173 174
174 #endif // WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_MAC_VIDEO_RENDER_AGL_H_ 175 #endif // WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_MAC_VIDEO_RENDER_AGL_H_
175 176
176 #endif // CARBON_RENDERING 177 #endif // CARBON_RENDERING
OLDNEW
« no previous file with comments | « webrtc/modules/video_render/ios/video_render_ios_gles20.mm ('k') | webrtc/modules/video_render/mac/video_render_agl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698