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

Unified Diff: tools/cc-frame-viewer/src/color_mappings.js

Issue 12287014: [cc-frame-viewer] Show layers and levels of detail (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 10 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
« no previous file with comments | « tools/cc-frame-viewer/src/base/deps.js ('k') | tools/cc-frame-viewer/src/layer_impl_view.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cc-frame-viewer/src/color_mappings.js
diff --git a/tools/cc-frame-viewer/src/color_mappings.js b/tools/cc-frame-viewer/src/color_mappings.js
index e7af8d7a01ded0a91ec587e28bfda7503b078fe9..e8a1076ff2c1746d28a0e824f0cbcdb2b64839bf 100644
--- a/tools/cc-frame-viewer/src/color_mappings.js
+++ b/tools/cc-frame-viewer/src/color_mappings.js
@@ -30,8 +30,8 @@ base.exportTo('ccfv', function() {
];
// time_to_visible_in_seconds.
- var colorRedLo = new Color(255, 0, 0, 0.5);
- var colorRedHi = new Color(0, 0, 255, 0.5);
+ var colorRedLo = new Color(255, 0, 0, 1);
+ var colorRedHi = new Color(0, 0, 255, 1);
allTileColorMaps.push({
title: 'time_to_visible_in_seconds',
getValueForTile: function(tile, priority) {
@@ -48,8 +48,8 @@ base.exportTo('ccfv', function() {
});
// Distance.
- var colorGreenLo = new Color(0, 0, 255, 0.4);
- var colorGreenHi = new Color(0, 255, 0, 0.4);
+ var colorGreenLo = new Color(0, 0, 255, 1);
+ var colorGreenHi = new Color(0, 255, 0, 1);
allTileColorMaps.push({
title: 'distance_to_visible_in_pixels',
getValueForTile: function(tile, priority) {
@@ -89,10 +89,11 @@ base.exportTo('ccfv', function() {
// bins of various types
var binToColorAsString = {
- 'NOW_BIN': new Color(0, 0, 255, 0.5).toString(),
- 'SOON_BIN': new Color(255, 255, 0, 0.5).toString(),
- 'EVENTUALLY_BIN': new Color(0, 255, 255, 0.5).toString(),
- 'NEVER_BIN': new Color(128, 128, 128, 0.25).toString()
+ 'NOW_BIN': new Color(0, 0, 255, 1).toString(),
+ 'SOON_BIN': new Color(255, 255, 0, 1).toString(),
+ 'EVENTUALLY_BIN': new Color(0, 255, 255, 1).toString(),
+ 'NEVER_BIN': new Color(128, 128, 128, 1).toString(),
+ '<unknown TileManagerBin value>': new Color(255, 0, 0, 1).toString()
};
allTileColorMaps.push({
« no previous file with comments | « tools/cc-frame-viewer/src/base/deps.js ('k') | tools/cc-frame-viewer/src/layer_impl_view.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698