Index: content/common/gpu/image_transport_surface.cc |
diff --git a/content/common/gpu/image_transport_surface.cc b/content/common/gpu/image_transport_surface.cc |
index 6e2bcaed0f69435441c467271a4a58593e2bd3f7..2f13b0371d397aefb30128dcdac5655a5876f216 100644 |
--- a/content/common/gpu/image_transport_surface.cc |
+++ b/content/common/gpu/image_transport_surface.cc |
@@ -210,6 +210,21 @@ void PassThroughImageTransportSurface::PostSubBufferAsync( |
callback)); |
} |
+gfx::SwapResult PassThroughImageTransportSurface::CommitOverlayPlanes() { |
+ scoped_ptr<std::vector<ui::LatencyInfo>> latency_info = StartSwapBuffers(); |
+ gfx::SwapResult result = gfx::GLSurfaceAdapter::CommitOverlayPlanes(); |
+ FinishSwapBuffers(latency_info.Pass(), result); |
+ return result; |
+} |
+ |
+void PassThroughImageTransportSurface::CommitOverlayPlanesAsync( |
+ const GLSurface::SwapCompletionCallback& callback) { |
+ scoped_ptr<std::vector<ui::LatencyInfo>> latency_info = StartSwapBuffers(); |
+ gfx::GLSurfaceAdapter::CommitOverlayPlanesAsync(base::Bind( |
+ &PassThroughImageTransportSurface::FinishSwapBuffersAsync, |
+ weak_ptr_factory_.GetWeakPtr(), base::Passed(&latency_info), callback)); |
+} |
+ |
bool PassThroughImageTransportSurface::OnMakeCurrent(gfx::GLContext* context) { |
if (!did_set_swap_interval_) { |
ImageTransportHelper::SetSwapInterval(context); |