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

Unified Diff: webrtc/sdk/objc/Framework/Classes/RTCShader.mm

Issue 2695203004: Clean up RTCVideoFrame (Closed)
Patch Set: Fix memory leak. Add ObjC rotation enum. Add space in pointer types. Created 3 years, 10 months 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/sdk/objc/Framework/Classes/RTCShader.mm
diff --git a/webrtc/sdk/objc/Framework/Classes/RTCShader.mm b/webrtc/sdk/objc/Framework/Classes/RTCShader.mm
index 26dc64f92bb32d9cd321ff1e336969a62cee9912..155a0165a13a2ca8b3ef0eaf7dff3f4abb49de46 100644
--- a/webrtc/sdk/objc/Framework/Classes/RTCShader.mm
+++ b/webrtc/sdk/objc/Framework/Classes/RTCShader.mm
@@ -138,7 +138,7 @@ BOOL RTCSetupVerticesForProgram(GLuint program, GLuint* vertexBuffer, GLuint* ve
}
// Set vertex data to the currently bound vertex buffer.
-void RTCSetVertexData(webrtc::VideoRotation rotation) {
+void RTCSetVertexData(RTCVideoRotation rotation) {
// When modelview and projection matrices are identity (default) the world is
// contained in the square around origin with unit size 2. Drawing to these
// coordinates is equivalent to drawing to the entire screen. The texture is
@@ -156,16 +156,16 @@ void RTCSetVertexData(webrtc::VideoRotation rotation) {
// Rotate the UV coordinates.
int rotation_offset;
switch (rotation) {
- case webrtc::kVideoRotation_0:
+ case RTCVideoRotation_0:
rotation_offset = 0;
break;
- case webrtc::kVideoRotation_90:
+ case RTCVideoRotation_90:
rotation_offset = 1;
break;
- case webrtc::kVideoRotation_180:
+ case RTCVideoRotation_180:
rotation_offset = 2;
break;
- case webrtc::kVideoRotation_270:
+ case RTCVideoRotation_270:
rotation_offset = 3;
break;
}
« no previous file with comments | « webrtc/sdk/objc/Framework/Classes/RTCOpenGLVideoRenderer.mm ('k') | webrtc/sdk/objc/Framework/Classes/RTCShader+Private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698