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

Side by Side Diff: webrtc/api/androidtests/src/org/webrtc/CameraVideoCapturerTestFixtures.java

Issue 2127893002: AndroidVideoTrackSource implementation (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@magjed-init
Patch Set: Change videoSourceStopped to videoCapturerStopped. Created 4 years, 5 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 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2015 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 package org.webrtc; 10 package org.webrtc;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 public void onCapturerStarted(boolean success) { 98 public void onCapturerStarted(boolean success) {
99 Logging.d(TAG, "onCapturerStarted: " + success); 99 Logging.d(TAG, "onCapturerStarted: " + success);
100 100
101 synchronized (capturerStartLock) { 101 synchronized (capturerStartLock) {
102 capturerStartResult = success; 102 capturerStartResult = success;
103 capturerStartLock.notifyAll(); 103 capturerStartLock.notifyAll();
104 } 104 }
105 } 105 }
106 106
107 @Override 107 @Override
108 public void onCapturerStopped() {
109 Logging.d(TAG, "onCapturerStopped");
110 }
111
112 @Override
108 public void onByteBufferFrameCaptured(byte[] frame, int width, int height, i nt rotation, 113 public void onByteBufferFrameCaptured(byte[] frame, int width, int height, i nt rotation,
109 long timeStamp) { 114 long timeStamp) {
110 synchronized (frameLock) { 115 synchronized (frameLock) {
111 ++framesCaptured; 116 ++framesCaptured;
112 frameSize = frame.length; 117 frameSize = frame.length;
113 frameWidth = width; 118 frameWidth = width;
114 frameHeight = height; 119 frameHeight = height;
115 timestamps.add(timeStamp); 120 timestamps.add(timeStamp);
116 frameLock.notify(); 121 frameLock.notify();
117 } 122 }
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 final Object competingCamera = testObjectFactory.rawOpenCamera(cameraName); 702 final Object competingCamera = testObjectFactory.rawOpenCamera(cameraName);
698 703
699 startCapture(capturerInstance); 704 startCapture(capturerInstance);
700 705
701 capturerInstance.capturer.stopCapture(); 706 capturerInstance.capturer.stopCapture();
702 disposeCapturer(capturerInstance); 707 disposeCapturer(capturerInstance);
703 708
704 testObjectFactory.rawCloseCamera(competingCamera); 709 testObjectFactory.rawCloseCamera(competingCamera);
705 } 710 }
706 } 711 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698