Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: trunk/src/content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 343033002: Revert 278472 "DevTools: Fix for Page.captureScreenshot" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: trunk/src/content/browser/renderer_host/render_widget_host_view_mac.mm
===================================================================
--- trunk/src/content/browser/renderer_host/render_widget_host_view_mac.mm (revision 278497)
+++ trunk/src/content/browser/renderer_host/render_widget_host_view_mac.mm (working copy)
@@ -2069,12 +2069,6 @@
NULL)) {
should_defer = true;
}
- if (latency_info[i].FindLatency(
- ui::WINDOW_OLD_SNAPSHOT_FRAME_NUMBER_COMPONENT,
- render_widget_host_->GetLatencyComponentId(),
- NULL)) {
- should_defer = true;
- }
}
if (should_defer) {
// Multiple pending screenshot requests will work, but if every frame
@@ -2119,7 +2113,8 @@
base::Bind(&RenderWidgetHostViewMac::TickPendingLatencyInfoDelay,
pending_latency_info_delay_weak_ptr_factory_.GetWeakPtr()));
[compositing_iosurface_layer_ gotNewFrame];
- } else {
+ }
+ if (software_layer_) {
// In software mode there is not an explicit setNeedsDisplay/display loop,
// so just wait a pretend-vsync at 60 Hz.
base::MessageLoop::current()->PostDelayedTask(
« no previous file with comments | « trunk/src/content/browser/renderer_host/render_widget_host_impl.cc ('k') | trunk/src/content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698