Commit 69682c5c authored by wangxianzhu's avatar wangxianzhu Committed by Commit bot

Disable copy and assignment for DisplayItemClient

The copy constructor breaks DisplayItemClient aliveness checking.
We could fix the copy constructor but it looks better not to support
the copy constructor.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2

Review-Url: https://codereview.chromium.org/2611923002
Cr-Commit-Position: refs/heads/master@{#441432}
parent 7fcd6039
......@@ -45,6 +45,7 @@ class PLATFORM_EXPORT DisplayItemClient {
static void endShouldKeepAliveAllClients(const void* owner);
static void endShouldKeepAliveAllClients();
#else
DisplayItemClient() {}
virtual ~DisplayItemClient() {}
#endif
......@@ -171,6 +172,8 @@ class PLATFORM_EXPORT DisplayItemClient {
mutable CacheGenerationOrInvalidationReason
m_cacheGenerationOrInvalidationReason;
DISALLOW_COPY_AND_ASSIGN(DisplayItemClient);
};
inline bool operator==(const DisplayItemClient& client1,
......
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