From 907657faafab07773246125c1a3427135a625bae Mon Sep 17 00:00:00 2001 From: liyuqian Date: Thu, 11 Jul 2019 11:24:43 -0700 Subject: [PATCH] Add comments to differentiate two cache paths (flutter/engine#9721) --- engine/src/flutter/shell/common/switches.h | 6 +++++- engine/src/flutter/shell/platform/embedder/embedder.h | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/common/switches.h b/engine/src/flutter/shell/common/switches.h index d80e942783..290d56d31d 100644 --- a/engine/src/flutter/shell/common/switches.h +++ b/engine/src/flutter/shell/common/switches.h @@ -49,7 +49,11 @@ DEF_SWITCH(IsolateSnapshotInstructions, "isolate-snapshot-instr", "The isolate instructions snapshot that will be memory mapped as " "read and executable. SnapshotAssetPath must be present.") -DEF_SWITCH(CacheDirPath, "cache-dir-path", "Path to the cache directory.") +DEF_SWITCH(CacheDirPath, + "cache-dir-path", + "Path to the cache directory. " + "This is different from the persistent_cache_path in embedder.h, " + "which is used for Skia shader cache.") DEF_SWITCH(ICUDataFilePath, "icu-data-file-path", "Path to the ICU data file.") DEF_SWITCH(ICUSymbolPrefix, "icu-symbol-prefix", diff --git a/engine/src/flutter/shell/platform/embedder/embedder.h b/engine/src/flutter/shell/platform/embedder/embedder.h index 2d6e4205e3..f0107676e4 100644 --- a/engine/src/flutter/shell/platform/embedder/embedder.h +++ b/engine/src/flutter/shell/platform/embedder/embedder.h @@ -653,6 +653,9 @@ typedef struct { // Path to a directory used to store data that is cached across runs of a // Flutter application (such as compiled shader programs used by Skia). // This is optional. The string must be NULL terminated. + // + // This is different from the cache-path-dir argument defined in switches.h, + // which is used in |flutter::Settings| as |temp_directory_path|. const char* persistent_cache_path; // If true, we'll only read the existing cache, but not write new ones.