Flutter Engine
The Flutter Engine
|
#include "gm/gm.h"
#include "include/core/SkBlendMode.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorFilter.h"
#include "include/core/SkImage.h"
#include "include/core/SkImageFilter.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkMaskFilter.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkPaint.h"
#include "include/core/SkRRect.h"
#include "include/core/SkRect.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/core/SkSurface.h"
#include "include/core/SkTypes.h"
#include "include/effects/SkColorMatrix.h"
#include "include/effects/SkGradientShader.h"
#include "include/effects/SkHighContrastFilter.h"
#include "include/effects/SkImageFilters.h"
#include "include/effects/SkShaderMaskFilter.h"
#include "include/gpu/GrDirectContext.h"
#include "include/gpu/ganesh/SkImageGanesh.h"
#include "src/core/SkCanvasPriv.h"
#include "tools/DecodeUtils.h"
#include "tools/Resources.h"
#include "tools/ToolUtils.h"
#include <utility>
Go to the source code of this file.
Classes | |
class | SaveLayerWithBackdropGM |
Functions | |
static void | do_draw (SkCanvas *canvas, SkBlendMode mode, sk_sp< SkImageFilter > imf) |
DEF_SIMPLE_GM (imagefilters_xfermodes, canvas, 480, 480) | |
static sk_sp< SkImage > | make_image (SkCanvas *canvas) |
DEF_SIMPLE_GM (fast_slow_blurimagefilter, canvas, 620, 260) | |
static void | draw_set (SkCanvas *canvas, sk_sp< SkImageFilter > filters[], int count) |
DEF_SIMPLE_GM (imagefilters_effect_order, canvas, 512, 512) | |
DEF_SIMPLE_GM (multiple_filters, canvas, 415, 210) | |
DEF_SIMPLE_GM | ( | fast_slow_blurimagefilter | , |
canvas | , | ||
620 | , | ||
260 | |||
) |
Definition at line 105 of file imagefilters.cpp.
DEF_SIMPLE_GM | ( | imagefilters_effect_order | , |
canvas | , | ||
512 | , | ||
512 | |||
) |
Definition at line 204 of file imagefilters.cpp.
DEF_SIMPLE_GM | ( | imagefilters_xfermodes | , |
canvas | , | ||
480 | , | ||
480 | |||
) |
Definition at line 71 of file imagefilters.cpp.
DEF_SIMPLE_GM | ( | multiple_filters | , |
canvas | , | ||
415 | , | ||
210 | |||
) |
Definition at line 287 of file imagefilters.cpp.
|
static |
Test drawing a primitive w/ an imagefilter (in this case, just matrix w/ identity) to see that we apply the xfermode after the image has been created and filtered, and not during the creation step (i.e. before it is filtered).
Definition at line 46 of file imagefilters.cpp.
|
static |
Definition at line 131 of file imagefilters.cpp.
Definition at line 94 of file imagefilters.cpp.