Index: cc/trees/thread_proxy.cc |
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc |
index a2963e1c557a9c14de4be83921403249e92b7994..e711a84a9698108a19e1442a6d4cf0cc6c27c548 100644 |
--- a/cc/trees/thread_proxy.cc |
+++ b/cc/trees/thread_proxy.cc |
@@ -456,9 +456,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 |