Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
3.4 KiB

  1. /****************************************************************************/
  2. // nsbcddat.c
  3. //
  4. // RDP cache manager display driver data declarations.
  5. //
  6. // Copyright (C) 1997-2000 Microsoft Corporation
  7. /****************************************************************************/
  8. #include <ndcgdata.h>
  9. #include <asbcapi.h>
  10. #include <noedisp.h>
  11. DC_DATA(BOOLEAN, sbcEnabled, FALSE);
  12. // Flag that indicates whether the system palette has changed since the
  13. // last Palette PDU sent.
  14. DC_DATA(BOOLEAN, sbcPaletteChanged, FALSE);
  15. DC_DATA(CHCACHEHANDLE, sbcColorTableCacheHandle, 0);
  16. DC_DATA(unsigned, sbcCurrentColorTableCacheIndex, 0);
  17. DC_DATA(BYTE *, sbcXlateBuf, NULL);
  18. DC_DATA(CHCACHEHANDLE, sbcSmallBrushCacheHandle, 0);
  19. DC_DATA(CHCACHEHANDLE, sbcLargeBrushCacheHandle, 0);
  20. DC_DATA(unsigned, sbcClientBitsPerPel, 0);
  21. #ifdef DC_HICOLOR
  22. DC_DATA(unsigned, sbcCacheFlags, 0);
  23. #endif
  24. // sbcFragInfo is used to check if there is fragment collision in the fragment cache
  25. DC_DATA(PSBC_FRAG_INFO, sbcFragInfo, NULL);
  26. DC_DATA(PCHCACHEDATA, sbcCacheData, NULL);
  27. DC_DATA(CHCACHEHANDLE, sbcOffscreenBitmapCacheHandle, 0);
  28. #ifdef DRAW_NINEGRID
  29. DC_DATA(CHCACHEHANDLE, sbcDrawNineGridBitmapCacheHandle, 0);
  30. #endif
  31. #ifdef DRAW_GDIPLUS
  32. // Cache Handle for GdipGraphics
  33. DC_DATA(CHCACHEHANDLE, sbcGdipGraphicsCacheHandle, 0);
  34. // Cache Handle for GdipBrush
  35. DC_DATA(CHCACHEHANDLE, sbcGdipObjectBrushCacheHandle, 0);
  36. // Cache Handle for GdipPen
  37. DC_DATA(CHCACHEHANDLE, sbcGdipObjectPenCacheHandle, 0);
  38. // Cache Handle for GdipImage
  39. DC_DATA(CHCACHEHANDLE, sbcGdipObjectImageCacheHandle, 0);
  40. // Cache Handle for GdipImgeaAttributes
  41. DC_DATA(CHCACHEHANDLE, sbcGdipObjectImageAttributesCacheHandle, 0);
  42. // Chunk size for GdipGraphics cache data
  43. DC_DATA(TSUINT16, sbcGdipGraphicsCacheChunkSize, 0);
  44. // Chunk size for GdipBrush cache data
  45. DC_DATA(TSUINT16, sbcGdipObjectBrushCacheChunkSize, 0);
  46. // Chunk size for GdipPen cache data
  47. DC_DATA(TSUINT16, sbcGdipObjectPenCacheChunkSize, 0);
  48. // Chunk size for GdipGraphics cache data
  49. DC_DATA(TSUINT16, sbcGdipObjectImageAttributesCacheChunkSize, 0);
  50. // Chunk size for GdipImageAttrbutes cache data
  51. DC_DATA(TSUINT16, sbcGdipObjectImageCacheChunkSize, 0);
  52. // Record the size (in number of chunks) already used by GdipImage cache data
  53. DC_DATA(TSUINT16, sbcGdipObjectImageCacheSizeUsed, 0);
  54. // Record total size (in number of chunks) allowded for all GdipImage cache data
  55. DC_DATA(TSUINT16, sbcGdipObjectImageCacheTotalSize, 0);
  56. // The maximun single image size (in number of chunks) we can cache GdipImage
  57. DC_DATA(TSUINT16, sbcGdipObjectImageCacheMaxSize, 0);
  58. // Record the size (in number of chunks) for each GdipImage data cached
  59. DC_DATA(TSUINT16 *, sbcGdipObjectImageCacheSizeList, NULL);
  60. #endif
  61. // Total number of offscreen bitmaps to be deleted by client
  62. DC_DATA(unsigned, sbcNumOffscrBitmapsToDelete, 0);
  63. // Total size of offscreen bitmaps to be deleted by client in bytes
  64. DC_DATA(unsigned, sbcOffscrBitmapsToDeleteSize, 0);
  65. // sbcOffscrBitmapsToDelete
  66. DC_DATA(PSBC_OFFSCR_BITMAP_DEL_INFO, sbcOffscrBitmapsDelList, NULL);
  67. // Current index of font cache info in the list
  68. DC_DATA(unsigned, sbcFontCacheInfoListIndex, 0);
  69. // Toal number of items in the sbcFontCacheInfoList
  70. DC_DATA(unsigned, sbcFontCacheInfoListSize, 0);
  71. // sbcFontCacheInfoList - store all the font cache info created
  72. DC_DATA(FONTCACHEINFO **, sbcFontCacheInfoList, NULL);