OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 protected: | 57 protected: |
58 static bool ScreenUpdateThreadProc(void* obj); | 58 static bool ScreenUpdateThreadProc(void* obj); |
59 | 59 |
60 private: | 60 private: |
61 bool RenderOffScreenBuffers(); | 61 bool RenderOffScreenBuffers(); |
62 int SwapAndDisplayBuffers(); | 62 int SwapAndDisplayBuffers(); |
63 | 63 |
64 private: | 64 private: |
65 rtc::scoped_ptr<CriticalSectionWrapper> gles_crit_sec_; | 65 rtc::scoped_ptr<CriticalSectionWrapper> gles_crit_sec_; |
66 EventTimerWrapper* screen_update_event_; | 66 EventTimerWrapper* screen_update_event_; |
67 rtc::scoped_ptr<PlatformThread> screen_update_thread_; | 67 // TODO(pbos): Remove scoped_ptr and use member directly. |
| 68 rtc::scoped_ptr<rtc::PlatformThread> screen_update_thread_; |
68 | 69 |
69 VideoRenderIosView* view_; | 70 VideoRenderIosView* view_; |
70 Rect window_rect_; | 71 Rect window_rect_; |
71 int window_width_; | 72 int window_width_; |
72 int window_height_; | 73 int window_height_; |
73 bool is_full_screen_; | 74 bool is_full_screen_; |
74 GLint backing_width_; | 75 GLint backing_width_; |
75 GLint backing_height_; | 76 GLint backing_height_; |
76 GLuint view_renderbuffer_; | 77 GLuint view_renderbuffer_; |
77 GLuint view_framebuffer_; | 78 GLuint view_framebuffer_; |
78 GLuint depth_renderbuffer_; | 79 GLuint depth_renderbuffer_; |
79 std::map<int, VideoRenderIosChannel*> agl_channels_; | 80 std::map<int, VideoRenderIosChannel*> agl_channels_; |
80 std::multimap<int, int> z_order_to_channel_; | 81 std::multimap<int, int> z_order_to_channel_; |
81 EAGLContext* gles_context_; | 82 EAGLContext* gles_context_; |
82 bool is_rendering_; | 83 bool is_rendering_; |
83 }; | 84 }; |
84 } // namespace webrtc | 85 } // namespace webrtc |
85 | 86 |
86 #endif // WEBRTC_MODULES_VIDEO_RENDER_IOS_VIDEO_RENDER_IOS_GLES20_H_ | 87 #endif // WEBRTC_MODULES_VIDEO_RENDER_IOS_VIDEO_RENDER_IOS_GLES20_H_ |
OLD | NEW |