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

Unified Diff: content/renderer/render_widget.cc

Issue 9856005: Issue the correct Pepper flow control calls in threaded mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaks Created 8 years, 9 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
« 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 33d2bd5c7aae9b87f925080e9f1ae238d0384ee2..7530f09cc8a8f10312512336d1bd90ab90f684bd 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1108,6 +1108,11 @@ void RenderWidget::didDeactivateCompositor() {
using_asynchronous_swapbuffers_ = false;
}
+void RenderWidget::willBeginCompositorFrame() {
+ TRACE_EVENT0("gpu", "RenderWidget::willBeginCompositorFrame");
+ WillInitiatePaint();
+}
+
void RenderWidget::didCommitAndDrawCompositorFrame() {
TRACE_EVENT0("gpu", "RenderWidget::didCommitAndDrawCompositorFrame");
// Accelerated FPS tick for performance tests. See throughput_tests.cc.
@@ -1118,6 +1123,8 @@ void RenderWidget::didCommitAndDrawCompositorFrame() {
}
void RenderWidget::didCompleteSwapBuffers() {
+ DidFlushPaint();
+
if (update_reply_pending_)
return;
« 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