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

Side by Side Diff: include/effects/SkLayerRasterizer.h

Issue 395603002: Simplify flattening to just write enough to call the factory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: simplify xfermodes, fix SkLayerDrawLooper Created 6 years, 4 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 unified diff | Download patch
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkLayerRasterizer_DEFINED 10 #ifndef SkLayerRasterizer_DEFINED
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 private: 63 private:
64 SkDeque* fLayers; 64 SkDeque* fLayers;
65 }; 65 };
66 66
67 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkLayerRasterizer) 67 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkLayerRasterizer)
68 68
69 protected: 69 protected:
70 SkLayerRasterizer(); 70 SkLayerRasterizer();
71 SkLayerRasterizer(SkDeque* layers); 71 SkLayerRasterizer(SkDeque* layers);
72 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING
72 SkLayerRasterizer(SkReadBuffer&); 73 SkLayerRasterizer(SkReadBuffer&);
74 #endif
73 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 75 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
74 76
75 // override from SkRasterizer 77 // override from SkRasterizer
76 virtual bool onRasterize(const SkPath& path, const SkMatrix& matrix, 78 virtual bool onRasterize(const SkPath& path, const SkMatrix& matrix,
77 const SkIRect* clipBounds, 79 const SkIRect* clipBounds,
78 SkMask* mask, SkMask::CreateMode mode) const; 80 SkMask* mask, SkMask::CreateMode mode) const;
79 81
80 private: 82 private:
81 const SkDeque* const fLayers; 83 const SkDeque* const fLayers;
82 84
83 static SkDeque* ReadLayers(SkReadBuffer& buffer); 85 static SkDeque* ReadLayers(SkReadBuffer& buffer);
84 86
85 friend class LayerRasterizerTester; 87 friend class LayerRasterizerTester;
86 88
87 typedef SkRasterizer INHERITED; 89 typedef SkRasterizer INHERITED;
88 }; 90 };
89 91
90 #endif 92 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698