Bug 944866 - Bustage fix for gfx::pint. r=bustage on a CLOSED TREE
authorBenoit Girard <b56girard@gmail.com>
Tue, 03 Dec 2013 14:07:26 -0500
changeset 174293 c30753241b8d562c483b0dc5925a8c5fbf3258a8
parent 174292 988a78637574ac3517a90b9a15d1c50534099f15
child 174294 ad6fa6ac9d1124d1b7fa9fe63d4999dfc3cd469b
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs944866
milestone28.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 944866 - Bustage fix for gfx::pint. r=bustage on a CLOSED TREE
gfx/layers/composite/ContainerLayerComposite.cpp
--- a/gfx/layers/composite/ContainerLayerComposite.cpp
+++ b/gfx/layers/composite/ContainerLayerComposite.cpp
@@ -91,17 +91,17 @@ public:
 
   struct VelocityData {
     VelocityData(TimeStamp frameTime, int scrollX, int scrollY)
       : mFrameTime(frameTime)
       , mPoint(scrollX, scrollY)
     {}
 
     TimeStamp mFrameTime;
-    Point mPoint;
+    gfx::Point mPoint;
   };
   std::vector<VelocityData> mData;
 };
 
 static void DrawVelGraph(const nsIntRect& aClipRect,
                          LayerManagerComposite* aManager,
                          Layer* aLayer) {
   static char sLayerVelocityUserDataKey;
@@ -181,18 +181,18 @@ static void DrawVelGraph(const nsIntRect
                        clipRect,
                        effects,
                        opacity,
                        transform);
 
   std::vector<gfx::Point> graph;
   int yScaleFactor = 3;
   for (int32_t i = (int32_t)velocityData->mData.size() - 2; i >= 0; i--) {
-    const Point& p1 = velocityData->mData[i+1].mPoint;
-    const Point& p2 = velocityData->mData[i].mPoint;
+    const gfx::Point& p1 = velocityData->mData[i+1].mPoint;
+    const gfx::Point& p2 = velocityData->mData[i].mPoint;
     int vel = sqrt((p1.x - p2.x) * (p1.x - p2.x) +
                    (p1.y - p2.y) * (p1.y - p2.y));
     graph.push_back(
       gfx::Point(bounds.x + graphRect.width / circularBufferSize * i,
                  graphBounds.y + graphRect.height - vel/yScaleFactor));
   }
 
   compositor->DrawLines(graph, clipRect, gfx::Color(0,1,0,1),