VirtualBox

Ignore:
Timestamp:
Apr 28, 2019 4:47:51 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
130318
Message:

Config.kmk,Additions/common/crOpenGL,VBox/GuestHost/OpenGL,HostServices/SharedOpenGL: Remove CHROMIUM_THREADSAFE define and apply the current default

Location:
trunk/src/VBox/HostServices/SharedOpenGL/render
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c

    r78263 r78341  
    466466    if (window && context)
    467467    {
    468 #ifdef CHROMIUM_THREADSAFE
    469468        crSetTSD(&_RenderTSD, context);
    470 #else
    471         render_spu.currentContext = context;
    472 #endif
    473469        context->currentWindow = window;
    474470
     
    509505    {
    510506        renderspu_SystemMakeCurrent( NULL, 0, NULL );
    511 #ifdef CHROMIUM_THREADSAFE
    512507        crSetTSD(&_RenderTSD, NULL);
    513 #else
    514         render_spu.currentContext = NULL;
    515 #endif
    516508    }
    517509    else
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.h

    r78263 r78341  
    232232    ContextInfo *defaultSharedContext;
    233233
    234 #ifndef CHROMIUM_THREADSAFE
    235     ContextInfo *currentContext;
    236 #endif
    237 
    238234    crOpenGLInterface ws;  /**< Window System interface */
    239235
     
    306302extern uint64_t render_spu_parent_window_id;
    307303
    308 #ifdef CHROMIUM_THREADSAFE
    309304extern CRtsd _RenderTSD;
    310305#define GET_CONTEXT_VAL() ((ContextInfo *) crGetTSD(&_RenderTSD))
     
    312307        crSetTSD(&_RenderTSD, (_v)); \
    313308    } while (0)
    314 #else
    315 #define GET_CONTEXT_VAL() (render_spu.currentContext)
    316 #define SET_CONTEXT_VAL(_v) do { \
    317         render_spu.currentContext = (_v); \
    318     } while (0)
    319 
    320 #endif
    321309
    322310#define GET_CONTEXT(T)  ContextInfo *T = GET_CONTEXT_VAL()
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_glx.c

    r78251 r78341  
    15721572        if (window->BltInfo.width != w || window->BltInfo.height != h) {
    15731573            /* Only resize if the new dimensions really are different */
    1574 #ifdef CHROMIUM_THREADSAFE
    15751574            ContextInfo *currentContext = (ContextInfo *) crGetTSD(&_RenderTSD);
    1576 #else
    1577             ContextInfo *currentContext = render_spu.currentContext;
    1578 #endif
    15791575            /* Can't resize pbuffers, so destroy it and make a new one */
    15801576            render_spu.ws.glXDestroyPbuffer(window->visual->dpy, window->window);
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_init.c

    r78263 r78341  
    2828RenderSPU render_spu;
    2929uint64_t render_spu_parent_window_id = 0;
    30 
    31 #ifdef CHROMIUM_THREADSAFE
    3230CRtsd _RenderTSD;
    33 #endif
    3431
    3532#ifdef RT_OS_WINDOWS
     
    151148    self->privatePtr = (void *) &render_spu;
    152149
    153 #ifdef CHROMIUM_THREADSAFE
    154150    crDebug("Render SPU: thread-safe");
    155151    crInitTSD(&_RenderTSD);
    156 #endif
    157152
    158153    crMemZero(&render_spu, sizeof(render_spu));
     
    498493    crUnloadOpenGL();
    499494
    500 #ifdef CHROMIUM_THREADSAFE
    501495    crFreeTSD(&_RenderTSD);
    502 #endif
    503 
    504496    return 1;
    505497}
Note: See TracChangeset for help on using the changeset viewer.

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