[ros-diffs] [greatlrd] 32573: Adding full trace for dxeng api in win32k

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Sun Mar 9 12:34:07 CET 2008


Author: greatlrd
Date: Wed Mar  5 21:13:46 2008
New Revision: 32573

URL: http://svn.reactos.org/svn/reactos?rev=3D32573&view=3Drev
Log:
Adding full trace for dxeng api in win32k

Modified:
    trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c

Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win3=
2k/ntddraw/dxeng.c?rev=3D32573&r1=3D32572&r2=3D32573&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c Wed Mar  5 21:13:=
46 2008
@@ -78,6 +78,7 @@
 ULONG
 DxEngDispUniq()
 {
+    DPRINT1("ReactX Calling : DxEngDispUniq\n");
     return GdiHandleTable->flDeviceUniq;
 }
 =

@@ -103,6 +104,7 @@
 BOOL
 DxEngGetDeviceGammaRamp(HDEV hPDev, PGAMMARAMP Ramp)
 {
+    DPRINT1("ReactX Calling : DxEngGetDeviceGammaRamp\n");
     return IntGetDeviceGammaRamp(hPDev, Ramp);
 }
 =

@@ -126,6 +128,7 @@
 PDC
 DxEngLockDC(HDC hDC)
 {
+    DPRINT1("ReactX Calling : DxEngLockDC\n");
     return DC_LockDc(hDC);
 }
 =

@@ -149,6 +152,7 @@
 BOOL
 DxEngUnlockDC(PDC pDC)
 {
+    DPRINT1("ReactX Calling : DxEngUnlockDC\n");
     DC_UnlockDc(pDC);
     return TRUE;
 }
@@ -172,6 +176,7 @@
 DxEngLockShareSem()
 {
     BOOLEAN retVal =3D 0;
+    DPRINT1("ReactX Calling : DxEngLockShareSem\n");
 =

     if (ExIsResourceAcquiredExclusiveLite(&ghsemShareDevLock) =3D=3D FALSE)
     {
@@ -198,6 +203,7 @@
 BOOLEAN
 DxEngUnlockShareSem()
 {
+    DPRINT1("ReactX Calling : DxEngUnlockShareSem\n");
     if (ExIsResourceAcquiredExclusiveLite(&ghsemShareDevLock) =3D=3D TRUE)
     {
         ExReleaseResourceLite(&ghsemShareDevLock);
@@ -231,7 +237,8 @@
 BOOL
 DxEngSetDeviceGammaRamp(HDEV hPDev, PGAMMARAMP Ramp, BOOL Test)
 {
-   return IntSetDeviceGammaRamp(hPDev, Ramp, Test);
+    DPRINT1("ReactX Calling : DxEngSetDeviceGammaRamp\n");
+    return IntSetDeviceGammaRamp(hPDev, Ramp, Test);
 }
 =

 /*++
@@ -277,8 +284,10 @@
 DxEngGetHdevData(HDEV hDev,
                  DXEGSHDEVDATA Type)
 {
-  DWORD retVal =3D 0;
-  PGDIDEVICE PDev =3D (PGDIDEVICE)hDev;
+    DWORD retVal =3D 0;
+    PGDIDEVICE PDev =3D (PGDIDEVICE)hDev;
+
+    DPRINT1("ReactX Calling : DxEngGetHdevData DXEGSHDEVDATA : %ld\n", Typ=
e);
 =

     switch ( Type )
     {
@@ -376,14 +385,16 @@
                  DXEGSHDEVDATA Type,
                  DWORD Data)
 {
-  BOOL retVal =3D FALSE; // Default, no set.
-
-  if ( Type =3D=3D DxEGShDevData_dd_nCount )
-  {
-     ((PGDIDEVICE)hDev)->DxDd_nCount =3D Data;
-     retVal =3D TRUE; // Set
-  }
-  return retVal;
+    BOOLEAN retVal =3D FALSE; // Default, no set.
+
+    DPRINT1("ReactX Calling : DxEngSetHdevData DXEGSHDEVDATA : %ld\n", Typ=
e);
+
+    if ( Type =3D=3D DxEGShDevData_dd_nCount )
+    {
+        ((PGDIDEVICE)hDev)->DxDd_nCount =3D Data;
+        retVal =3D TRUE; // Set
+    }
+    return retVal;
 }
 =

 /*++
@@ -417,6 +428,8 @@
 {
     PDC pDC =3D DC_LockDc(hDC);
     DWORD retVal =3D 0;
+
+    DPRINT1("ReactX Calling : DxEngGetDCState type : %ld\n", type);
 =

     if (pDC)
     {
@@ -461,6 +474,8 @@
 BOOLEAN
 DxEngIncDispUniq()
 {
+    DPRINT1("ReactX Calling : DxEngIncDispUniq \n");
+
     InterlockedIncrement((LONG*)&GdiHandleTable->flDeviceUniq);
     return TRUE;
 }
@@ -486,6 +501,8 @@
 {
     PGDIDEVICE pPDev =3D (PGDIDEVICE)hDev;
     PERESOURCE Resource =3D pPDev->hsemDevLock;
+
+    DPRINT1("ReactX Calling : DxEngLockHdev \n");
 =

     if (Resource)
     {
@@ -517,6 +534,8 @@
     PGDIDEVICE pPDev =3D (PGDIDEVICE)hDev;
     PERESOURCE Resource =3D pPDev->hsemDevLock;
 =

+    DPRINT1("ReactX Calling : DxEngUnlockHdev \n");
+
     if (Resource)
     {
         ExReleaseResourceLite( Resource );
@@ -560,6 +579,8 @@
 ULONG
 DxEngVisRgnUniq()
 {
+    DPRINT1("ReactX Calling : DxEngVisRgnUniq \n");
+
     return gulVisRgnUniqueness;
 }
 =





More information about the Ros-diffs mailing list