From 5639c8d598caedad5b63ebb07af59616db2ece65 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 6 Jul 2011 13:29:26 -0400 Subject: [PATCH] Bug 648484, part 4: Log layers transactions in the d3d10 backend. r=Bas --- gfx/layers/d3d10/LayerManagerD3D10.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gfx/layers/d3d10/LayerManagerD3D10.cpp b/gfx/layers/d3d10/LayerManagerD3D10.cpp index 4315b930d5f9..eb58abae5035 100644 --- a/gfx/layers/d3d10/LayerManagerD3D10.cpp +++ b/gfx/layers/d3d10/LayerManagerD3D10.cpp @@ -300,6 +300,10 @@ LayerManagerD3D10::SetRoot(Layer *aRoot) void LayerManagerD3D10::BeginTransaction() { +#ifdef MOZ_LAYERS_HAVE_LOG + MOZ_LAYERS_LOG(("[----- BeginTransaction")); + Log(); +#endif } void @@ -330,11 +334,21 @@ LayerManagerD3D10::EndTransaction(DrawThebesLayerCallback aCallback, // so we don't need to pass any global transform here. mRoot->ComputeEffectiveTransforms(gfx3DMatrix()); +#ifdef MOZ_LAYERS_HAVE_LOG + MOZ_LAYERS_LOG((" ----- (beginning paint)")); + Log(); +#endif + Render(); mCurrentCallbackInfo.Callback = nsnull; mCurrentCallbackInfo.CallbackData = nsnull; } +#ifdef MOZ_LAYERS_HAVE_LOG + Log(); + MOZ_LAYERS_LOG(("]----- EndTransaction")); +#endif + mTarget = nsnull; }