[core] Remove programCacheDir parameter from ProgramParameters
Binary shader support has been removed in commit c2f974f2a5 ([core]
Remove binary shader support). This left-over parameter is not used
anywhere anymore.
This commit is contained in:
@@ -8,7 +8,6 @@ import android.support.annotation.NonNull;
|
||||
import com.mapbox.mapboxsdk.LibraryLoader;
|
||||
import com.mapbox.mapboxsdk.log.Logger;
|
||||
import com.mapbox.mapboxsdk.maps.MapboxMap;
|
||||
import com.mapbox.mapboxsdk.storage.FileSource;
|
||||
|
||||
import javax.microedition.khronos.egl.EGLConfig;
|
||||
import javax.microedition.khronos.opengles.GL10;
|
||||
@@ -36,10 +35,9 @@ public abstract class MapRenderer implements MapRendererScheduler {
|
||||
|
||||
public MapRenderer(@NonNull Context context, String localIdeographFontFamily) {
|
||||
float pixelRatio = context.getResources().getDisplayMetrics().density;
|
||||
String programCacheDir = FileSource.getInternalCachePath(context);
|
||||
|
||||
// Initialise native peer
|
||||
nativeInitialize(this, pixelRatio, programCacheDir, localIdeographFontFamily);
|
||||
nativeInitialize(this, pixelRatio, localIdeographFontFamily);
|
||||
}
|
||||
|
||||
public void onStart() {
|
||||
@@ -119,7 +117,6 @@ public abstract class MapRenderer implements MapRendererScheduler {
|
||||
|
||||
private native void nativeInitialize(MapRenderer self,
|
||||
float pixelRatio,
|
||||
String programCacheDir,
|
||||
String localIdeographFontFamily);
|
||||
|
||||
@CallSuper
|
||||
|
||||
@@ -339,11 +339,9 @@ public class MapSnapshotter {
|
||||
fileSource.setApiBaseUrl(apiBaseUrl);
|
||||
}
|
||||
|
||||
String programCacheDir = FileSource.getInternalCachePath(context);
|
||||
|
||||
nativeInitialize(this, fileSource, options.pixelRatio, options.width,
|
||||
options.height, options.styleUri, options.styleJson, options.region, options.cameraPosition,
|
||||
options.showLogo, programCacheDir, options.localIdeographFontFamily);
|
||||
options.showLogo, options.localIdeographFontFamily);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -625,8 +623,7 @@ public class MapSnapshotter {
|
||||
FileSource fileSource, float pixelRatio,
|
||||
int width, int height, String styleUrl, String styleJson,
|
||||
LatLngBounds region, CameraPosition position,
|
||||
boolean showLogo, String programCacheDir,
|
||||
String localIdeographFontFamily);
|
||||
boolean showLogo, String localIdeographFontFamily);
|
||||
|
||||
@Keep
|
||||
protected native void nativeStart();
|
||||
|
||||
Reference in New Issue
Block a user