• Kai Ninomiya's avatar
    Use unverified sync tokens in PaintCanvasVideoRenderer · 228446ba
    Kai Ninomiya authored
    PaintCanvasVideoRenderer::CopyVideoFrameTexturesToGLTexture
    unnecessarily used verified sync tokens to pass textures between
    Skia's context and WebGL's context. Verification isn't needed
    because these two clients are being used synchronously from the
    same process and thread.
    
    Changing these sync tokens to be unverified gives us a nice
    speedup - on a simple mp4-to-WebGL case on Linux, the texImage2D
    blocking time drops from ~1.25 ms to ~0.70ms (~80% speedup).
    
    Bug: 871417
    Change-Id: I38c246fdb49588eccc87211fa06a2abf00e55c5c
    Reviewed-on: https://chromium-review.googlesource.com/1164163Reviewed-by: default avatarDan Sanders <sandersd@chromium.org>
    Commit-Queue: Kai Ninomiya <kainino@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#584840}
    228446ba
paint_canvas_video_renderer.cc 44 KB