Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cocos/platform/CCDataManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,10 @@ void DataManager::onShaderLoaderEnd(){
JniHelper::callStaticVoidMethod(DataManagerClassName, "onShaderLoaderEnd");
#endif
}
void DataManager::setOptimise(const std::string& thing, const std::string& value){
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
JniHelper::callStaticVoidMethod(DataManagerClassName, "setOptimise", thing.c_str(), value.c_str());
#endif
}

NS_CC_END
2 changes: 2 additions & 0 deletions cocos/platform/CCDataManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ THE SOFTWARE.
#ifndef __CC_DataManager_H__
#define __CC_DataManager_H__

#include <string>
#include "platform/CCPlatformMacros.h"
#include "base/ccTypes.h"

Expand All @@ -47,6 +48,7 @@ class CC_DLL DataManager
static void onSceneLoaderEnd();
static void onShaderLoaderBegin();
static void onShaderLoaderEnd();
static void setOptimise(const std::string& thing, const std::string& value);
};

// end of platform group
Expand Down