Forward declare SkStrokeRec in SkPathEffect

Review URL: https://codereview.chromium.org/1312163008
This commit is contained in:
halcanary 2015-09-15 12:53:07 -07:00 committed by Commit bot
parent 98ed7b6d01
commit 435657fd62
14 changed files with 14 additions and 1 deletions

View File

@ -13,6 +13,7 @@
#include "SkPath.h"
#include "SkRandom.h"
#include "SkString.h"
#include "SkStrokeRec.h"
#include "SkTDArray.h"

View File

@ -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

View File

@ -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) {

View File

@ -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"

View File

@ -32,6 +32,7 @@
#include "SkTextToPathIter.h"
#include "SkTLazy.h"
#include "SkTypeface.h"
#include "SkStrokeRec.h"
#include "SkSurfacePriv.h"
#include "SkXfermode.h"

View File

@ -21,6 +21,7 @@
#include "SkRasterizer.h"
#include "SkRasterClip.h"
#include "SkStroke.h"
#include "SkStrokeRec.h"
#define ComputeBWRowBytes(width) (((unsigned)(width) + 7) >> 3)

View File

@ -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 {

View File

@ -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);

View File

@ -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)

View File

@ -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;

View File

@ -7,6 +7,7 @@
#include "SkDashPathPriv.h"
#include "SkPathMeasure.h"
#include "SkStrokeRec.h"
static inline int is_even(int x) {
return (~x) << 31;

View File

@ -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.

View File

@ -8,6 +8,7 @@
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkDashPathEffect.h"
#include "SkStrokeRec.h"
#include "SkSurface.h"
#include "Test.h"

View File

@ -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"