-
/*
* Copyright 2006 The Android Open Source Project
*
* found in the LICENSE file.
*/
-
#ifndef Sk1DPathEffect_DEFINED
#define Sk1DPathEffect_DEFINED
class SkPathMeasure;
-// This class is not exported to java.
-class Sk1DPathEffect : public SkPathEffect {
+// This class is not exported to java.
+class SK_API Sk1DPathEffect : public SkPathEffect {
public:
virtual bool filterPath(SkPath* dst, const SkPath& src, SkStrokeRec*) SK_OVERRIDE;
typedef SkPathEffect INHERITED;
};
-class SkPath1DPathEffect : public Sk1DPathEffect {
+class SK_API SkPath1DPathEffect : public Sk1DPathEffect {
public:
enum Style {
kTranslate_Style, // translate the shape to each position
typedef Sk1DPathEffect INHERITED;
};
-
#endif
-
/*
* Copyright 2006 The Android Open Source Project
*
* found in the LICENSE file.
*/
-
#ifndef Sk2DPathEffect_DEFINED
#define Sk2DPathEffect_DEFINED
#include "SkPathEffect.h"
#include "SkMatrix.h"
-class Sk2DPathEffect : public SkPathEffect {
+class SK_API Sk2DPathEffect : public SkPathEffect {
public:
Sk2DPathEffect(const SkMatrix& mat);
typedef SkPathEffect INHERITED;
};
-class SkLine2DPathEffect : public Sk2DPathEffect {
+class SK_API SkLine2DPathEffect : public Sk2DPathEffect {
public:
SkLine2DPathEffect(SkScalar width, const SkMatrix& matrix)
: Sk2DPathEffect(matrix), fWidth(width) {}
typedef Sk2DPathEffect INHERITED;
};
-class SkPath2DPathEffect : public Sk2DPathEffect {
+class SK_API SkPath2DPathEffect : public Sk2DPathEffect {
public:
/**
* Stamp the specified path to fill the shape, using the matrix to define
typedef Sk2DPathEffect INHERITED;
};
-
#endif
#include "SkXfermode.h"
-class SkArithmeticMode : public SkXfermode {
+class SK_API SkArithmeticMode : public SkXfermode {
public:
/**
* result = clamp[k1 * src * dst + k2 * src + k3 * dst + k4]
};
#endif
-
-
/*
* Copyright 2006 The Android Open Source Project
*
* found in the LICENSE file.
*/
-
#ifndef SkAvoidXfermode_DEFINED
#define SkAvoidXfermode_DEFINED
This xfermode will draw the src everywhere except on top of the specified
color.
*/
-class SkAvoidXfermode : public SkXfermode {
+class SK_API SkAvoidXfermode : public SkXfermode {
public:
enum Mode {
kAvoidColor_Mode, //!< draw everywhere except on the opColor
* found in the LICENSE file.
*/
-
#ifndef SkBitmapSource_DEFINED
#define SkBitmapSource_DEFINED
};
#endif
-
* found in the LICENSE file.
*/
-
#ifndef SkBlendImageFilter_DEFINED
#define SkBlendImageFilter_DEFINED
};
#endif
-
-
/*
* Copyright 2008 The Android Open Source Project
*
* found in the LICENSE file.
*/
-
#ifndef SkBlurImageFilter_DEFINED
#define SkBlurImageFilter_DEFINED
};
#endif
-
-
/*
* Copyright 2006 The Android Open Source Project
*
* found in the LICENSE file.
*/
-
#ifndef SkBlurMaskFilter_DEFINED
#define SkBlurMaskFilter_DEFINED
};
#endif
-
class SkColorFilter;
-class SkColorFilterImageFilter : public SkSingleInputImageFilter {
+class SK_API SkColorFilterImageFilter : public SkSingleInputImageFilter {
public:
SkColorFilterImageFilter(SkColorFilter* cf, SkImageFilter* input = NULL);
virtual ~SkColorFilterImageFilter();
-
/*
* Copyright 2007 The Android Open Source Project
*
* found in the LICENSE file.
*/
-
#ifndef SkColorMatrix_DEFINED
#define SkColorMatrix_DEFINED
#include "SkScalar.h"
-class SkColorMatrix {
+class SK_API SkColorMatrix {
public:
SkScalar fMat[20];
-
/*
* Copyright 2007 The Android Open Source Project
*
* found in the LICENSE file.
*/
-
#ifndef SkColorMatrixFilter_DEFINED
#define SkColorMatrixFilter_DEFINED
-
/*
* Copyright 2006 The Android Open Source Project
*
* found in the LICENSE file.
*/
-
#ifndef SkCornerPathEffect_DEFINED
#define SkCornerPathEffect_DEFINED
};
#endif
-
-
/*
* Copyright 2006 The Android Open Source Project
*
* found in the LICENSE file.
*/
-
#ifndef SkDashPathEffect_DEFINED
#define SkDashPathEffect_DEFINED
};
#endif
-
-
/*
* Copyright 2006 The Android Open Source Project
*
* found in the LICENSE file.
*/
-
#ifndef SkDiscretePathEffect_DEFINED
#define SkDiscretePathEffect_DEFINED
This path effect chops a path into discrete segments, and randomly displaces them.
*/
-class SkDiscretePathEffect : public SkPathEffect {
+class SK_API SkDiscretePathEffect : public SkPathEffect {
public:
/** Break the path into segments of segLength length, and randomly move the endpoints
away from the original path by a maximum of deviation.
};
#endif
-
-
/*
* Copyright 2008 The Android Open Source Project
*
* found in the LICENSE file.
*/
-
#ifndef SK_DRAW_EXTRA_PATH_EFFECT_H
#define SK_DRAW_EXTRA_PATH_EFFECT_H
+
class SkAnimator;
+
void InitializeSkExtraPathEffects(SkAnimator* animator);
-#endif
+#endif
-
/*
* Copyright 2006 The Android Open Source Project
*
* found in the LICENSE file.
*/
-
#ifndef SkEmbossMaskFilter_DEFINED
#define SkEmbossMaskFilter_DEFINED
This mask filter creates a 3D emboss look, by specifying a light and blur amount.
*/
-class SkEmbossMaskFilter : public SkMaskFilter {
+class SK_API SkEmbossMaskFilter : public SkMaskFilter {
public:
struct Light {
SkScalar fDirection[3]; // x,y,z
};
#endif
-
-
/*
* Copyright 2008 The Android Open Source Project
*
* found in the LICENSE file.
*/
-
#ifndef SkKernel33MaskFilter_DEFINED
#define SkKernel33MaskFilter_DEFINED
#include "SkMaskFilter.h"
-class SkKernel33ProcMaskFilter : public SkMaskFilter {
+class SK_API SkKernel33ProcMaskFilter : public SkMaskFilter {
public:
SkKernel33ProcMaskFilter(unsigned percent256 = 256)
: fPercent256(percent256) {}
///////////////////////////////////////////////////////////////////////////////
-class SkKernel33MaskFilter : public SkKernel33ProcMaskFilter {
+class SK_API SkKernel33MaskFilter : public SkKernel33ProcMaskFilter {
public:
SkKernel33MaskFilter(const int coeff[3][3], int shift, int percent256 = 256)
: SkKernel33ProcMaskFilter(percent256) {
-
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+
#ifndef SkLayerDrawLooper_DEFINED
#define SkLayerDrawLooper_DEFINED
typedef SkDrawLooper INHERITED;
};
-
#endif
class SkPaint;
-class SkLayerRasterizer : public SkRasterizer {
+class SK_API SkLayerRasterizer : public SkRasterizer {
public:
SkLayerRasterizer();
virtual ~SkLayerRasterizer();
effects such as sharpening, blurring, edge detection, etc.
*/
-class SkMatrixConvolutionImageFilter : public SkSingleInputImageFilter {
+class SK_API SkMatrixConvolutionImageFilter : public SkSingleInputImageFilter {
public:
/*! \enum TileMode */
enum TileMode {
-
/*
* Copyright 2008 The Android Open Source Project
*
* found in the LICENSE file.
*/
-
#ifndef SkPaintFlagsDrawFilter_DEFINED
#define SkPaintFlagsDrawFilter_DEFINED
#include "SkDrawFilter.h"
-class SkPaintFlagsDrawFilter : public SkDrawFilter {
+class SK_API SkPaintFlagsDrawFilter : public SkDrawFilter {
public:
SkPaintFlagsDrawFilter(uint32_t clearFlags, uint32_t setFlags);
};
#endif
-
-
/*
* Copyright 2007 The Android Open Source Project
*
* found in the LICENSE file.
*/
-
#ifndef SkPixelXorXfermode_DEFINED
#define SkPixelXorXfermode_DEFINED
this proc *always* returns an opaque color (alpha == 255). Thus it is
not really usefull for operating on blended colors.
*/
-class SkPixelXorXfermode : public SkXfermode {
+class SK_API SkPixelXorXfermode : public SkXfermode {
public:
SkPixelXorXfermode(SkColor opColor) : fOpColor(opColor) {}
-
/*
* Copyright 2006 The Android Open Source Project
*
* found in the LICENSE file.
*/
-
#ifndef SkPorterDuff_DEFINED
#define SkPorterDuff_DEFINED
/** DEPRECATED - use SkXfermode::Mode instead
*/
-class SkPorterDuff {
+class SK_API SkPorterDuff {
public:
/** List of predefined xfermodes. In general, the algebra for the modes
uses the following symbols:
};
#endif
-
#include "SkMaskFilter.h"
/**
- * Simple MaskFilter that creates a screen door stipple pattern
+ * Simple MaskFilter that creates a screen door stipple pattern.
*/
-class SkStippleMaskFilter : public SkMaskFilter {
+class SK_API SkStippleMaskFilter : public SkMaskFilter {
public:
SkStippleMaskFilter() : INHERITED() {
}
-
/*
* Copyright 2006 The Android Open Source Project
*
* found in the LICENSE file.
*/
-
#ifndef SkTableMaskFilter_DEFINED
#define SkTableMaskFilter_DEFINED
Applies a table lookup on each of the alpha values in the mask.
Helper methods create some common tables (e.g. gamma, clipping)
*/
-class SkTableMaskFilter : public SkMaskFilter {
+class SK_API SkTableMaskFilter : public SkMaskFilter {
public:
SkTableMaskFilter();
SkTableMaskFilter(const uint8_t table[256]);
};
#endif
-
-
#ifndef _SkTestImageFilters_h
#define _SkTestImageFilters_h
#include "SkImageFilter.h"
#include "SkPoint.h"
-class SkOffsetImageFilter : public SkImageFilter {
+class SK_API SkOffsetImageFilter : public SkImageFilter {
public:
SkOffsetImageFilter(SkScalar dx, SkScalar dy) : INHERITED(0) {
fOffset.set(dx, dy);
typedef SkImageFilter INHERITED;
};
-class SkComposeImageFilter : public SkImageFilter {
+class SK_API SkComposeImageFilter : public SkImageFilter {
public:
SkComposeImageFilter(SkImageFilter* outer, SkImageFilter* inner) : INHERITED(2, outer, inner) {}
virtual ~SkComposeImageFilter();
#include "SkXfermode.h"
-class SkMergeImageFilter : public SkImageFilter {
+class SK_API SkMergeImageFilter : public SkImageFilter {
public:
SkMergeImageFilter(SkImageFilter* first, SkImageFilter* second,
SkXfermode::Mode = SkXfermode::kSrcOver_Mode);
///////////////////////////////////////////////////////////////////////////////
// Fun mode that scales down (only) and then scales back up to look pixelated
-class SkDownSampleImageFilter : public SkImageFilter {
+class SK_API SkDownSampleImageFilter : public SkImageFilter {
public:
SkDownSampleImageFilter(SkScalar scale) : INHERITED(0), fScale(scale) {}
-
/*
* Copyright 2006 The Android Open Source Project
*
* found in the LICENSE file.
*/
-
#ifndef SkTransparentShader_DEFINED
#define SkTransparentShader_DEFINED
#include "SkShader.h"
-class SkTransparentShader : public SkShader {
+class SK_API SkTransparentShader : public SkShader {
public:
SkTransparentShader() {}
virtual uint32_t getFlags() SK_OVERRIDE;
- virtual bool setContext( const SkBitmap& device,
- const SkPaint& paint,
- const SkMatrix& matrix) SK_OVERRIDE;
+ virtual bool setContext(const SkBitmap& device,
+ const SkPaint& paint,
+ const SkMatrix& matrix) SK_OVERRIDE;
virtual void shadeSpan(int x, int y, SkPMColor[], int count) SK_OVERRIDE;
virtual void shadeSpan16(int x, int y, uint16_t span[], int count) SK_OVERRIDE;
};
#endif
-