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

Side by Side Diff: trunk/src/cc/debug/debug_colors.cc

Issue 13334005: Revert 191400 "cc: Add ‘chromium_code’: 1 to cc.gyp and cc_t..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « trunk/src/cc/cc_tests.gyp ('k') | trunk/src/cc/debug/layer_tree_debug_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/debug/debug_colors.h" 5 #include "cc/debug/debug_colors.h"
6 6
7 #include "cc/trees/layer_tree_impl.h" 7 #include "cc/trees/layer_tree_impl.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
11 static float Scale(float width, const LayerTreeImpl* tree_impl) { 11 static const float Scale(float width, const LayerTreeImpl* tree_impl) {
12 return width * (tree_impl ? tree_impl->device_scale_factor() : 1); 12 return width * (tree_impl ? tree_impl->device_scale_factor() : 1);
13 } 13 }
14 14
15 // ======= Layer border colors ======= 15 // ======= Layer border colors =======
16 16
17 // Tiled content layers are orange. 17 // Tiled content layers are orange.
18 SkColor DebugColors::TiledContentLayerBorderColor() { 18 SkColor DebugColors::TiledContentLayerBorderColor() {
19 return SkColorSetARGB(128, 255, 128, 0); 19 return SkColorSetARGB(128, 255, 128, 0);
20 } 20 }
21 int DebugColors::TiledContentLayerBorderWidth(const LayerTreeImpl* tree_impl) { 21 int DebugColors::TiledContentLayerBorderWidth(const LayerTreeImpl* tree_impl) {
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 SkColor DebugColors::MemoryDisplayTextColor() { 254 SkColor DebugColors::MemoryDisplayTextColor() {
255 return SkColorSetARGB(255, 220, 220, 220); 255 return SkColorSetARGB(255, 220, 220, 220);
256 } 256 }
257 257
258 // Paint time display in green (similar to paint times in the WebInspector) 258 // Paint time display in green (similar to paint times in the WebInspector)
259 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() { 259 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() {
260 return SkColorSetRGB(75, 155, 55); 260 return SkColorSetRGB(75, 155, 55);
261 } 261 }
262 262
263 } // namespace cc 263 } // namespace cc
OLDNEW
« no previous file with comments | « trunk/src/cc/cc_tests.gyp ('k') | trunk/src/cc/debug/layer_tree_debug_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698