Bug 797359 - Increase size of tile debug overlay. r=Cwiiis
authorBenoit Girard <b56girard@gmail.com>
Wed, 03 Oct 2012 10:56:41 -0400
changeset 109217 075ac84bff66bb05cc9f46d21fa4866b9d2ee0f1
parent 109216 b2fd5b6ca0d97429d50a83af2fdef6d96a9753e7
child 109218 5c2b826588d334bb3b02cae238adec4549bac7b6
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewersCwiiis
bugs797359
milestone18.0a1
Bug 797359 - Increase size of tile debug overlay. r=Cwiiis
gfx/layers/basic/BasicTiledThebesLayer.cpp
--- a/gfx/layers/basic/BasicTiledThebesLayer.cpp
+++ b/gfx/layers/basic/BasicTiledThebesLayer.cpp
@@ -23,34 +23,34 @@ static void DrawDebugOverlay(gfxImageSur
   c.Stroke();
 
   // Build tile description
   std::stringstream ss;
   ss << x << ", " << y;
 
   // Draw text using cairo toy text API
   cairo_t* cr = c.GetCairo();
-  cairo_set_font_size(cr, 10);
+  cairo_set_font_size(cr, 25);
   cairo_text_extents_t extents;
   cairo_text_extents(cr, ss.str().c_str(), &extents);
 
   int textWidth = extents.width + 6;
 
   c.NewPath();
   c.SetDeviceColor(gfxRGBA(0.0, 0.0, 0.0, 1.0));
-  c.Rectangle(gfxRect(gfxPoint(2,2),gfxSize(textWidth, 15)));
+  c.Rectangle(gfxRect(gfxPoint(2,2),gfxSize(textWidth, 30)));
   c.Fill();
 
   c.NewPath();
   c.SetDeviceColor(gfxRGBA(1.0, 0.0, 0.0, 1.0));
-  c.Rectangle(gfxRect(gfxPoint(2,2),gfxSize(textWidth, 15)));
+  c.Rectangle(gfxRect(gfxPoint(2,2),gfxSize(textWidth, 30)));
   c.Stroke();
 
   c.NewPath();
-  cairo_move_to(cr, 4, 13);
+  cairo_move_to(cr, 4, 28);
   cairo_show_text(cr, ss.str().c_str());
 
 }
 
 #endif
 
 namespace mozilla {
 namespace layers {