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

Unified Diff: webrtc/api/android/java/src/org/webrtc/EglBase10.java

Issue 2377003002: Format all Java in WebRTC. (Closed)
Patch Set: Rebase. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/api/android/java/src/org/webrtc/EglBase10.java
diff --git a/webrtc/api/android/java/src/org/webrtc/EglBase10.java b/webrtc/api/android/java/src/org/webrtc/EglBase10.java
index 5ca429def47054656af0acf9f556a6c8f344699c..bd99bd4aa3743b12efd80342a0533aee17ceba58 100644
--- a/webrtc/api/android/java/src/org/webrtc/EglBase10.java
+++ b/webrtc/api/android/java/src/org/webrtc/EglBase10.java
@@ -159,9 +159,8 @@ public final class EglBase10 extends EglBase {
int[] surfaceAttribs = {EGL10.EGL_WIDTH, width, EGL10.EGL_HEIGHT, height, EGL10.EGL_NONE};
eglSurface = egl.eglCreatePbufferSurface(eglDisplay, eglConfig, surfaceAttribs);
if (eglSurface == EGL10.EGL_NO_SURFACE) {
- throw new RuntimeException(
- "Failed to create pixel buffer surface with size " + width + "x" + height
- + ": 0x" + Integer.toHexString(egl.eglGetError()));
+ throw new RuntimeException("Failed to create pixel buffer surface with size " + width + "x"
+ + height + ": 0x" + Integer.toHexString(egl.eglGetError()));
}
}
@@ -235,7 +234,7 @@ public final class EglBase10 extends EglBase {
public void detachCurrent() {
synchronized (EglBase.lock) {
if (!egl.eglMakeCurrent(
- eglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT)) {
+ eglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT)) {
throw new RuntimeException(
"eglDetachCurrent failed: 0x" + Integer.toHexString(egl.eglGetError()));
}
@@ -272,8 +271,7 @@ public final class EglBase10 extends EglBase {
private EGLConfig getEglConfig(EGLDisplay eglDisplay, int[] configAttributes) {
EGLConfig[] configs = new EGLConfig[1];
int[] numConfigs = new int[1];
- if (!egl.eglChooseConfig(
- eglDisplay, configAttributes, configs, configs.length, numConfigs)) {
+ if (!egl.eglChooseConfig(eglDisplay, configAttributes, configs, configs.length, numConfigs)) {
throw new RuntimeException(
"eglChooseConfig failed: 0x" + Integer.toHexString(egl.eglGetError()));
}
« no previous file with comments | « webrtc/api/android/java/src/org/webrtc/EglBase.java ('k') | webrtc/api/android/java/src/org/webrtc/EglBase14.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698