Index: cc/trees/thread_proxy.cc |
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc |
index 1eed641f22a3179e8f18a1f209b28a204831081a..c151b32dbff56ec5080cb226de22b3ad401ab829 100644 |
--- a/cc/trees/thread_proxy.cc |
+++ b/cc/trees/thread_proxy.cc |
@@ -473,9 +473,10 @@ void ThreadProxy::SetNextCommitWaitsForActivation() { |
void ThreadProxy::SetDeferCommits(bool defer_commits) { |
DCHECK(IsMainThread()); |
- DCHECK_NE(main().defer_commits, defer_commits); |
- main().defer_commits = defer_commits; |
+ if (main().defer_commits == defer_commits) |
+ return; |
+ main().defer_commits = defer_commits; |
if (main().defer_commits) |
TRACE_EVENT_ASYNC_BEGIN0("cc", "ThreadProxy::SetDeferCommits", this); |
else |