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

Unified Diff: include/core/SkStrokeRec.h

Issue 1468483002: Add SK_BEGIN_REQUIRE_DENSE / SK_END_REQUIRE_DENSE. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: SkStrokeRec Created 5 years, 1 month 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 | « include/core/SkMatrix.h ('k') | include/core/SkTypes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkStrokeRec.h
diff --git a/include/core/SkStrokeRec.h b/include/core/SkStrokeRec.h
index e92cb7ca883aab61113e25dd50359748272a35a6..32e54405632fccba6b7d1d57978f115afa936255 100644
--- a/include/core/SkStrokeRec.h
+++ b/include/core/SkStrokeRec.h
@@ -12,6 +12,7 @@
class SkPath;
+SK_BEGIN_REQUIRE_DENSE
class SkStrokeRec {
public:
enum InitStyle {
@@ -118,12 +119,13 @@ private:
// The following three members are packed together into a single u32.
// This is to avoid unnecessary padding and ensure binary equality for
// hashing (because the padded areas might contain garbage values).
- //
+ //
// fCap and fJoin are larger than needed to avoid having to initialize
// any pad values
uint32_t fCap : 16; // SkPaint::Cap
uint32_t fJoin : 15; // SkPaint::Join
uint32_t fStrokeAndFill : 1; // bool
};
+SK_END_REQUIRE_DENSE
#endif
« no previous file with comments | « include/core/SkMatrix.h ('k') | include/core/SkTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698