christoffer
88799d9c1f
RTCEAGLVideoView: Fix GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT error.
...
Fix an issue where using setNeedsDisplay on a GLKView which has a frame
with size zero will make GLKView/iOS output the following error:
Failed to bind EAGLDrawable: <CAEAGLLayer: 0x1742282e0> to
GL_RENDERBUFFER 1 Failed to make complete framebuffer object 8cd6
(The error code 8cd6 corresponds to
GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT.)
GLKView will internally setup it's render buffer when the delegate is
about to draw into it. Previously when enableSetNeedsDisplay was set to
YES (default), then GLKView would still attempt to setup it's internal
buffer even if it's frame size is zero and that would cause
GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT.
By using enableSetNeedsDisplay = NO, RTCEAGLVideoView can guard against
calling -[GLKView display] if it's current frame size is empty.
Review URL: https://codereview.webrtc.org/1347013002
Cr-Commit-Position: refs/heads/master@{#10076}
2015-09-25 13:57:54 +00:00
Zeke Chin
ac7d97fea6
Remove frame copy in RTCOpenGLVideoRenderer.
...
BUG=1128
R=magjed@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/44039004
Cr-Commit-Position: refs/heads/master@{#9036}
2015-04-20 21:33:05 +00:00
jlmiller@webrtc.org
5f93d0a140
Update libjingle license statements at top of talk files for consistency
...
BUG=2133
R=juberti@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/39559004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8105 4adac7df-926f-26a2-2b94-8c16560cd09d
2015-01-20 21:36:13 +00:00
tkchin@webrtc.org
7ce4a584aa
Add initWithCoder to RTCEAGLVideoView.
...
Allows for proper OpenGL initialization if view is created from
storyboard.
BUG=3896
R=jiayl@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/34549004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7970 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-12-19 20:47:35 +00:00
tkchin@webrtc.org
8125744a5f
Cleanup RTCVideoRenderer interface.
...
RTCVideoRenderer should be a protocol not a class. This change includes
an adapter for use with the C++ apis. The video views have been refactored
to implement that protocol.
BUG=3795
R=glaznev@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/23279004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7626 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-11-04 23:06:15 +00:00
tkchin@webrtc.org
90750482fa
Remove deprecated RTCVideoRenderer constructor.
...
Removes -[RTCVideoRenderer initWithView]. Also, fix potential issue where we hold on to a video frame longer than the lifetime of its associated track.
BUG=3341
R=glaznev@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/16099004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7032 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-09-02 20:50:00 +00:00
tkchin@webrtc.org
738df8913d
Fix retain cycle in RTCEAGLVideoView.
...
CADisplayLink increases its target's refcount. In order to break retain cycle, we wrap CADisplayLink in a new RTCDisplayLinkTimer class and use that instead.
R=fischman@webrtc.org , noahric@chromium.org
BUG=3391
Review URL: https://webrtc-codereview.appspot.com/16599006
git-svn-id: http://webrtc.googlecode.com/svn/trunk@6331 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-06-04 20:19:39 +00:00
tkchin@webrtc.org
acca675bcf
Implement mac version of AppRTCDemo.
...
- Refactored and moved AppRTCDemo to support sharing AppRTC connection code between iOS and mac counterparts.
- Refactored OpenGL rendering code to be shared between iOS and mac counterparts.
- iOS AppRTCDemo now respects video aspect ratio.
BUG=2168
R=fischman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/17589004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@6291 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-05-30 22:26:06 +00:00
tkchin@webrtc.org
1732a591e7
Add a UIView for rendering a video track.
...
RTCEAGLVideoView provides functionality to render a supplied RTCVideoTrack using OpenGLES2.
R=fischman@webrtc.org
BUG=3188
Review URL: https://webrtc-codereview.appspot.com/12489004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@6192 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-05-19 23:26:01 +00:00