OLD | NEW |
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 Loading... |
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 | |
73 SkLayerRasterizer(SkReadBuffer&); | |
74 #endif | |
75 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 72 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
76 | 73 |
77 // override from SkRasterizer | 74 // override from SkRasterizer |
78 virtual bool onRasterize(const SkPath& path, const SkMatrix& matrix, | 75 virtual bool onRasterize(const SkPath& path, const SkMatrix& matrix, |
79 const SkIRect* clipBounds, | 76 const SkIRect* clipBounds, |
80 SkMask* mask, SkMask::CreateMode mode) const; | 77 SkMask* mask, SkMask::CreateMode mode) const; |
81 | 78 |
82 private: | 79 private: |
83 const SkDeque* const fLayers; | 80 const SkDeque* const fLayers; |
84 | 81 |
85 static SkDeque* ReadLayers(SkReadBuffer& buffer); | 82 static SkDeque* ReadLayers(SkReadBuffer& buffer); |
86 | 83 |
87 friend class LayerRasterizerTester; | 84 friend class LayerRasterizerTester; |
88 | 85 |
89 typedef SkRasterizer INHERITED; | 86 typedef SkRasterizer INHERITED; |
90 }; | 87 }; |
91 | 88 |
92 #endif | 89 #endif |
OLD | NEW |