diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 18:28:36 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 18:28:36 -0800 |
commit | 6eb364108744656fcd23a96a478aa772cd4e85bc (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /include/effects/SkDashPathEffect.h | |
parent | a23c4e24d873b11674987f97f1946e1c4d97e782 (diff) | |
download | external_skia-6eb364108744656fcd23a96a478aa772cd4e85bc.zip external_skia-6eb364108744656fcd23a96a478aa772cd4e85bc.tar.gz external_skia-6eb364108744656fcd23a96a478aa772cd4e85bc.tar.bz2 |
auto import from //depot/cupcake/@135843
Diffstat (limited to 'include/effects/SkDashPathEffect.h')
-rw-r--r-- | include/effects/SkDashPathEffect.h | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/include/effects/SkDashPathEffect.h b/include/effects/SkDashPathEffect.h deleted file mode 100644 index cc414e3..0000000 --- a/include/effects/SkDashPathEffect.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2006 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef SkDashPathEffect_DEFINED -#define SkDashPathEffect_DEFINED - -#include "SkPathEffect.h" - -/** \class SkDashPathEffect - - SkDashPathEffect is a subclass of SkPathEffect that implements dashing -*/ -class SkDashPathEffect : public SkPathEffect { -public: - /** The intervals array must contain an even number of entries (>=2), with the even - indices specifying the "on" intervals, and the odd indices specifying the "off" - intervals. phase is an offset into the intervals array (mod the sum of all of the - intervals). - Note: only affects framed paths - */ - SkDashPathEffect(const SkScalar intervals[], int count, SkScalar phase, bool scaleToFit = false); - virtual ~SkDashPathEffect(); - - // overrides for SkPathEffect - // This method is not exported to java. - virtual bool filterPath(SkPath* dst, const SkPath& src, SkScalar* width); - - // overrides for SkFlattenable - // This method is not exported to java. - virtual Factory getFactory(); - // This method is not exported to java. - virtual void flatten(SkFlattenableWriteBuffer&); - -protected: - SkDashPathEffect(SkFlattenableReadBuffer&); - -private: - SkScalar* fIntervals; - int32_t fCount; - // computed from phase - SkScalar fInitialDashLength; - int32_t fInitialDashIndex; - SkScalar fIntervalLength; - bool fScaleToFit; - - static SkFlattenable* CreateProc(SkFlattenableReadBuffer&); - - typedef SkPathEffect INHERITED; -}; - -#endif - |