Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4574)

Unified Diff: chrome/browser/about_flags.cc

Issue 1126793002: cc: Make tiling interest rect calc based on viewport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use new settings for interest rect calc. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 5d0fe27d9213cc4de7f51cadd9d6f991188b5e3a..45838aa46c2d3356c28347216ffb71080fd42ad5 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -215,16 +215,16 @@ const Experiment::Choice kMarkNonSecureAsChoices[] = {
switches::kMarkNonSecureAs, switches::kMarkNonSecureAsDubious}
};
-const Experiment::Choice kMaxTilesForInterestAreaChoices[] = {
- { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
- { IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_SHORT,
- cc::switches::kMaxTilesForInterestArea, "64"},
- { IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_TALL,
- cc::switches::kMaxTilesForInterestArea, "128"},
- { IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_GRANDE,
- cc::switches::kMaxTilesForInterestArea, "256"},
- { IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_VENTI,
- cc::switches::kMaxTilesForInterestArea, "512"}
+const Experiment::Choice kTilingInterestAreaViewportMultiplier[] = {
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""},
+ { IDS_FLAGS_VIEWPORT_MULTIPLIER_SHORT,
+ cc::switches::kTilingInterestAreaViewportMultiplier,"3"},
+ { IDS_FLAGS_VIEWPORT_MULTIPLIER_TALL,
+ cc::switches::kTilingInterestAreaViewportMultiplier,"9"},
+ { IDS_FLAGS_VIEWPORT_MULTIPLIER_GRANDE,
+ cc::switches::kTilingInterestAreaViewportMultiplier,"25"},
+ { IDS_FLAGS_VIEWPORT_MULTIPLIER_VENTI,
+ cc::switches::kTilingInterestAreaViewportMultiplier,"49"}
};
const Experiment::Choice kShowSavedCopyChoices[] = {
@@ -1313,11 +1313,11 @@ const Experiment kExperiments[] = {
},
#endif
{
- "max-tiles-for-interest-area",
- IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_NAME,
- IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_DESCRIPTION,
+ "tiling-interest-area-viewport-multiplier",
+ IDS_FLAGS_VIEWPORT_MULTIPLIER_NAME,
+ IDS_FLAGS_VIEWPORT_MULTIPLIER_DESCRIPTION,
kOsAll,
- MULTI_VALUE_TYPE(kMaxTilesForInterestAreaChoices)
+ MULTI_VALUE_TYPE(kTilingInterestAreaViewportMultiplier)
},
{
"enable-offer-store-unmasked-wallet-cards",

Powered by Google App Engine
This is Rietveld 408576698