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

Unified Diff: cc/scheduler/scheduler.cc

Issue 1175703004: cc: DCHECK if SDOS::SwapBuffersComplete is called prematurely (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stack traces Created 5 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
« no previous file with comments | « no previous file | cc/surfaces/surface_display_output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler.cc
diff --git a/cc/scheduler/scheduler.cc b/cc/scheduler/scheduler.cc
index 0d90c68214f15a822f66419d899885b7a4e84e56..2d64e56eb7aabbf9f6f4e86dd1cca4590ec5e75e 100644
--- a/cc/scheduler/scheduler.cc
+++ b/cc/scheduler/scheduler.cc
@@ -7,6 +7,7 @@
#include <algorithm>
#include "base/auto_reset.h"
+#include "base/debug/stack_trace.h"
#include "base/logging.h"
#include "base/profiler/scoped_tracker.h"
#include "base/single_thread_task_runner.h"
@@ -226,7 +227,8 @@ void Scheduler::DidSwapBuffers() {
}
void Scheduler::DidSwapBuffersComplete() {
- DCHECK_GT(state_machine_.pending_swaps(), 0) << AsValue()->ToString();
+ DCHECK_GT(state_machine_.pending_swaps(), 0)
+ << AsValue()->ToString() << base::debug::StackTrace().ToString();
state_machine_.DidSwapBuffersComplete();
ProcessScheduledActions();
}
« no previous file with comments | « no previous file | cc/surfaces/surface_display_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698