OLD | NEW |
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 "base/macros.h" | 5 #include "base/macros.h" |
6 | 6 |
7 #include "cc/debug/debug_colors.h" | 7 #include "cc/debug/debug_colors.h" |
8 | 8 |
9 #include "cc/trees/layer_tree_impl.h" | 9 #include "cc/trees/layer_tree_impl.h" |
10 | 10 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 209 |
210 // Layer screen space rects in purple. | 210 // Layer screen space rects in purple. |
211 SkColor DebugColors::ScreenSpaceSurfaceReplicaRectBorderColor() { | 211 SkColor DebugColors::ScreenSpaceSurfaceReplicaRectBorderColor() { |
212 return SkColorSetARGB(255, 100, 0, 200); | 212 return SkColorSetARGB(255, 100, 0, 200); |
213 } | 213 } |
214 int DebugColors::ScreenSpaceSurfaceReplicaRectBorderWidth() { return 2; } | 214 int DebugColors::ScreenSpaceSurfaceReplicaRectBorderWidth() { return 2; } |
215 SkColor DebugColors::ScreenSpaceSurfaceReplicaRectFillColor() { | 215 SkColor DebugColors::ScreenSpaceSurfaceReplicaRectFillColor() { |
216 return SkColorSetARGB(10, 100, 0, 200); | 216 return SkColorSetARGB(10, 100, 0, 200); |
217 } | 217 } |
218 | 218 |
219 // Occluding rects in pink. | |
220 SkColor DebugColors::OccludingRectBorderColor() { | |
221 return SkColorSetARGB(255, 245, 136, 255); | |
222 } | |
223 int DebugColors::OccludingRectBorderWidth() { return 2; } | |
224 SkColor DebugColors::OccludingRectFillColor() { | |
225 return SkColorSetARGB(10, 245, 136, 255); | |
226 } | |
227 | |
228 // Non-Occluding rects in a reddish color. | |
229 SkColor DebugColors::NonOccludingRectBorderColor() { | |
230 return SkColorSetARGB(255, 200, 0, 100); | |
231 } | |
232 int DebugColors::NonOccludingRectBorderWidth() { return 2; } | |
233 SkColor DebugColors::NonOccludingRectFillColor() { | |
234 return SkColorSetARGB(10, 200, 0, 100); | |
235 } | |
236 | |
237 // Touch-event-handler rects in yellow. | 219 // Touch-event-handler rects in yellow. |
238 SkColor DebugColors::TouchEventHandlerRectBorderColor() { | 220 SkColor DebugColors::TouchEventHandlerRectBorderColor() { |
239 return SkColorSetARGB(255, 239, 229, 60); | 221 return SkColorSetARGB(255, 239, 229, 60); |
240 } | 222 } |
241 int DebugColors::TouchEventHandlerRectBorderWidth() { return 2; } | 223 int DebugColors::TouchEventHandlerRectBorderWidth() { return 2; } |
242 SkColor DebugColors::TouchEventHandlerRectFillColor() { | 224 SkColor DebugColors::TouchEventHandlerRectFillColor() { |
243 return SkColorSetARGB(30, 239, 229, 60); | 225 return SkColorSetARGB(30, 239, 229, 60); |
244 } | 226 } |
245 | 227 |
246 // Wheel-event-handler rects in green. | 228 // Wheel-event-handler rects in green. |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 SkColor DebugColors::MemoryDisplayTextColor() { | 294 SkColor DebugColors::MemoryDisplayTextColor() { |
313 return SkColorSetARGB(255, 220, 220, 220); | 295 return SkColorSetARGB(255, 220, 220, 220); |
314 } | 296 } |
315 | 297 |
316 // Paint time display in green (similar to paint times in the WebInspector) | 298 // Paint time display in green (similar to paint times in the WebInspector) |
317 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() { | 299 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() { |
318 return SkColorSetRGB(75, 155, 55); | 300 return SkColorSetRGB(75, 155, 55); |
319 } | 301 } |
320 | 302 |
321 } // namespace cc | 303 } // namespace cc |
OLD | NEW |