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/SkMatrix.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPathBuilder.h"
#include "include/core/SkRect.h"
#include "include/core/SkScalar.h"
#include "include/core/SkSize.h"
#include "include/core/SkString.h"
#include "src/core/SkCanvasPriv.h"
#include "tools/ToolUtils.h"
Go to the source code of this file.
Classes | |
class | ClipCubicGM |
Functions | |
static void | draw (SkCanvas *canvas, SkRect &target, int x, int y) |
static void | draw_square (SkCanvas *canvas, int x, int y) |
static void | draw_column (SkCanvas *canvas, int x, int y) |
static void | draw_bar (SkCanvas *canvas, int x, int y) |
static void | draw_rect_tests (SkCanvas *canvas) |
DEF_SIMPLE_GM (aaclip, canvas, 240, 120) | |
DEF_SIMPLE_GM | ( | aaclip | , |
canvas | , | ||
240 | , | ||
120 | |||
) |
Test a set of clipping problems discovered while writing blitAntiRect, and test all the code paths through the clipping blitters. Each region should show as a blue center surrounded by a 2px green border, with no red.
Definition at line 77 of file aaclip.cpp.
Draw a 2px border around the target, then red behind the target; set the clip to match the target, then draw >> the target in blue.
Definition at line 27 of file aaclip.cpp.
Definition at line 60 of file aaclip.cpp.
Definition at line 55 of file aaclip.cpp.
|
static |
Definition at line 65 of file aaclip.cpp.
Definition at line 50 of file aaclip.cpp.