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

Side by Side Diff: webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java

Issue 1273803002: Android VideoRendererGui: Add dispose function (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 4 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
« no previous file with comments | « talk/app/webrtc/java/src/org/webrtc/VideoRenderer.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 10
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 } 272 }
273 273
274 @Override 274 @Override
275 protected void onDestroy() { 275 protected void onDestroy() {
276 disconnect(); 276 disconnect();
277 super.onDestroy(); 277 super.onDestroy();
278 if (logToast != null) { 278 if (logToast != null) {
279 logToast.cancel(); 279 logToast.cancel();
280 } 280 }
281 activityRunning = false; 281 activityRunning = false;
282 VideoRendererGui.dispose();
282 } 283 }
283 284
284 // CallFragment.OnCallEvents interface implementation. 285 // CallFragment.OnCallEvents interface implementation.
285 @Override 286 @Override
286 public void onCallHangUp() { 287 public void onCallHangUp() {
287 disconnect(); 288 disconnect();
288 } 289 }
289 290
290 @Override 291 @Override
291 public void onCameraSwitch() { 292 public void onCameraSwitch() {
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 } 639 }
639 } 640 }
640 }); 641 });
641 } 642 }
642 643
643 @Override 644 @Override
644 public void onPeerConnectionError(final String description) { 645 public void onPeerConnectionError(final String description) {
645 reportError(description); 646 reportError(description);
646 } 647 }
647 } 648 }
OLDNEW
« no previous file with comments | « talk/app/webrtc/java/src/org/webrtc/VideoRenderer.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698