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

Side by Side Diff: webrtc/modules/video_render/windows/video_render_direct3d9.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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 int CloseDevice(); 196 int CloseDevice();
197 197
198 // Transparent related functions 198 // Transparent related functions
199 int SetTransparentColor(LPDIRECT3DTEXTURE9 pTexture, 199 int SetTransparentColor(LPDIRECT3DTEXTURE9 pTexture,
200 DDCOLORKEY* transparentColorKey, 200 DDCOLORKEY* transparentColorKey,
201 DWORD width, 201 DWORD width,
202 DWORD height); 202 DWORD height);
203 203
204 CriticalSectionWrapper& _refD3DCritsect; 204 CriticalSectionWrapper& _refD3DCritsect;
205 Trace* _trace; 205 Trace* _trace;
206 rtc::scoped_ptr<PlatformThread> _screenUpdateThread; 206 // TODO(pbos): Remove scoped_ptr and use PlatformThread directly.
207 rtc::scoped_ptr<rtc::PlatformThread> _screenUpdateThread;
207 EventTimerWrapper* _screenUpdateEvent; 208 EventTimerWrapper* _screenUpdateEvent;
208 209
209 HWND _hWnd; 210 HWND _hWnd;
210 bool _fullScreen; 211 bool _fullScreen;
211 RECT _originalHwndRect; 212 RECT _originalHwndRect;
212 //FIXME we probably don't need this since all the information can be get fro m _d3dChannels 213 //FIXME we probably don't need this since all the information can be get fro m _d3dChannels
213 int _channel; 214 int _channel;
214 //Window size 215 //Window size
215 UINT _winWidth; 216 UINT _winWidth;
216 UINT _winHeight; 217 UINT _winHeight;
(...skipping 27 matching lines...) Expand all
244 float stopWidth, float stopHeight); 245 float stopWidth, float stopHeight);
245 246
246 //code for providing graphics settings 247 //code for providing graphics settings
247 DWORD _totalMemory; 248 DWORD _totalMemory;
248 DWORD _availableMemory; 249 DWORD _availableMemory;
249 }; 250 };
250 251
251 } // namespace webrtc 252 } // namespace webrtc
252 253
253 #endif // WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_WINDOWS_VIDEO_RENDER_DIRECT3D9 _H_ 254 #endif // WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_WINDOWS_VIDEO_RENDER_DIRECT3D9 _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698