Index: content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc |
diff --git a/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc b/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc |
index 1a25a276b66e7826a988b6cccccefd3fc5042c13..0c4d066e37895a768142f2491c6e6b1d489ce988 100644 |
--- a/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc |
+++ b/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc |
@@ -19,6 +19,7 @@ |
surface_factory_ = base::MakeUnique<cc::SurfaceFactory>( |
surface_id_.frame_sink_id(), manager, this); |
manager->RegisterFrameSinkId(surface_id_.frame_sink_id()); |
+ surface_factory_->Create(surface_id_.local_frame_id()); |
} |
OffscreenCanvasCompositorFrameSink::~OffscreenCanvasCompositorFrameSink() { |
@@ -30,7 +31,7 @@ |
} else { |
manager->InvalidateFrameSinkId(surface_id_.frame_sink_id()); |
} |
- surface_factory_->EvictSurface(); |
+ surface_factory_->Destroy(surface_id_.local_frame_id()); |
} |
// static |