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

Unified Diff: content/renderer/render_widget.cc

Issue 8528006: Fix resize issues when using threaded compositing (Closed)
Patch Set: Rebase on ToT, simplify, send message on impl swap not client 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..52cc60385b60bf16c729cf4b8cdbef847d64bc13 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -968,6 +968,27 @@ void RenderWidget::didDeactivateCompositor() {
using_asynchronous_swapbuffers_ = false;
}
+void RenderWidget::didCommitAndDrawCompositorFrame()
+{
+}
+
+void RenderWidget::didCompleteSwapbuffers()
nduca 2011/11/12 03:22:06 Should this be conditional on compositor thread mo
enne (OOO) 2011/11/12 19:29:19 This function is robust to being called multiple t
+{
+ if (!next_paint_flags_ && !plugin_window_moves_.size())
+ 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