Flutter Engine
The Flutter Engine
|
#include "gm/gm.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkBlendMode.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkFont.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkPaint.h"
#include "include/core/SkRect.h"
#include "include/core/SkScalar.h"
#include "include/core/SkShader.h"
#include "include/core/SkSize.h"
#include "include/core/SkString.h"
#include "include/core/SkTileMode.h"
#include "include/core/SkTypeface.h"
#include "include/core/SkTypes.h"
#include "include/utils/SkTextUtils.h"
#include "tools/ToolUtils.h"
#include "tools/fonts/FontToolUtils.h"
Go to the source code of this file.
Classes | |
class | XfermodesGM |
Enumerations | |
enum | SrcType { kRectangleImage_SrcType = 0x01 , kRectangleImageWithAlpha_SrcType = 0x02 , kSmallRectangleImageWithAlpha_SrcType = 0x04 , kRectangle_SrcType = 0x08 , kQuarterClear_SrcType = 0x10 , kQuarterClearInLayer_SrcType = 0x20 , kSmallTransparentImage_SrcType = 0x40 , kRectangleWithMask_SrcType = 0x80 , kAll_SrcType = 0xFF , kBasic_SrcType = 0x03 } |
Functions | |
static void | make_bitmaps (int w, int h, SkBitmap *src, SkBitmap *dst, SkBitmap *transparent) |
Variables | |
struct { | |
SkBlendMode fMode | |
int fSourceTypeMask | |
} | gModes [] |
static uint16_t | gData [] = { 0xFFFF, 0xCCCF, 0xCCCF, 0xFFFF } |
enum SrcType |
Enumerator | |
---|---|
kRectangleImage_SrcType | A WxH image with a rectangle in the lower right. |
kRectangleImageWithAlpha_SrcType | kRectangleImage_SrcType with an alpha of 34.5%. |
kSmallRectangleImageWithAlpha_SrcType | kRectnagleImageWithAlpha_SrcType scaled down by half. |
kRectangle_SrcType | kRectangleImage_SrcType drawn directly instead in an image. |
kQuarterClear_SrcType | Two rectangles, first on the right half, second on the bottom half. |
kQuarterClearInLayer_SrcType | kQuarterClear_SrcType in a layer. |
kSmallTransparentImage_SrcType | A W/2xH/2 transparent image. |
kRectangleWithMask_SrcType | kRectangleImage_SrcType drawn directly with a mask. |
kAll_SrcType | All the source types. |
kBasic_SrcType | Just basic source types. |
Definition at line 29 of file xfermodes.cpp.
|
static |
Definition at line 92 of file xfermodes.cpp.
SkBlendMode fMode |
Definition at line 52 of file xfermodes.cpp.
int fSourceTypeMask |
Definition at line 53 of file xfermodes.cpp.
|
static |
Definition at line 125 of file xfermodes.cpp.
const struct { ... } gModes[] |