File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ set_property(GLOBAL PROPERTY OS_FOLDERS ON)
120120#
121121
122122# Specify the CEF distribution version.
123- set (CEF_VERSION "3.3202.1686.gd665578 " )
123+ set (CEF_VERSION "3.3239.1716.g735b746 " )
124124
125125# Determine the platform.
126126if ("${CMAKE_SYSTEM_NAME } " STREQUAL "Darwin" )
Original file line number Diff line number Diff line change @@ -18,8 +18,10 @@ std::set<std::string>& GetTempFilesSet() {
1818
1919} // namespace
2020
21- ClientApp::ClientApp (const std::string& module_dir, const jobject app_handler)
22- : module_dir_(module_dir), app_handler_(NULL ) {
21+ ClientApp::ClientApp (const std::string& module_dir,
22+ const std::string& cache_path,
23+ const jobject app_handler)
24+ : module_dir_(module_dir), cache_path_(cache_path), app_handler_(NULL ) {
2325 JNIEnv* env = GetJNIEnv ();
2426 if (env)
2527 app_handler_ = env->NewGlobalRef (app_handler);
@@ -71,11 +73,18 @@ void ClientApp::OnBeforeCommandLineProcessing(
7173 // due Java7 is CALayer based instead of NSLayer based.
7274 command_line->AppendSwitch (" use-core-animation" );
7375#endif // defined(OS_MACOSX)
76+
7477#if defined(OS_WIN)
7578 // To avoid shutdown issues extensions should not be used in combination
7679 // with multi-threaded-message-loop.
7780 command_line->AppendSwitch (" disable-extensions" );
7881#endif
82+
83+ if (cache_path_.empty () &&
84+ !command_line->HasSwitch (" disable-gpu-shader-disk-cache" )) {
85+ // Don't create a "GPUCache" directory when cache_path is unspecified.
86+ command_line->AppendSwitch (" disable-gpu-shader-disk-cache" );
87+ }
7988 }
8089}
8190
Original file line number Diff line number Diff line change 1313// ClientApp implementation.
1414class ClientApp : public CefApp {
1515 public:
16- explicit ClientApp (const std::string& module_dir, const jobject app_handler);
16+ ClientApp (const std::string& module_dir,
17+ const std::string& cache_path,
18+ const jobject app_handler);
1719 virtual ~ClientApp ();
1820
1921 // CefApp methods
@@ -37,7 +39,8 @@ class ClientApp : public CefApp {
3739 static void eraseTempFiles ();
3840
3941 protected:
40- std::string module_dir_;
42+ const std::string module_dir_;
43+ const std::string cache_path_;
4144 jobject app_handler_;
4245 CefRefPtr<BrowserProcessHandler> process_handler_;
4346
Original file line number Diff line number Diff line change @@ -101,7 +101,8 @@ bool Context::Initialize(JNIEnv* env,
101101 // DoMessageLoopWork.
102102 settings.external_message_pump = external_message_pump_;
103103
104- CefRefPtr<ClientApp> client_app (new ClientApp (module_dir, appHandler));
104+ CefRefPtr<ClientApp> client_app (
105+ new ClientApp (module_dir, CefString (&settings.cache_path ), appHandler));
105106 bool res = false ;
106107
107108#if defined(OS_POSIX)
Original file line number Diff line number Diff line change @@ -103,10 +103,14 @@ else
103103 cp -f $OUT_BINARY_PATH /jcef_helper $DISTRIB_LIB_PATH
104104 cp -f $OUT_BINARY_PATH /icudtl.dat $DISTRIB_LIB_PATH
105105 cp -f $OUT_BINARY_PATH /libcef.so $DISTRIB_LIB_PATH
106+ cp -f $OUT_BINARY_PATH /libEGL.so $DISTRIB_LIB_PATH
107+ cp -f $OUT_BINARY_PATH /libGLESv2.so $DISTRIB_LIB_PATH
106108 cp -f $OUT_BINARY_PATH /natives_blob.bin $DISTRIB_LIB_PATH
107109 cp -f $OUT_BINARY_PATH /snapshot_blob.bin $DISTRIB_LIB_PATH
110+ cp -f $OUT_BINARY_PATH /v8_context_snapshot.bin $DISTRIB_LIB_PATH
108111 cp -f $OUT_BINARY_PATH /* .pak $DISTRIB_LIB_PATH
109112 cp -rf $OUT_BINARY_PATH /locales/ $DISTRIB_LIB_PATH
113+ cp -rf $OUT_BINARY_PATH /swiftshader/ $DISTRIB_LIB_PATH
110114 fi
111115
112116 cd tools
You can’t perform that action at this time.
0 commit comments