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

Side by Side Diff: webrtc/examples/androidtests/src/org/appspot/apprtc/test/PeerConnectionClientTest.java

Issue 1306073003: Android: Remove VideoRenderer.Callbacks.canApplyRotation() (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2014 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 this.rendererName = rendererName; 76 this.rendererName = rendererName;
77 reset(expectedFrames); 77 reset(expectedFrames);
78 } 78 }
79 79
80 // Resets render to wait for new amount of video frames. 80 // Resets render to wait for new amount of video frames.
81 public synchronized void reset(int expectedFrames) { 81 public synchronized void reset(int expectedFrames) {
82 renderFrameCalled = false; 82 renderFrameCalled = false;
83 doneRendering = new CountDownLatch(expectedFrames); 83 doneRendering = new CountDownLatch(expectedFrames);
84 } 84 }
85 85
86 // TODO(guoweis): Remove this once chrome code base is updated.
87 @Override
88 public boolean canApplyRotation() {
89 return false;
90 }
91
guoweis_webrtc 2015/08/24 14:07:35 same here.
magjed_webrtc 2015/08/24 14:18:25 This is just a mock class. The renderFrame() below
guoweis_webrtc 2015/08/24 14:27:12 Let's at least put a comment here that since JNI i
magjed_webrtc 2015/08/24 14:41:56 I replaced width/height with rotatedWidth()/rotate
92 @Override 86 @Override
93 public synchronized void renderFrame(VideoRenderer.I420Frame frame) { 87 public synchronized void renderFrame(VideoRenderer.I420Frame frame) {
94 if (!renderFrameCalled) { 88 if (!renderFrameCalled) {
95 if (rendererName != null) { 89 if (rendererName != null) {
96 Log.d(TAG, rendererName + " render frame: " + frame.width + " x " + fr ame.height); 90 Log.d(TAG, rendererName + " render frame: " + frame.width + " x " + fr ame.height);
97 } else { 91 } else {
98 Log.d(TAG, "Render frame: " + frame.width + " x " + frame.height); 92 Log.d(TAG, "Render frame: " + frame.width + " x " + frame.height);
99 } 93 }
100 } 94 }
101 renderFrameCalled = true; 95 renderFrameCalled = true;
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 localRenderer.waitForFramesRendered(WAIT_TIMEOUT)); 423 localRenderer.waitForFramesRendered(WAIT_TIMEOUT));
430 assertTrue("Remote video frames were not rendered after video restart.", 424 assertTrue("Remote video frames were not rendered after video restart.",
431 remoteRenderer.waitForFramesRendered(WAIT_TIMEOUT)); 425 remoteRenderer.waitForFramesRendered(WAIT_TIMEOUT));
432 } 426 }
433 pcClient.close(); 427 pcClient.close();
434 assertTrue(waitForPeerConnectionClosed(WAIT_TIMEOUT)); 428 assertTrue(waitForPeerConnectionClosed(WAIT_TIMEOUT));
435 Log.d(TAG, "testVideoSourceRestart done."); 429 Log.d(TAG, "testVideoSourceRestart done.");
436 } 430 }
437 431
438 } 432 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698