Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1595)

Unified Diff: Source/platform/graphics/paint/DisplayItem.cpp

Issue 1317143005: [WIP] do something :-) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/fonts/FontDescription.cpp ('k') | Source/platform/heap/HeapTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/paint/DisplayItem.cpp
diff --git a/Source/platform/graphics/paint/DisplayItem.cpp b/Source/platform/graphics/paint/DisplayItem.cpp
index 25b0bcf79e4bb6e243f672e6e88edb6c865b86af..69de77ee826839164e9839193eb0d66f53e3dac1 100644
--- a/Source/platform/graphics/paint/DisplayItem.cpp
+++ b/Source/platform/graphics/paint/DisplayItem.cpp
@@ -5,17 +5,11 @@
#include "config.h"
#include "platform/graphics/paint/DisplayItem.h"
+#include "wtf/SizeAssertions.h"
+
namespace blink {
-struct SameSizeAsDisplayItem {
- virtual ~SameSizeAsDisplayItem() { } // Allocate vtable pointer.
- void* pointer;
- int ints[2]; // Make sure other fields are packed into two ints.
-#ifndef NDEBUG
- WTF::String m_debugString;
-#endif
-};
-static_assert(sizeof(DisplayItem) == sizeof(SameSizeAsDisplayItem), "DisplayItem should stay small");
+ASSERT_SIZE(DisplayItem, 16, 24);
#ifndef NDEBUG
« no previous file with comments | « Source/platform/fonts/FontDescription.cpp ('k') | Source/platform/heap/HeapTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698