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

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

Issue 134163010: Refactor read and write buffers. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: original write flags were fine 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 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 17 matching lines...) Expand all
28 /** Add a new layer (above any previous layers) to the rasterizer. 28 /** Add a new layer (above any previous layers) to the rasterizer.
29 The layer will extract those fields that affect the mask from 29 The layer will extract those fields that affect the mask from
30 the specified paint, but will not retain a reference to the paint 30 the specified paint, but will not retain a reference to the paint
31 object itself, so it may be reused without danger of side-effects. 31 object itself, so it may be reused without danger of side-effects.
32 */ 32 */
33 void addLayer(const SkPaint& paint, SkScalar dx, SkScalar dy); 33 void addLayer(const SkPaint& paint, SkScalar dx, SkScalar dy);
34 34
35 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkLayerRasterizer) 35 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkLayerRasterizer)
36 36
37 protected: 37 protected:
38 SkLayerRasterizer(SkFlattenableReadBuffer&); 38 SkLayerRasterizer(SkReadBuffer&);
39 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; 39 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
40 40
41 // override from SkRasterizer 41 // override from SkRasterizer
42 virtual bool onRasterize(const SkPath& path, const SkMatrix& matrix, 42 virtual bool onRasterize(const SkPath& path, const SkMatrix& matrix,
43 const SkIRect* clipBounds, 43 const SkIRect* clipBounds,
44 SkMask* mask, SkMask::CreateMode mode) const; 44 SkMask* mask, SkMask::CreateMode mode) const;
45 45
46 private: 46 private:
47 SkDeque fLayers; 47 SkDeque fLayers;
48 48
49 typedef SkRasterizer INHERITED; 49 typedef SkRasterizer INHERITED;
50 }; 50 };
51 51
52 #endif 52 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698