VirtualBox

Ignore:
Timestamp:
Aug 8, 2014 6:34:02 PM (10 years ago)
Author:
vboxsync
Message:

wddm/crOpenGL: prevent shared objects from being deleted till they can be used

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/VBox

  • trunk/src/VBox/GuestHost/OpenGL/include/chromium.h

    r51559 r52329  
    737737#define GL_SHARE_LISTS_CR             0x8B31
    738738
     739/* ensure the resource is  */
     740#define GL_PIN_TEXTURE_SET_CR         0x8B32
     741#define GL_PIN_TEXTURE_CLEAR_CR       0x8B33
     742
    739743/**********************************************************************/
    740744/*****                Chromium-specific API                       *****/
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_glstate.h

    r52263 r52329  
    283283
    284284
     285DECLEXPORT(void) crStateReleaseTexture(CRContext *pCtx, CRTextureObj *pObj);
     286
    285287#ifndef IN_GUEST
    286288DECLEXPORT(int32_t) crStateSaveContext(CRContext *pContext, PSSMHANDLE pSSM);
     
    298300
    299301DECLEXPORT(void) crStateSetTextureUsed(GLuint texture, GLboolean used);
     302DECLEXPORT(void) crStatePinTexture(GLuint texture, GLboolean pin);
    300303DECLEXPORT(void) crStateDeleteTextureCallback(void *texObj);
    301304
  • trunk/src/VBox/GuestHost/OpenGL/include/state/cr_texture.h

    r48491 r52329  
    9494    GLboolean              generateMipmap;
    9595#endif
     96    GLboolean              pinned; /* <- keep the texture alive if its ctxUsage reaches zero */
    9697    CRbitvalue             dirty[CR_MAX_BITARRAY];
    9798    CRbitvalue             imageBit[CR_MAX_BITARRAY];
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