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

Unified Diff: src/core/SkPictureFlat.h

Issue 158913005: Merge tomhudson and mtklein SkPaint shrinking approaches. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweak Created 6 years, 10 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
Index: src/core/SkPictureFlat.h
diff --git a/src/core/SkPictureFlat.h b/src/core/SkPictureFlat.h
index 7973e65398188d720fd06db7fedcb25512a3a438..48ae8495fddc42771da6d03bbcaa8d1698cdf281 100644
--- a/src/core/SkPictureFlat.h
+++ b/src/core/SkPictureFlat.h
@@ -561,15 +561,7 @@ private:
SkFlatData::Identity, SkFlatData::Hash, SkFlatData::Equal> fHash;
};
-struct SkPaintTraits {
- static void flatten(SkWriteBuffer& buffer, const SkPaint& paint) {
- paint.flatten(buffer);
- }
- static void unflatten(SkReadBuffer& buffer, SkPaint* paint) {
- paint->unflatten(buffer);
- }
-};
-typedef SkFlatDictionary<SkPaint, SkPaintTraits> SkPaintDictionary;
+typedef SkFlatDictionary<SkPaint, SkPaint::FlatteningTraits> SkPaintDictionary;
class SkChunkFlatController : public SkFlatController {
public:

Powered by Google App Engine
This is Rietveld 408576698