summaryrefslogtreecommitdiffstats
path: root/mojo/services
diff options
context:
space:
mode:
authorjbauman <jbauman@chromium.org>2014-08-23 15:10:23 -0700
committerCommit bot <commit-bot@chromium.org>2014-08-23 22:11:22 +0000
commit878e9535344a864efec4c5137e3b1363f911f378 (patch)
treedb49794dd511d715d608144356c06c6d19a8faa7 /mojo/services
parentef468cde5048721e27faa4265f70f2fd0e424618 (diff)
downloadchromium_src-878e9535344a864efec4c5137e3b1363f911f378.zip
chromium_src-878e9535344a864efec4c5137e3b1363f911f378.tar.gz
chromium_src-878e9535344a864efec4c5137e3b1363f911f378.tar.bz2
Add callback when queueing frame on Surface to create backpressure.
When a frame is queued on a surface, a callback can queued that will be called when that surface is used to draw a frame. This can be used to create backpressure on renderers or the browser compositor. BUG= Review URL: https://codereview.chromium.org/465673003 Cr-Commit-Position: refs/heads/master@{#291605}
Diffstat (limited to 'mojo/services')
-rw-r--r--mojo/services/surfaces/surfaces_impl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/mojo/services/surfaces/surfaces_impl.cc b/mojo/services/surfaces/surfaces_impl.cc
index 7f24a0f..410e8d0 100644
--- a/mojo/services/surfaces/surfaces_impl.cc
+++ b/mojo/services/surfaces/surfaces_impl.cc
@@ -49,7 +49,8 @@ void SurfacesImpl::SubmitFrame(SurfaceIdPtr id, FramePtr frame_ptr) {
<< " should be namespace " << id_namespace_;
return;
}
- factory_.SubmitFrame(id.To<cc::SurfaceId>(), mojo::ConvertTo(frame_ptr));
+ factory_.SubmitFrame(
+ id.To<cc::SurfaceId>(), mojo::ConvertTo(frame_ptr), base::Closure());
client_->FrameSubmitted();
}