Index: cc/trees/thread_proxy.cc |
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc |
index b18b93a63518f976b00ff36c570f4b5ae57c7346..1145ad48e786ccb1745b6005e51551e702b36362 100644 |
--- a/cc/trees/thread_proxy.cc |
+++ b/cc/trees/thread_proxy.cc |
@@ -466,9 +466,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 |