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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 15682010: Support plumbing LatencyInfo through the old software path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after
1859 // We don't need to update the view if the view is hidden. We must do this 1859 // We don't need to update the view if the view is hidden. We must do this
1860 // early return after the ACK is sent, however, or the renderer will not send 1860 // early return after the ACK is sent, however, or the renderer will not send
1861 // us more data. 1861 // us more data.
1862 if (is_hidden_) 1862 if (is_hidden_)
1863 return; 1863 return;
1864 1864
1865 // Now paint the view. Watch out: it might be destroyed already. 1865 // Now paint the view. Watch out: it might be destroyed already.
1866 if (view_ && !is_accelerated_compositing_active_) { 1866 if (view_ && !is_accelerated_compositing_active_) {
1867 view_being_painted_ = true; 1867 view_being_painted_ = true;
1868 view_->DidUpdateBackingStore(params.scroll_rect, params.scroll_delta, 1868 view_->DidUpdateBackingStore(params.scroll_rect, params.scroll_delta,
1869 params.copy_rects); 1869 params.copy_rects, params.latency_info);
1870 view_being_painted_ = false; 1870 view_being_painted_ = false;
1871 } 1871 }
1872 1872
1873 // If we got a resize ack, then perhaps we have another resize to send? 1873 // If we got a resize ack, then perhaps we have another resize to send?
1874 bool is_resize_ack = 1874 bool is_resize_ack =
1875 ViewHostMsg_UpdateRect_Flags::is_resize_ack(params.flags); 1875 ViewHostMsg_UpdateRect_Flags::is_resize_ack(params.flags);
1876 if (is_resize_ack) 1876 if (is_resize_ack)
1877 WasResized(); 1877 WasResized();
1878 1878
1879 // Log the time delta for processing a paint message. 1879 // Log the time delta for processing a paint message.
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
2540 if (!host) 2540 if (!host)
2541 continue; 2541 continue;
2542 RenderWidgetHost* rwh = host->GetRenderWidgetHostByID(routing_id); 2542 RenderWidgetHost* rwh = host->GetRenderWidgetHostByID(routing_id);
2543 if (!rwh) 2543 if (!rwh)
2544 continue; 2544 continue;
2545 RenderWidgetHostImpl::From(rwh)->FrameSwapped(latency_info); 2545 RenderWidgetHostImpl::From(rwh)->FrameSwapped(latency_info);
2546 } 2546 }
2547 } 2547 }
2548 2548
2549 } // namespace content 2549 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698