From aee9a4ca45368d3edee58c3314bc6283ff2759f7 Mon Sep 17 00:00:00 2001 From: David Zbarsky Date: Mon, 21 Jul 2014 21:37:57 -0400 Subject: [PATCH] Fix MOZ_RENDERTRACE bustage from bug 952977 r=me --- gfx/layers/RenderTrace.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gfx/layers/RenderTrace.cpp b/gfx/layers/RenderTrace.cpp index 3cc6c71086d..15947e49feb 100644 --- a/gfx/layers/RenderTrace.cpp +++ b/gfx/layers/RenderTrace.cpp @@ -15,8 +15,8 @@ namespace layers { static int colorId = 0; -static gfx3DMatrix GetRootTransform(Layer *aLayer) { - gfx3DMatrix layerTrans = aLayer->GetTransform(); +static gfx::Matrix4x4 GetRootTransform(Layer *aLayer) { + gfx::Matrix4x4 layerTrans = aLayer->GetTransform(); layerTrans.ProjectTo2D(); if (aLayer->GetParent() != nullptr) { return GetRootTransform(aLayer->GetParent()) * layerTrans; @@ -53,8 +53,8 @@ void RenderTraceLayers(Layer *aLayer, const char *aColor, const gfx3DMatrix aRoo } void RenderTraceInvalidateStart(Layer *aLayer, const char *aColor, const nsIntRect aRect) { - gfx3DMatrix trans = GetRootTransform(aLayer); - gfxRect rect(aRect.x, aRect.y, aRect.width, aRect.height); + gfx::Matrix4x4 trans = GetRootTransform(aLayer); + gfx::Rect rect(aRect.x, aRect.y, aRect.width, aRect.height); trans.TransformBounds(rect); printf_stderr("%s RENDERTRACE %u fillrect #%s %i %i %i %i\n",