Changeset 46291 in vbox for trunk/src/VBox/Main
- Timestamp:
- May 28, 2013 7:38:04 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 86037
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleVRDPServer.cpp
r46097 r46291 1723 1723 uint32_t h; 1724 1724 bool fCreated; 1725 bool fFallback; 1725 1726 } H3DORInstance; 1727 1728 #define H3DORLOG Log 1726 1729 1727 1730 /* static */ DECLCALLBACK(void) ConsoleVRDPServer::H3DORBegin(const void *pvContext, void **ppvInstance, 1728 1731 const char *pszFormat) 1729 1732 { 1730 LogFlowFunc(("ctx %p\n", pvContext));1731 1732 H3DORInstance *p = (H3DORInstance *)RTMemAlloc(sizeof 1733 H3DORLOG(("H3DORBegin: ctx %p [%s]\n", pvContext, pszFormat)); 1734 1735 H3DORInstance *p = (H3DORInstance *)RTMemAlloc(sizeof(H3DORInstance)); 1733 1736 1734 1737 if (p) … … 1741 1744 p->h = 0; 1742 1745 p->fCreated = false; 1746 p->fFallback = false; 1743 1747 1744 1748 /* Host 3D service passes the actual format of data in this redirect instance. … … 1756 1760 } 1757 1761 1758 /* Caller check this for NULL. */ 1762 H3DORLOG(("H3DORBegin: ins %p\n", p)); 1763 1764 /* Caller checks this for NULL. */ 1759 1765 *ppvInstance = p; 1760 1766 } … … 1763 1769 int32_t x, int32_t y, uint32_t w, uint32_t h) 1764 1770 { 1765 LogFlowFunc(("ins %p %d,%d %dx%d\n", pvInstance, x, y, w, h));1771 H3DORLOG(("H3DORGeometry: ins %p %d,%d %dx%d\n", pvInstance, x, y, w, h)); 1766 1772 1767 1773 H3DORInstance *p = (H3DORInstance *)pvInstance; … … 1792 1798 && p->h == h) 1793 1799 { 1794 LogFlowFunc(("geometry not changed\n"));1800 H3DORLOG(("H3DORGeometry: geometry not changed\n")); 1795 1801 /* Do nothing. Continue using the existing handle. */ 1796 1802 } 1797 1803 else 1798 1804 { 1799 int rc = p->pThis->m_interfaceImage.VRDEImageGeometrySet(p->hImageBitmap, &rect); 1805 int rc = p->fFallback? 1806 rc = VERR_NOT_SUPPORTED: /* Try to go out of fallback mode. */ 1807 p->pThis->m_interfaceImage.VRDEImageGeometrySet(p->hImageBitmap, &rect); 1800 1808 if (RT_SUCCESS(rc)) 1801 1809 { … … 1826 1834 */ 1827 1835 uint32_t fu32CompletionFlags = 0; 1836 p->fFallback = false; 1828 1837 int rc = p->pThis->m_interfaceImage.VRDEImageHandleCreate(p->pThis->mhServer, 1829 1838 &p->hImageBitmap, … … 1840 1849 { 1841 1850 /* No support for a 3D + WINDOW. Try bitmap updates. */ 1851 H3DORLOG(("H3DORGeometry: Fallback to bitmaps\n")); 1842 1852 fu32CompletionFlags = 0; 1853 p->fFallback = true; 1843 1854 rc = p->pThis->m_interfaceImage.VRDEImageHandleCreate(p->pThis->mhServer, 1844 1855 &p->hImageBitmap, … … 1853 1864 } 1854 1865 1866 H3DORLOG(("H3DORGeometry: Image handle create %Rrc, flags 0x%RX32\n", rc, fu32CompletionFlags)); 1867 1855 1868 if (RT_SUCCESS(rc)) 1856 1869 { … … 1872 1885 } 1873 1886 } 1887 1888 H3DORLOG(("H3DORGeometry: ins %p completed\n", pvInstance)); 1874 1889 } 1875 1890 … … 1877 1892 uint32_t cRects, const RTRECT *paRects) 1878 1893 { 1879 LogFlowFunc(("ins %p %d\n", pvInstance, cRects));1894 H3DORLOG(("H3DORVisibleRegion: ins %p %d\n", pvInstance, cRects)); 1880 1895 1881 1896 H3DORInstance *p = (H3DORInstance *)pvInstance; … … 1901 1916 paRects); 1902 1917 } 1918 1919 H3DORLOG(("H3DORVisibleRegion: ins %p completed\n", pvInstance)); 1903 1920 } 1904 1921 … … 1906 1923 void *pvData, uint32_t cbData) 1907 1924 { 1908 LogFlowFunc(("ins %p %p %d\n", pvInstance, pvData, cbData));1925 H3DORLOG(("H3DORFrame: ins %p %p %d\n", pvInstance, pvData, cbData)); 1909 1926 1910 1927 H3DORInstance *p = (H3DORInstance *)pvInstance; … … 1929 1946 &image, 1930 1947 sizeof(VRDEIMAGEBITMAP)); 1948 1949 H3DORLOG(("H3DORFrame: ins %p completed\n", pvInstance)); 1931 1950 } 1932 1951 1933 1952 /* static */ DECLCALLBACK(void) ConsoleVRDPServer::H3DOREnd(void *pvInstance) 1934 1953 { 1935 LogFlowFunc(("ins %p\n", pvInstance));1954 H3DORLOG(("H3DOREnd: ins %p\n", pvInstance)); 1936 1955 1937 1956 H3DORInstance *p = (H3DORInstance *)pvInstance; … … 1942 1961 1943 1962 RTMemFree(p); 1963 1964 H3DORLOG(("H3DOREnd: ins %p completed\n", pvInstance)); 1944 1965 } 1945 1966 … … 1948 1969 { 1949 1970 int rc = VINF_SUCCESS; 1971 1972 H3DORLOG(("H3DORContextProperty: index %d\n", index)); 1950 1973 1951 1974 if (index == H3DOR_PROP_FORMATS) … … 1969 1992 } 1970 1993 1994 H3DORLOG(("H3DORContextProperty: %Rrc\n", rc)); 1971 1995 return rc; 1972 1996 } … … 2048 2072 uint32_t cbData) 2049 2073 { 2050 LogFlowFunc(("pvContext %p, pvUser %p, hVideo %p, u32Id %u, pvData %p, cbData %d\n",2051 2074 H3DORLOG(("H3DOR: VRDEImageCbNotify: pvContext %p, pvUser %p, hVideo %p, u32Id %u, pvData %p, cbData %d\n", 2075 pvContext, pvUser, hVideo, u32Id, pvData, cbData)); 2052 2076 2053 2077 ConsoleVRDPServer *pServer = static_cast<ConsoleVRDPServer*>(pvContext); … … 2066 2090 2067 2091 uint32_t u32StreamId = *(uint32_t *)pvData; 2068 LogFlowFunc(("VRDE_IMAGE_NOTIFY_HANDLE_CREATE u32StreamId %d\n",2069 2092 H3DORLOG(("H3DOR: VRDE_IMAGE_NOTIFY_HANDLE_CREATE u32StreamId %d\n", 2093 u32StreamId)); 2070 2094 2071 2095 if (u32StreamId != 0) … … 2081 2105 return VINF_SUCCESS; 2082 2106 } 2107 2108 #undef H3DORLOG 2083 2109 2084 2110 /* static */ DECLCALLBACK(int) ConsoleVRDPServer::VRDESCardCbNotify(void *pvContext,
Note:
See TracChangeset
for help on using the changeset viewer.