VirtualBox

Changeset 41929 in vbox for trunk


Ignore:
Timestamp:
Jun 27, 2012 4:06:41 PM (12 years ago)
Author:
vboxsync
Message:

crOpenGL,wddm/3d: create windows hidden initially to avoid flikering

Location:
trunk/src/VBox
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/context.c

    r41481 r41929  
    18441844    GL_EXTCALL(glChromiumParameteriCR(GL_FLUSH_ON_THREAD_SWITCH_CR,  GL_TRUE));
    18451845#endif
     1846#if defined(VBOX_WITH_WDDM)
     1847    GL_EXTCALL(glChromiumParameteriCR(GL_HOST_WND_CREATED_HIDDEN,  GL_TRUE));
     1848#endif
     1849
    18461850    LEAVE_GL();
    18471851
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/wined3d_gl.h

    r41109 r41929  
    37823782/*report that the shared resource is no longer used by this context, the parameter value is a texture name*/
    37833783#define GL_RCUSAGE_TEXTURE_CLEAR_CR   0x8B2A
     3784/*configures host to create windows initially hidden*/
     3785#define GL_HOST_WND_CREATED_HIDDEN    0x8B2B
    37843786
    37853787typedef void (WINE_GLAPI *PGLFNCHROMIUMPARAMETERUCR)(GLenum param, GLint value);
  • trunk/src/VBox/GuestHost/OpenGL/include/chromium.h

    r41109 r41929  
    703703/*report that the shared resource is no longer used by this context, the parameter value is a texture name*/
    704704#define GL_RCUSAGE_TEXTURE_CLEAR_CR   0x8B2A
     705/*configures host to create windows initially hidden*/
     706#define GL_HOST_WND_CREATED_HIDDEN    0x8B2B
    705707
    706708/**********************************************************************/
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c

    r40691 r41929  
    297297    window->height = render_spu.defaultHeight;
    298298
    299     if ((render_spu.render_to_app_window || render_spu.render_to_crut_window) && !crGetenv("CRNEWSERVER"))
     299    if (render_spu.force_hidden_wdn_create
     300            || ((render_spu.render_to_app_window || render_spu.render_to_crut_window) && !crGetenv("CRNEWSERVER")))
    300301        showIt = 0;
    301302    else
     
    696697static void RENDER_APIENTRY renderspuChromiumParameteriCR(GLenum target, GLint value)
    697698{
    698     (void) target;
    699     (void) value;
    700 
    701 
    702 #if 0
     699
    703700    switch (target)
    704701    {
     702        case GL_HOST_WND_CREATED_HIDDEN:
     703            render_spu.force_hidden_wdn_create = value ? GL_TRUE : GL_FALSE;
     704            break;
    705705        default:
    706             crWarning("Unhandled target in renderspuChromiumParameteriCR()");
     706//            crWarning("Unhandled target in renderspuChromiumParameteriCR()");
    707707            break;
    708708    }
    709 #endif
    710709}
    711710
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.h

    r40691 r41929  
    247247# endif
    248248#endif /* RT_OS_DARWIN */
     249
     250    int force_hidden_wdn_create;
    249251} RenderSPU;
    250252
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette