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

Side by Side Diff: webrtc/api/android/java/src/org/webrtc/ScreenCapturerAndroid.java

Issue 2373353002: Android: Remove onOutputFormatRequest from the VideoCapturer interface (Closed)
Patch Set: Created 4 years, 2 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 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2016 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 } 142 }
143 }); 143 });
144 } 144 }
145 145
146 146
147 @Override 147 @Override
148 public synchronized void dispose() { 148 public synchronized void dispose() {
149 isDisposed = true; 149 isDisposed = true;
150 } 150 }
151 151
152 @Override
153 public synchronized void onOutputFormatRequest(
154 final int width, final int height, final int framerate) {
155 checkNotDisposed();
156 surfaceTextureHelper.getHandler().post(new Runnable() {
157 @Override
158 public void run() {
159 capturerObserver.onOutputFormatRequest(width, height, framerate);
160 }
161 });
162 }
163
164 /** 152 /**
165 * Changes output video format. This method can be used to scale the output 153 * Changes output video format. This method can be used to scale the output
166 * video, or to change orientation when the captured screen is rotated for exa mple. 154 * video, or to change orientation when the captured screen is rotated for exa mple.
167 * 155 *
168 * @param width new output video width 156 * @param width new output video width
169 * @param height new output video height 157 * @param height new output video height
170 * @param ignoredFramerate ignored 158 * @param ignoredFramerate ignored
171 */ 159 */
172 @Override 160 @Override
173 public synchronized void changeCaptureFormat( 161 public synchronized void changeCaptureFormat(
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 @Override 201 @Override
214 public boolean isScreencast() { 202 public boolean isScreencast() {
215 return true; 203 return true;
216 } 204 }
217 205
218 public long getNumCapturedFrames() { 206 public long getNumCapturedFrames() {
219 return numCapturedFrames; 207 return numCapturedFrames;
220 } 208 }
221 } 209 }
222 210
OLDNEW
« no previous file with comments | « webrtc/api/android/java/src/org/webrtc/CameraCapturer.java ('k') | webrtc/api/android/java/src/org/webrtc/VideoCapturer.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698