Commit 787e6f74 authored by wangxianzhu's avatar wangxianzhu Committed by Commit bot

Check new display item list committed when destructing PaintController

BUG=616700

Review-Url: https://codereview.chromium.org/2038873002
Cr-Commit-Position: refs/heads/master@{#398236}
parent 897d431a
...@@ -44,6 +44,8 @@ public: ...@@ -44,6 +44,8 @@ public:
~PaintController() ~PaintController()
{ {
// New display items should be committed before PaintController is destructed.
DCHECK(m_newDisplayItemList.isEmpty());
#if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS #if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS
DisplayItemClient::endShouldKeepAliveAllClients(this); DisplayItemClient::endShouldKeepAliveAllClients(this);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment