| Index: content/common/gpu/texture_image_transport_surface.cc
|
| diff --git a/content/common/gpu/texture_image_transport_surface.cc b/content/common/gpu/texture_image_transport_surface.cc
|
| index a40b60df36e7bc9c505f4483869a54e395342d41..b2159b7ad8322b4d456c5fa6157d1bcc36b80e4e 100644
|
| --- a/content/common/gpu/texture_image_transport_surface.cc
|
| +++ b/content/common/gpu/texture_image_transport_surface.cc
|
| @@ -201,8 +201,14 @@ void TextureImageTransportSurface::OnWillDestroyStub(
|
| stub_destroyed_ = true;
|
| }
|
|
|
| +void TextureImageTransportSurface::SetLatencyInfo(
|
| + const cc::LatencyInfo& latency_info) {
|
| + latency_info_ = latency_info;
|
| +}
|
| +
|
| bool TextureImageTransportSurface::SwapBuffers() {
|
| DCHECK(backbuffer_suggested_allocation_);
|
| +
|
| if (!frontbuffer_suggested_allocation_)
|
| return true;
|
|
|
| @@ -225,6 +231,7 @@ bool TextureImageTransportSurface::SwapBuffers() {
|
| // so we do not leak a texture in the mailbox.
|
| AddRef();
|
|
|
| + params.latency_info = latency_info_;
|
| helper_->SendAcceleratedSurfaceBuffersSwapped(params);
|
|
|
| DCHECK(!is_swap_buffers_pending_);
|
| @@ -267,6 +274,7 @@ bool TextureImageTransportSurface::PostSubBuffer(
|
| // so we do not leak a texture in the mailbox.
|
| AddRef();
|
|
|
| + params.latency_info = latency_info_;
|
| helper_->SendAcceleratedSurfacePostSubBuffer(params);
|
|
|
| DCHECK(!is_swap_buffers_pending_);
|
|
|