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

Unified Diff: cc/debug/debug_colors.cc

Issue 17599002: cc: Add debug rects for touch and wheel event handler regions and slow scrolling areas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Labeled "repaints on scroll" Created 7 years, 6 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 | « cc/debug/debug_colors.h ('k') | cc/debug/debug_rect_history.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/debug_colors.cc
diff --git a/cc/debug/debug_colors.cc b/cc/debug/debug_colors.cc
index bb0514ca91bfdcb0ddf55460775ba028ecffc403..5ffa729210f2a45797726f52bdcfb84168a1608f 100644
--- a/cc/debug/debug_colors.cc
+++ b/cc/debug/debug_colors.cc
@@ -243,6 +243,42 @@ SkColor DebugColors::NonOccludingRectFillColor() {
return SkColorSetARGB(10, 200, 0, 100);
}
+// Touch-event-handler rects in yellow.
+SkColor DebugColors::TouchEventHandlerRectBorderColor() {
+ return SkColorSetARGB(255, 239, 229, 60);
+}
+int DebugColors::TouchEventHandlerRectBorderWidth(
+ const LayerTreeImpl* tree_impl) {
+ return Scale(2, tree_impl);
+}
+SkColor DebugColors::TouchEventHandlerRectFillColor() {
+ return SkColorSetARGB(30, 239, 229, 60);
+}
+
+// Wheel-event-handler rects in green.
+SkColor DebugColors::WheelEventHandlerRectBorderColor() {
+ return SkColorSetARGB(255, 189, 209, 57);
+}
+int DebugColors::WheelEventHandlerRectBorderWidth(
+ const LayerTreeImpl* tree_impl) {
+ return Scale(2, tree_impl);
+}
+SkColor DebugColors::WheelEventHandlerRectFillColor() {
+ return SkColorSetARGB(30, 189, 209, 57);
+}
+
+// Non-fast-scrollable rects in orange.
+SkColor DebugColors::NonFastScrollableRectBorderColor() {
+ return SkColorSetARGB(255, 238, 163, 59);
+}
+int DebugColors::NonFastScrollableRectBorderWidth(
+ const LayerTreeImpl* tree_impl) {
+ return Scale(2, tree_impl);
+}
+SkColor DebugColors::NonFastScrollableRectFillColor() {
+ return SkColorSetARGB(30, 238, 163, 59);
+}
+
// Non-Painted rects in cyan.
SkColor DebugColors::NonPaintedFillColor() { return SK_ColorCYAN; }
« no previous file with comments | « cc/debug/debug_colors.h ('k') | cc/debug/debug_rect_history.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698