Index: content/browser/renderer_host/render_widget_host_impl.cc |
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc |
index 48aeec9145ddd0907106eef94e46c96446b5458c..a6629361beee563c9b87a0faef40fd4f93aa285c 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.cc |
+++ b/content/browser/renderer_host/render_widget_host_impl.cc |
@@ -1768,11 +1768,12 @@ void RenderWidgetHostImpl::OnGpuSwapBuffersCompletedInternal( |
&window_snapshot_component)) { |
int sequence_number = |
static_cast<int>(window_snapshot_component.sequence_number); |
-#if defined(OS_MACOSX) |
- // On Mac, when using CoreAnimation, there is a delay between when content |
- // is drawn to the screen, and when the snapshot will actually pick up |
- // that content. Insert a manual delay of 1/6th of a second (to simulate |
- // 10 frames at 60 fps) before actually taking the snapshot. |
+#if defined(OS_MACOSX) || defined(OS_WIN) |
+ // On Mac, when using CoreAnimation, or Win32 when using GDI, there is a |
+ // delay between when content is drawn to the screen, and when the |
+ // snapshot will actually pick up that content. Insert a manual delay of |
+ // 1/6th of a second (to simulate 10 frames at 60 fps) before actually |
+ // taking the snapshot. |
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
FROM_HERE, |
base::Bind(&RenderWidgetHostImpl::WindowSnapshotReachedScreen, |