Add support to delay sending SwapbufferAck as needed.
commitae4355c2148da9d549134da9d81d68fd1892724e
authorkalyan.kondapally <kalyan.kondapally@intel.com>
Wed, 24 Dec 2014 02:02:02 +0000 (23 18:02 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 24 Dec 2014 02:02:54 +0000 (24 02:02 +0000)
tree7f5364c9e1fb20462c73d5443b4ce8eb77932165
parent529e7f1c22bbb63fa91160b8d4fc5701c2a6415c
Add support to delay sending SwapbufferAck as needed.

On platforms (i.e. ChromeOS using Ozone) where Chromium is responsible for
displaying the buffers, we want to delay SwapBufferAck till we know that
the buffer is displayed on screen. Currently, we block the GPU main thread till
that data is available. This patch introduces SwapBufferAsync apis, which are
similar to current SwapBuffer calls except that it adds a callback function
which can be used to delay sending SwapBufferAck as needed.

BUG=443543,chrome-os-partner:34292

Review URL: https://codereview.chromium.org/797843005

Cr-Commit-Position: refs/heads/master@{#309602}
content/common/gpu/image_transport_surface.cc
content/common/gpu/image_transport_surface.h
ui/gl/gl_surface.cc
ui/gl/gl_surface.h