gfx/skia/trunk/src/animator/SkDrawPaint.h

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1
michael@0 2 /*
michael@0 3 * Copyright 2006 The Android Open Source Project
michael@0 4 *
michael@0 5 * Use of this source code is governed by a BSD-style license that can be
michael@0 6 * found in the LICENSE file.
michael@0 7 */
michael@0 8
michael@0 9
michael@0 10 #ifndef SkDrawPaint_DEFINED
michael@0 11 #define SkDrawPaint_DEFINED
michael@0 12
michael@0 13 #include "SkDrawable.h"
michael@0 14 #include "SkIntArray.h"
michael@0 15 #include "SkMemberInfo.h"
michael@0 16 #include "SkPaint.h"
michael@0 17 #include "SkXfermode.h"
michael@0 18
michael@0 19 class SkDrawMaskFilter;
michael@0 20 class SkDrawPathEffect;
michael@0 21 class SkDrawShader;
michael@0 22 class SkTransferMode;
michael@0 23 class SkDrawTypeface;
michael@0 24
michael@0 25 class SkDrawPaint : public SkDrawable {
michael@0 26 DECLARE_DRAW_MEMBER_INFO(Paint);
michael@0 27 SkDrawPaint();
michael@0 28 virtual ~SkDrawPaint();
michael@0 29 virtual bool add(SkAnimateMaker* , SkDisplayable* child);
michael@0 30 virtual SkDisplayable* deepCopy(SkAnimateMaker* );
michael@0 31 virtual bool draw(SkAnimateMaker& );
michael@0 32 #ifdef SK_DUMP_ENABLED
michael@0 33 virtual void dump(SkAnimateMaker* );
michael@0 34 #endif
michael@0 35 virtual void executeFunction(SkDisplayable* target, int index,
michael@0 36 SkTDArray<SkScriptValue>& parameters, SkDisplayTypes type,
michael@0 37 SkScriptValue* );
michael@0 38 virtual const SkFunctionParamType* getFunctionsParameters();
michael@0 39 virtual bool getProperty(int index, SkScriptValue* value) const;
michael@0 40 virtual bool resolveIDs(SkAnimateMaker& maker, SkDisplayable* original, SkApply* apply);
michael@0 41 protected:
michael@0 42 static const SkFunctionParamType fFunctionParameters[];
michael@0 43 void setupPaint(SkPaint* paint) const;
michael@0 44 public:
michael@0 45 SkBool antiAlias;
michael@0 46 SkDrawColor* color;
michael@0 47 SkBool fakeBold;
michael@0 48 SkBool filterBitmap;
michael@0 49 SkBool linearText;
michael@0 50 SkDrawMaskFilter* maskFilter;
michael@0 51 SkDrawPathEffect* pathEffect;
michael@0 52 SkDrawShader* shader;
michael@0 53 SkBool strikeThru;
michael@0 54 SkBool stroke;
michael@0 55 int /*SkPaint::Cap*/ strokeCap;
michael@0 56 int /*SkPaint::Join */ strokeJoin;
michael@0 57 SkScalar strokeMiter;
michael@0 58 SkScalar strokeWidth;
michael@0 59 int /* SkPaint::Style */ style;
michael@0 60 int /* SkPaint::Align */ textAlign;
michael@0 61 SkScalar textScaleX;
michael@0 62 SkScalar textSize;
michael@0 63 SkScalar textSkewX;
michael@0 64 SkDrawTypeface* typeface;
michael@0 65 SkBool underline;
michael@0 66 int /*SkXfermode::Modes*/ xfermode;
michael@0 67 SkBool8 fOwnsColor;
michael@0 68 SkBool8 fOwnsMaskFilter;
michael@0 69 SkBool8 fOwnsPathEffect;
michael@0 70 SkBool8 fOwnsShader;
michael@0 71 SkBool8 fOwnsTransferMode;
michael@0 72 SkBool8 fOwnsTypeface;
michael@0 73 private:
michael@0 74 typedef SkDrawable INHERITED;
michael@0 75 friend class SkTextToPath;
michael@0 76 friend class SkSaveLayer;
michael@0 77 };
michael@0 78
michael@0 79 #endif // SkDrawPaint_DEFINED

mercurial