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

Unified Diff: content/renderer/render_widget.cc

Issue 8528006: Fix resize issues when using threaded compositing (Closed)
Patch Set: Rename to match WebKit patch, also early out if update reply already pending Created 9 years, 1 month 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
« no previous file with comments | « content/renderer/render_widget.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 6b869cf7435880f4ae15f3078895a403a067943b..0fc8a4de1d3365752bfbb10f8fb87e52569633e5 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -968,6 +968,30 @@ void RenderWidget::didDeactivateCompositor() {
using_asynchronous_swapbuffers_ = false;
}
+void RenderWidget::didCommitAndDrawCompositorFrame()
jam 2011/11/17 22:56:12 nit: here and below, brace bracket on the previous
+{
+}
+
+void RenderWidget::didCompleteSwapBuffers()
+{
+ if (update_reply_pending())
+ return;
+
+ if (!next_paint_flags_ && !plugin_window_moves_.size())
jbates 2012/04/16 23:41:35 This will blow up if someone adds new flags to Vie
+ return;
+
+ ViewHostMsg_UpdateRect_Params params;
+ params.view_size = size_;
+ params.resizer_rect = resizer_rect_;
+ params.plugin_window_moves.swap(plugin_window_moves_);
+ params.flags = next_paint_flags_;
+ params.scroll_offset = GetScrollOffset();
+ update_reply_pending_ = true;
+
+ Send(new ViewHostMsg_UpdateRect(routing_id_, params));
+ next_paint_flags_ = 0;
+}
+
void RenderWidget::scheduleComposite() {
if (WebWidgetHandlesCompositorScheduling())
webwidget_->composite(false);
« no previous file with comments | « content/renderer/render_widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698