gfx/skia/trunk/include/core/SkRasterizer.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/include/core/SkRasterizer.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,45 @@
     1.4 +
     1.5 +/*
     1.6 + * Copyright 2006 The Android Open Source Project
     1.7 + *
     1.8 + * Use of this source code is governed by a BSD-style license that can be
     1.9 + * found in the LICENSE file.
    1.10 + */
    1.11 +
    1.12 +
    1.13 +#ifndef SkRasterizer_DEFINED
    1.14 +#define SkRasterizer_DEFINED
    1.15 +
    1.16 +#include "SkFlattenable.h"
    1.17 +#include "SkMask.h"
    1.18 +
    1.19 +class SkMaskFilter;
    1.20 +class SkMatrix;
    1.21 +class SkPath;
    1.22 +struct SkIRect;
    1.23 +
    1.24 +class SK_API SkRasterizer : public SkFlattenable {
    1.25 +public:
    1.26 +    SK_DECLARE_INST_COUNT(SkRasterizer)
    1.27 +
    1.28 +    /** Turn the path into a mask, respecting the specified local->device matrix.
    1.29 +    */
    1.30 +    bool rasterize(const SkPath& path, const SkMatrix& matrix,
    1.31 +                   const SkIRect* clipBounds, SkMaskFilter* filter,
    1.32 +                   SkMask* mask, SkMask::CreateMode mode) const;
    1.33 +
    1.34 +    SK_DEFINE_FLATTENABLE_TYPE(SkRasterizer)
    1.35 +
    1.36 +protected:
    1.37 +    SkRasterizer() {}
    1.38 +    SkRasterizer(SkReadBuffer& buffer) : INHERITED(buffer) {}
    1.39 +
    1.40 +    virtual bool onRasterize(const SkPath& path, const SkMatrix& matrix,
    1.41 +                             const SkIRect* clipBounds,
    1.42 +                             SkMask* mask, SkMask::CreateMode mode) const;
    1.43 +
    1.44 +private:
    1.45 +    typedef SkFlattenable INHERITED;
    1.46 +};
    1.47 +
    1.48 +#endif

mercurial