package org.robolectric.shadows;

import android.opengl.GLSurfaceView;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;

/** Fake implementation of GLSurfaceView */
@Implements(GLSurfaceView.class)
public class ShadowGLSurfaceView extends ShadowSurfaceView {
  @Implementation
  protected void onPause() {}

  @Implementation
  protected void onResume() {}

  @Implementation
  protected void queueEvent(Runnable r) {
    r.run();
  }
}

package org.robolectric.shadows;

import android.opengl.GLSurfaceView;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;

/** Fake implementation of GLSurfaceView */
@Implements(GLSurfaceView.class)
public class ShadowGLSurfaceView extends ShadowSurfaceView {
  @Implementation
  protected void onPause() {}

  @Implementation
  protected void onResume() {}
}

--- 
+++ 
@@ -12,4 +12,9 @@
 
   @Implementation
   protected void onResume() {}
+
+  @Implementation
+  protected void queueEvent(Runnable r) {
+    r.run();
+  }
 }
Call queued events on GLSurfaceView shadow.

PiperOrigin-RevId: 200641301
