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

Unified Diff: cc/debug/debug_colors.cc

Issue 13863015: Add flag for drawing layers to screen with Ganesh (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Stencil buffer support, --draw-layers-with-ganesh 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/debug/debug_colors.h ('k') | cc/layers/layer_impl.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 00b1e07a5fc36becff2f39dff9f9e636fac2678a..4afc31320b79217da2b1f60d4478caffd6b6ce50 100644
--- a/cc/debug/debug_colors.cc
+++ b/cc/debug/debug_colors.cc
@@ -129,8 +129,20 @@ int DebugColors::SolidColorTileBorderWidth(const LayerTreeImpl* tree_impl) {
}
// Picture tile borders are dark grey.
-SkColor DebugColors::PictureTileBorderColor() { return SkColorSetARGB(64, 64, 64, 0); }
-int DebugColors::PictureTileBorderWidth(const LayerTreeImpl* tree_impl) { return Scale(1, tree_impl); }
+SkColor DebugColors::PictureTileBorderColor() {
+ return SkColorSetARGB(64, 64, 64, 0);
+}
+int DebugColors::PictureTileBorderWidth(const LayerTreeImpl* tree_impl) {
+ return Scale(1, tree_impl);
+}
+
+// Direct picture tile borders are chartreuse
+SkColor DebugColors::DirectPictureTileBorderColor() {
+ return SkColorSetARGB(255, 127, 255, 0);
+}
+int DebugColors::DirectPictureTileBorderWidth(const LayerTreeImpl* tree_impl) {
+ return Scale(1, tree_impl);
+}
// ======= Checkerboard colors =======
« no previous file with comments | « cc/debug/debug_colors.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698