equal
deleted
inserted
replaced
21 #include "SERVER.H" |
21 #include "SERVER.H" |
22 #include "BackGroundCompression.h" |
22 #include "BackGroundCompression.h" |
23 #include <shapeinfo.h> |
23 #include <shapeinfo.h> |
24 #include <graphics/shaperparams.h> |
24 #include <graphics/shaperparams.h> |
25 #include "glyphatlas.h" |
25 #include "glyphatlas.h" |
|
26 #include "OstTraceDefinitions.h" |
|
27 #include "fbstrace.h" |
|
28 #ifdef OST_TRACE_COMPILER_IN_USE |
|
29 #include "FBSCLITraces.h" |
|
30 #endif |
26 |
31 |
27 |
32 |
28 /** |
33 /** |
29 Bitwise mask that sets the MSB to indicate to a font rasterizer |
34 Bitwise mask that sets the MSB to indicate to a font rasterizer |
30 that a code is a glyphcode and not a character code |
35 that a code is a glyphcode and not a character code |
248 break; |
253 break; |
249 } |
254 } |
250 iIx->Remove(localhandle); |
255 iIx->Remove(localhandle); |
251 iResourceCount--; |
256 iResourceCount--; |
252 aMessage.Complete(KErrNone); |
257 aMessage.Complete(KErrNone); |
|
258 FBS_OST(OstTraceExt3( GRAPHICS_RESOURCE_MANAGEMENT_SEMANTICS, CFBCLIENT_SERVICEL_INFO, "# Server resource destroyed; iSSH=0x%08x; rc=%d; iH=0x%08x;", iSessionHandle, iResourceCount, localhandle);) |
253 #ifdef _DEBUG |
259 #ifdef _DEBUG |
254 iRet=KErrNone; |
260 iRet=KErrNone; |
255 #endif |
261 #endif |
256 break; |
262 break; |
257 } |
263 } |
471 return ret; |
477 return ret; |
472 } |
478 } |
473 |
479 |
474 // success |
480 // success |
475 iResourceCount++; |
481 iResourceCount++; |
|
482 FBS_OST(OstTraceExt3( GRAPHICS_RESOURCE_MANAGEMENT_SEMANTICS, CFBCLIENT_HANDLEMESGFONTDUPLICATE_INFO, "# Server font duplicated; iSSH=0x%08x; rc=%d; iH=0x%08x;", iSessionHandle, iResourceCount, localhandle);) |
476 return KErrNone; |
483 return KErrNone; |
477 } |
484 } |
478 |
485 |
479 |
486 |
480 /** Handler for EFbsMessGetNearestFontToDesignHeightInTwips, EFbsMessGetNearestFontToDesignHeightInPixels, |
487 /** Handler for EFbsMessGetNearestFontToDesignHeightInTwips, EFbsMessGetNearestFontToDesignHeightInPixels, |
560 aPanicRequired = ETrue; |
567 aPanicRequired = ETrue; |
561 return ret; |
568 return ret; |
562 } |
569 } |
563 // success |
570 // success |
564 iResourceCount++; |
571 iResourceCount++; |
|
572 FBS_OST(OstTraceExt3( GRAPHICS_RESOURCE_MANAGEMENT_SEMANTICS, CFBCLIENT_COPYFONTINFOINTORETURNMESSAGE_INFO, "# Server font duplicated; iSSH=0x%08x; rc=%d; iH=0x%08x;", iSessionHandle, iResourceCount, localhandle);) |
565 return KErrNone; |
573 return KErrNone; |
566 } |
574 } |
567 |
575 |
568 |
576 |
569 /** Handler for EFbsMessGetFontById message |
577 /** Handler for EFbsMessGetFontById message |
1471 if(ret!=KErrNone) |
1479 if(ret!=KErrNone) |
1472 { |
1480 { |
1473 bmpptr->Close(); |
1481 bmpptr->Close(); |
1474 break; |
1482 break; |
1475 } |
1483 } |
|
1484 |
1476 bmpSpec.iHandle=localhandle; |
1485 bmpSpec.iHandle=localhandle; |
1477 bmpSpec.iServerHandle = bmpptr->Handle(); |
1486 bmpSpec.iServerHandle = bmpptr->Handle(); |
1478 bmpSpec.iAddressOffset=TInt(bmpptr->Address())-TopLevelStore()->HeapBase(); |
1487 bmpSpec.iAddressOffset=TInt(bmpptr->Address())-TopLevelStore()->HeapBase(); |
1479 ret = aMessage.Write(0,bs); |
1488 ret = aMessage.Write(0,bs); |
1480 if(ret!=KErrNone) |
1489 if(ret!=KErrNone) |
1482 iIx->Remove(localhandle); |
1491 iIx->Remove(localhandle); |
1483 aMessage.Panic(KFBSERVPanicCategory,ret); |
1492 aMessage.Panic(KFBSERVPanicCategory,ret); |
1484 return; |
1493 return; |
1485 } |
1494 } |
1486 iResourceCount++; |
1495 iResourceCount++; |
|
1496 FBS_OST(OstTraceExt5( GRAPHICS_RESOURCE_MANAGEMENT_SEMANTICS, CFBCLIENT_PROCBITMAPMESSAGE_INFO, "# Server bitmap created; iSSH=0x%08x; rc=%d; iH=0x%08x; iSH=0x%08x; bytes=%d;", iSessionHandle, iResourceCount, bmpSpec.iHandle, bmpSpec.iServerHandle, bmpptr->Address()->DataStride() * bmpSpec.iSizeInPixels.iHeight);) |
1487 break; |
1497 break; |
1488 } |
1498 } |
1489 |
1499 |
1490 case EFbsMessBitmapLoad: |
1500 case EFbsMessBitmapLoad: |
1491 case EFbsMessBitmapLoadFast: |
1501 case EFbsMessBitmapLoadFast: |
1589 iIx->Remove(localhandle); |
1599 iIx->Remove(localhandle); |
1590 aMessage.Panic(KFBSERVPanicCategory,ret); |
1600 aMessage.Panic(KFBSERVPanicCategory,ret); |
1591 return; |
1601 return; |
1592 } |
1602 } |
1593 iResourceCount++; |
1603 iResourceCount++; |
|
1604 FBS_OST(OstTraceExt5( GRAPHICS_RESOURCE_MANAGEMENT_SEMANTICS, CFBCLIENT_PROCBITMAPMESSAGE_INFO2, "# Server bitmap loaded; iSSH=0x%08x; rc=%d; iH=0x%08x; iSH=0x%08x; bytes=%d;", iSessionHandle, iResourceCount, handlebuffer().iHandle, handlebuffer().iServerHandle, bmpptr->Address()->DataStride() * bmpptr->Address()->SizeInPixels().iHeight);) |
1594 break; |
1605 break; |
1595 } |
1606 } |
1596 case EFbsMessBitmapResize: |
1607 case EFbsMessBitmapResize: |
1597 { |
1608 { |
1598 localhandle=aMessage.Int0(); |
1609 localhandle=aMessage.Int0(); |
1664 { |
1675 { |
1665 iIx->Remove(newlocalhandle); |
1676 iIx->Remove(newlocalhandle); |
1666 aMessage.Panic(KFBSERVPanicCategory, ret); |
1677 aMessage.Panic(KFBSERVPanicCategory, ret); |
1667 return; |
1678 return; |
1668 } |
1679 } |
|
1680 FBS_OST(OstTraceExt5( GRAPHICS_RESOURCE_MANAGEMENT_SEMANTICS, CFBCLIENT_PROCBITMAPMESSAGE_INFO4, "# Server bitmap resized; iSSH=0x%08x; iOldH=0x%08x; iNewH=0x%08x; iNewSH=0x%08x; newbytes=%d;", iSessionHandle, localhandle, newlocalhandle, newbmpptr->Handle(), newbmpptr->Address()->DataStride() * newsize.iHeight);) |
1669 break; |
1681 break; |
1670 } |
1682 } |
1671 case EFbsMessBitmapDuplicate: |
1683 case EFbsMessBitmapDuplicate: |
1672 { |
1684 { |
1673 bmpptr = TopLevelStore()->FindBitmap(aMessage.Int0()); |
1685 bmpptr = TopLevelStore()->FindBitmap(aMessage.Int0()); |
1700 iIx->Remove(localhandle); |
1712 iIx->Remove(localhandle); |
1701 aMessage.Panic(KFBSERVPanicCategory,ret); |
1713 aMessage.Panic(KFBSERVPanicCategory,ret); |
1702 return; |
1714 return; |
1703 } |
1715 } |
1704 iResourceCount++; |
1716 iResourceCount++; |
|
1717 FBS_OST(OstTraceExt5( GRAPHICS_RESOURCE_MANAGEMENT_SEMANTICS, CFBCLIENT_PROCBITMAPMESSAGE_INFO3, "# Server bitmap duplicated; iSSH=0x%08x; rc=%d; iH=0x%08x; iSH=0x%08x; bytes=%d;", iSessionHandle, iResourceCount, handlebuffer().iHandle, handlebuffer().iServerHandle, bmpptr->Address()->DataStride() * bmpptr->Address()->SizeInPixels().iHeight);) |
1705 break; |
1718 break; |
1706 } |
1719 } |
1707 case EFbsMessBitmapCompress: |
1720 case EFbsMessBitmapCompress: |
1708 { |
1721 { |
1709 localhandle = aMessage.Int0(); |
1722 localhandle = aMessage.Int0(); |
1767 { |
1780 { |
1768 iIx->Remove(newlocalhandle); |
1781 iIx->Remove(newlocalhandle); |
1769 aMessage.Panic(KFBSERVPanicCategory, ret); |
1782 aMessage.Panic(KFBSERVPanicCategory, ret); |
1770 return; |
1783 return; |
1771 } |
1784 } |
|
1785 FBS_OST(OstTraceExt4( GRAPHICS_RESOURCE_MANAGEMENT_SEMANTICS, CFBCLIENT_PROCBITMAPMESSAGE_INFO5, "# Server bitmap compressed; iSSH=0x%08x; iOldH=0x%08x; iNewH=0x%08x; iNewSH=0x%08x;", (TUint)iSessionHandle, localhandle, newlocalhandle, handlebuffer().iServerHandle);) |
1772 break; |
1786 break; |
1773 } |
1787 } |
1774 case EFbsMessBitmapBgCompress: |
1788 case EFbsMessBitmapBgCompress: |
1775 { |
1789 { |
1776 localhandle = aMessage.Int0(); |
1790 localhandle = aMessage.Int0(); |
1844 { |
1858 { |
1845 iIx->Remove(cleanlocalhandle); |
1859 iIx->Remove(cleanlocalhandle); |
1846 aMessage.Panic(KFBSERVPanicCategory, ret); |
1860 aMessage.Panic(KFBSERVPanicCategory, ret); |
1847 return; |
1861 return; |
1848 } |
1862 } |
|
1863 FBS_OST(OstTraceExt3( GRAPHICS_RESOURCE_MANAGEMENT_SEMANTICS, CFBCLIENT_PROCBITMAPMESSAGE_INFO6, "# Server bitmap cleaned; iSSH=0x%08x; iOldH=0x%08x; iNewH=0x%08x;", iSessionHandle, localhandle, cleanlocalhandle);) |
1849 break; |
1864 break; |
1850 } |
1865 } |
1851 case EFbsGetAllBitmapHandles: |
1866 case EFbsGetAllBitmapHandles: |
1852 { |
1867 { |
1853 ret = TopLevelStore()->GetAllBitmapHandles(aMessage); |
1868 ret = TopLevelStore()->GetAllBitmapHandles(aMessage); |