summaryrefslogtreecommitdiffstats
path: root/cc/surfaces/surface_factory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/surfaces/surface_factory.cc')
-rw-r--r--cc/surfaces/surface_factory.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/cc/surfaces/surface_factory.cc b/cc/surfaces/surface_factory.cc
index 72ebdc4..b71994e 100644
--- a/cc/surfaces/surface_factory.cc
+++ b/cc/surfaces/surface_factory.cc
@@ -27,6 +27,7 @@ SurfaceFactory::~SurfaceFactory() {
<< " entries in map on destruction.";
}
DestroyAll();
+ client_->SetBeginFrameSource(SurfaceId(), nullptr);
}
void SurfaceFactory::DestroyAll() {
@@ -49,6 +50,11 @@ void SurfaceFactory::Destroy(SurfaceId surface_id) {
manager_->Destroy(surface_map_.take_and_erase(it));
}
+void SurfaceFactory::SetBeginFrameSource(SurfaceId surface_id,
+ BeginFrameSource* begin_frame_source) {
+ client_->SetBeginFrameSource(surface_id, begin_frame_source);
+}
+
void SurfaceFactory::SubmitCompositorFrame(SurfaceId surface_id,
scoped_ptr<CompositorFrame> frame,
const DrawCallback& callback) {