• reveman's avatar
    gpu: Compositor management of GpuMemoryBuffer instances. · 22dd9298
    reveman authored
    This is a refactor of the CHROMIUM_image extension that allows
    the compositor to map/unmap GpuMemoryBuffers on worker threads
    and potentially also allocate these buffers on worker threads.
    
    CreateImageCHROMIUM now takes an opaque ClientBuffer as first
    parameter. ClientBuffer is implementation specific and in the
    case of chromium a gfx::GpuMemoryBuffer. Or more specifically
    a content::GpuMemoryBufferImpl when used with the content layer.
    
    This allows the compositor to allocate and use GpuMemoryBuffers
    without a GLES2Interface.
    
    A GpuMemoryBufferManager interface has been introduced. This
    interface provides a mechanism for the compositor to allocate
    GpuMemoryBuffer instances in the renderer and browser process.
    
    BUG=418553
    
    Review URL: https://codereview.chromium.org/634083002
    
    Cr-Commit-Position: refs/heads/master@{#299360}
    22dd9298
gl_image_glx.cc 5.04 KB