commit | 51254331ccb3838b03ed0c630f7e3d5d402d1919 | [log] [tgz] |
---|---|---|
author | Magnus Jedvert <magjed@webrtc.org> | Tue Dec 15 16:22:29 2015 +0100 |
committer | Magnus Jedvert <magjed@webrtc.org> | Tue Dec 15 15:22:38 2015 +0000 |
tree | 9d527a4c8cebd1ee5390f3b5e6d7807c89415d68 | |
parent | 91941ae493cb37a4e1250c7d3aad1c7394b5850e [diff] |
Android: Refactor renderers to allow apps to inject custom shaders This CL: * Abstracts the functions in GlRectDrawer to an interface. * Adds viewport location as argument to the draw() functions, because this information may be needed by some shaders. This also moves the responsibility of calling GLES20.glViewport() to the drawer. * Moves uploadYuvData() into a separate helper class. * Adds new SurfaceViewRenderer.init() function and new VideoRendererGui.create() function that takes a custom drawer as argument. Each YuvImageRenderer in VideoRendererGui now has their own drawer instead of a common one. BUG=b/25694445 R=nisse@webrtc.org, perkj@webrtc.org Review URL: https://codereview.webrtc.org/1520243003 . Cr-Commit-Position: refs/heads/master@{#11031}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others. This page is maintained by the Google Chrome team.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.