50e25b12aea9b1b336e16525c78ca838a3ce6beb
[platform/framework/web/crosswalk.git] / src / third_party / trace-viewer / src / cc / debug_colors.js
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 'use strict';
6
7 /**
8  * @fileoverview Mapping of different tile configuration
9  * to border colors and widths.
10  */
11
12
13 tvcm.exportTo('cc', function() {
14   var tileTypes = {
15     highRes: 'highRes',
16     lowRes: 'lowRes',
17     extraHighRes: 'extraHighRes',
18     extraLowRes: 'extraLowRes',
19     missing: 'missing',
20     culled: 'culled',
21     solidColor: 'solidColor',
22     picture: 'picture',
23     directPicture: 'directPicture',
24     unknown: 'unknown'
25   };
26
27   var tileBorder = {
28     highRes: {
29       color: 'rgba(80, 200, 200, 0.7)',
30       width: 1
31     },
32     lowRes: {
33       color: 'rgba(212, 83, 192, 0.7)',
34       width: 2
35     },
36     extraHighRes: {
37       color: 'rgba(239, 231, 20, 0.7)',
38       width: 2
39     },
40     extraLowRes: {
41       color: 'rgba(93, 186, 18, 0.7)',
42       width: 2
43     },
44     missing: {
45       color: 'rgba(255, 0, 0, 0.7)',
46       width: 1
47     },
48     culled: {
49       color: 'rgba(160, 100, 0, 0.8)',
50       width: 1
51     },
52     solidColor: {
53       color: 'rgba(128, 128, 128, 0.7)',
54       width: 1
55     },
56     picture: {
57       color: 'rgba(64, 64, 64, 0.7)',
58       width: 1
59     },
60     directPicture: {
61       color: 'rgba(127, 255, 0, 1.0)',
62       width: 1
63     },
64     unknown: {
65       color: 'rgba(0, 0, 0, 1.0)',
66       width: 2
67     }
68   };
69
70   return {
71     tileTypes: tileTypes,
72     tileBorder: tileBorder
73   };
74 });