Skip to content

Commit

Permalink
Prep for OpenGL Matrix impl change in SDKs > T.
Browse files Browse the repository at this point in the history
Methods are now implemented in java in new SDK, and thus do not need to be shadowed.

PiperOrigin-RevId: 515784020
  • Loading branch information
brettchabot authored and Copybara-Service committed Mar 16, 2023
1 parent 732acca commit e4e2c1d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.robolectric.shadows;

import static android.os.Build.VERSION_CODES.TIRAMISU;

import android.opengl.Matrix;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
Expand All @@ -25,7 +27,7 @@ public class ShadowOpenGLMatrix {
* @throws IllegalArgumentException if result, lhs, or rhs are null, or if resultOffset + 16 >
* result.length or lhsOffset + 16 > lhs.length or rhsOffset + 16 > rhs.length.
*/
@Implementation
@Implementation(maxSdk = TIRAMISU)
protected static void multiplyMM(
float[] result, int resultOffset, float[] lhs, int lhsOffset, float[] rhs, int rhsOffset) {
if (result == null) {
Expand Down Expand Up @@ -84,7 +86,7 @@ protected static void multiplyMM(
* resultVecOffset + 4 > resultVec.length or lhsMatOffset + 16 > lhsMat.length or rhsVecOffset
* + 4 > rhsVec.length.
*/
@Implementation
@Implementation(maxSdk = TIRAMISU)
protected static void multiplyMV(
float[] resultVec,
int resultVecOffset,
Expand Down

0 comments on commit e4e2c1d

Please sign in to comment.