• backer@chromium.org's avatar
    Vend common GL context · ef29f34b
    backer@chromium.org authored
    We can't rely on having a compositor for set-up and tear-down of cross process texture transport. This CL creates a shared offscreen context appropriate for that. It further separates TextureGL objects from CompositorGL objects. In particular
    - I've plumbed through the size of the surface backing the Compositor to the Texture
    - I've allows the TextureGL to release it's GL resources using the shared context
    
    It's necessary to make the vendor of the offscreen context a LeakySingletonTrait singleton so that we don't race with destruction of GL bindings on process shutdown.
    
    BUG=fixes dereferencing NULL pointers in RWHVVTouch when images come from GPU process
    TEST=3D CSS on TOUCH_UI, views_desktop on Windows
    
    Review URL: http://codereview.chromium.org/7552039
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98441 0039d316-1c4b-4281-b951-d872f2087c98
    ef29f34b
compositor_win.cc 28 KB