Flutter Engine
The Flutter Engine
|
#include "include/core/SkBitmap.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPoint.h"
#include "include/core/SkRect.h"
#include "include/core/SkScalar.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkDebug.h"
#include "src/core/SkEdgeClipper.h"
#include "src/core/SkLineClipper.h"
#include "tests/Test.h"
#include <array>
#include <cstring>
Go to the source code of this file.
Functions | |
static void | test_hairclipping (skiatest::Reporter *reporter) |
static void | test_edgeclipper () |
static void | test_intersectline (skiatest::Reporter *reporter) |
DEF_TEST (Clipper, reporter) | |
DEF_TEST (LineClipper_skbug_7981, r) | |
DEF_TEST | ( | Clipper | , |
reporter | |||
) |
Definition at line 159 of file ClipperTest.cpp.
DEF_TEST | ( | LineClipper_skbug_7981 | , |
r | |||
) |
Definition at line 165 of file ClipperTest.cpp.
|
static |
Definition at line 60 of file ClipperTest.cpp.
|
static |
We had a bug where we misinterpreted the bottom of the clip, and would draw another pixel (to the right in this case) on the same last scanline. i.e. we would draw to [2,1], even though this hairline should just draw to [1,1], [2,2], [3,3] modulo the clip.
The result of this entire draw should be that we only draw to [1,1]
Fixed in rev. 3366
Definition at line 24 of file ClipperTest.cpp.
|
static |
Definition at line 78 of file ClipperTest.cpp.