Index: cc/trees/thread_proxy.cc |
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc |
index 03e7afc8ec242eb1ecc6e07fee715d89b392454c..865adb722fb7d03ec0da8582162e626f305ca502 100644 |
--- a/cc/trees/thread_proxy.cc |
+++ b/cc/trees/thread_proxy.cc |
@@ -465,9 +465,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 |