Index: cc/surfaces/surface.cc |
diff --git a/cc/surfaces/surface.cc b/cc/surfaces/surface.cc |
index 16987cb84e49b356bd2cf4afa0fd255f9ddf82a6..853d37b5990bb79eaacbef1b72191955c5b8e394 100644 |
--- a/cc/surfaces/surface.cc |
+++ b/cc/surfaces/surface.cc |
@@ -22,7 +22,9 @@ Surface::Surface(SurfaceId id, SurfaceFactory* factory) |
: surface_id_(id), |
factory_(factory->AsWeakPtr()), |
frame_index_(kFrameIndexStart), |
- destroyed_(false) {} |
+ destroyed_(false) { |
+ factory_->client()->SetBeginFrameSource(surface_id_, NULL); |
+} |
Surface::~Surface() { |
ClearCopyRequests(); |
@@ -35,6 +37,8 @@ Surface::~Surface() { |
} |
if (!draw_callback_.is_null()) |
draw_callback_.Run(SurfaceDrawStatus::DRAW_SKIPPED); |
+ |
+ factory_->client()->SetBeginFrameSource(surface_id_, NULL); |
} |
void Surface::QueueFrame(scoped_ptr<CompositorFrame> frame, |