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

Unified Diff: include/core/SkPicture.h

Issue 1060863004: Reduce sizeof(SkPicture::Analysis) from 24 bytes to 2 bytes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: robertphillips nits Created 5 years, 8 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 | « no previous file | src/core/SkPicture.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPicture.h
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index a565e415eb791b4b926baa3be631fbae5c847c79..6bd4d4654a4a1fdf7b5773410e1f29be6fde5a71 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -292,13 +292,9 @@ private:
bool suitableForGpuRasterization(const char** reason, int sampleCount) const;
- bool fWillPlaybackBitmaps;
- bool fHasText;
- int fNumPaintWithPathEffectUses;
- int fNumFastPathDashEffects;
- int fNumAAConcavePaths;
- int fNumAAHairlineConcavePaths;
- int fNumAADFEligibleConcavePaths;
+ uint8_t fNumSlowPathsAndDashEffects;
+ bool fWillPlaybackBitmaps : 1;
+ bool fHasText : 1;
} fAnalysis;
friend class SkPictureRecorder; // SkRecord-based constructor.
@@ -307,6 +303,6 @@ private:
friend class SkPictureUtils;
friend class SkRecordedDrawable;
};
-SK_COMPILE_ASSERT(sizeof(SkPicture) <= 104, SkPictureSize);
+SK_COMPILE_ASSERT(sizeof(SkPicture) <= 88, SkPictureSize);
#endif
« no previous file with comments | « no previous file | src/core/SkPicture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698