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

Unified Diff: webrtc/sdk/android/api/org/webrtc/EglBase.java

Issue 3010233002: Remove static/default interface method usage. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | webrtc/sdk/android/api/org/webrtc/EglRenderer.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/android/api/org/webrtc/EglBase.java
diff --git a/webrtc/sdk/android/api/org/webrtc/EglBase.java b/webrtc/sdk/android/api/org/webrtc/EglBase.java
index 2a8d4e4bd19bf47be708a3eeac9584bf2cd2846b..1f905885cf016d69182064d0127177a2c17f481c 100644
--- a/webrtc/sdk/android/api/org/webrtc/EglBase.java
+++ b/webrtc/sdk/android/api/org/webrtc/EglBase.java
@@ -19,8 +19,7 @@ import javax.microedition.khronos.egl.EGL10;
* Holds EGL state and utility methods for handling an egl 1.0 EGLContext, an EGLDisplay,
* and an EGLSurface.
*/
-@SuppressWarnings("StaticOrDefaultInterfaceMethod")
-public interface EglBase {
+public abstract class EglBase {
// EGL wrapper for an actual EGLContext.
public static class Context {}
@@ -141,34 +140,34 @@ public interface EglBase {
return new EglBase14(new EglBase14.Context(sharedContext), configAttributes);
}
- void createSurface(Surface surface);
+ public abstract void createSurface(Surface surface);
// Create EGLSurface from the Android SurfaceTexture.
- void createSurface(SurfaceTexture surfaceTexture);
+ public abstract void createSurface(SurfaceTexture surfaceTexture);
// Create dummy 1x1 pixel buffer surface so the context can be made current.
- void createDummyPbufferSurface();
+ public abstract void createDummyPbufferSurface();
- void createPbufferSurface(int width, int height);
+ public abstract void createPbufferSurface(int width, int height);
- Context getEglBaseContext();
+ public abstract Context getEglBaseContext();
- boolean hasSurface();
+ public abstract boolean hasSurface();
- int surfaceWidth();
+ public abstract int surfaceWidth();
- int surfaceHeight();
+ public abstract int surfaceHeight();
- void releaseSurface();
+ public abstract void releaseSurface();
- void release();
+ public abstract void release();
- void makeCurrent();
+ public abstract void makeCurrent();
// Detach the current EGL context, so that it can be made current on another thread.
- void detachCurrent();
+ public abstract void detachCurrent();
- void swapBuffers();
+ public abstract void swapBuffers();
- void swapBuffers(long presentationTimeStampNs);
+ public abstract void swapBuffers(long presentationTimeStampNs);
}
« no previous file with comments | « no previous file | webrtc/sdk/android/api/org/webrtc/EglRenderer.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698