Skip to content

Commit

Permalink
update oppo sdk. (#19864)
Browse files Browse the repository at this point in the history
  • Loading branch information
xianyinchen authored and minggo committed Jun 26, 2019
1 parent e8bc4b3 commit 2ac747c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Binary file modified cocos/platform/android/java/libs/oppoSDK.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,27 @@ of this software and associated documentation files (the "Software"), to deal
import com.oppo.oiface.engine.OifaceGameEngineManager;

public class Cocos2dxDataManager {
public static void setOptimise(String thing, float value){
public static void setOptimise(String thing, String value){
String jsonStr = "{\"" + thing + "\":" + String.valueOf(value) + "}";
OifaceGameEngineManager.getInstance().updateGameEngineInfo(jsonStr);
}

public static void setProcessID(int pid){
setOptimise("render_pid", pid);
setOptimise("render_pid", String.valueOf(pid));
}
public static void setFrameSize(int width, int height){
setOptimise("buffer_size", width * height);
setOptimise("buffer_size", String.valueOf(width * height));
}
public static void onSceneLoaderBegin(){
setOptimise("load_scene", 1);
setOptimise("load_scene", String.valueOf(1));
}
public static void onSceneLoaderEnd(){
setOptimise("load_scene", 0);
setOptimise("load_scene", String.valueOf(0));
}
public static void onShaderLoaderBegin(){
setOptimise("shader_compile", 1);
setOptimise("shader_compile", String.valueOf(1));
}
public static void onShaderLoaderEnd(){
setOptimise("shader_compile", 0);
setOptimise("shader_compile", String.valueOf(0));
}
}

0 comments on commit 2ac747c

Please sign in to comment.