Forward declare SkStrokeRec in SkPathEffect
Review URL: https://codereview.chromium.org/1312163008
This commit is contained in:
parent
98ed7b6d01
commit
435657fd62
@ -13,6 +13,7 @@
|
||||
#include "SkPath.h"
|
||||
#include "SkRandom.h"
|
||||
#include "SkString.h"
|
||||
#include "SkStrokeRec.h"
|
||||
#include "SkTDArray.h"
|
||||
|
||||
|
||||
|
@ -14,10 +14,10 @@
|
||||
#include "SkPath.h"
|
||||
#include "SkPoint.h"
|
||||
#include "SkRect.h"
|
||||
#include "SkStrokeRec.h"
|
||||
#include "SkTDArray.h"
|
||||
|
||||
class SkPath;
|
||||
class SkStrokeRec;
|
||||
|
||||
/** \class SkPathEffect
|
||||
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include "SkUtils.h"
|
||||
#include "SkColorPriv.h"
|
||||
#include "SkColorFilter.h"
|
||||
#include "SkStrokeRec.h"
|
||||
#include "SkTypeface.h"
|
||||
|
||||
static inline SkPMColor rgb2gray(SkPMColor c) {
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "SkSmallAllocator.h"
|
||||
#include "SkString.h"
|
||||
#include "SkStroke.h"
|
||||
#include "SkStrokeRec.h"
|
||||
#include "SkTextMapStateProc.h"
|
||||
#include "SkTLazy.h"
|
||||
#include "SkUtils.h"
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "SkTextToPathIter.h"
|
||||
#include "SkTLazy.h"
|
||||
#include "SkTypeface.h"
|
||||
#include "SkStrokeRec.h"
|
||||
#include "SkSurfacePriv.h"
|
||||
#include "SkXfermode.h"
|
||||
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "SkRasterizer.h"
|
||||
#include "SkRasterClip.h"
|
||||
#include "SkStroke.h"
|
||||
#include "SkStrokeRec.h"
|
||||
|
||||
#define ComputeBWRowBytes(width) (((unsigned)(width) + 7) >> 3)
|
||||
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include "SkReadBuffer.h"
|
||||
#include "SkWriteBuffer.h"
|
||||
#include "SkPathMeasure.h"
|
||||
#include "SkStrokeRec.h"
|
||||
|
||||
bool Sk1DPathEffect::filterPath(SkPath* dst, const SkPath& src,
|
||||
SkStrokeRec*, const SkRect*) const {
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include "SkWriteBuffer.h"
|
||||
#include "SkPath.h"
|
||||
#include "SkRegion.h"
|
||||
#include "SkStrokeRec.h"
|
||||
|
||||
Sk2DPathEffect::Sk2DPathEffect(const SkMatrix& mat) : fMatrix(mat) {
|
||||
fMatrixIsInvertible = mat.invert(&fInverse);
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include "SkDashPathPriv.h"
|
||||
#include "SkReadBuffer.h"
|
||||
#include "SkWriteBuffer.h"
|
||||
#include "SkStrokeRec.h"
|
||||
|
||||
SkDashPathEffect::SkDashPathEffect(const SkScalar intervals[], int count, SkScalar phase)
|
||||
: fPhase(0)
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include "SkReadBuffer.h"
|
||||
#include "SkWriteBuffer.h"
|
||||
#include "SkPathMeasure.h"
|
||||
#include "SkStrokeRec.h"
|
||||
|
||||
static void Perterb(SkPoint* p, const SkVector& tangent, SkScalar scale) {
|
||||
SkVector normal = tangent;
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
#include "SkDashPathPriv.h"
|
||||
#include "SkPathMeasure.h"
|
||||
#include "SkStrokeRec.h"
|
||||
|
||||
static inline int is_even(int x) {
|
||||
return (~x) << 31;
|
||||
|
@ -9,6 +9,7 @@
|
||||
|
||||
#include "SkDashPathEffect.h"
|
||||
#include "SkWriteBuffer.h"
|
||||
#include "SkStrokeRec.h"
|
||||
|
||||
// crbug.com/348821 was rooted in SkDashPathEffect refusing to flatten and unflatten itself when
|
||||
// fInitialDashLength < 0 (a signal the effect is nonsense). Here we test that it flattens.
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include "SkBitmap.h"
|
||||
#include "SkCanvas.h"
|
||||
#include "SkDashPathEffect.h"
|
||||
#include "SkStrokeRec.h"
|
||||
#include "SkSurface.h"
|
||||
#include "Test.h"
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
#include "SkReader32.h"
|
||||
#include "SkSize.h"
|
||||
#include "SkStream.h"
|
||||
#include "SkStrokeRec.h"
|
||||
#include "SkSurface.h"
|
||||
#include "SkTypes.h"
|
||||
#include "SkWriter32.h"
|
||||
|
Loading…
Reference in New Issue
Block a user