Flutter Engine
The Flutter Engine
|
#include "include/core/SkBitmap.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/SkPathEffect.h"
#include "include/core/SkPoint.h"
#include "include/core/SkRect.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/core/SkSurface.h"
#include "include/core/SkTextBlob.h"
#include "include/core/SkTypeface.h"
#include "include/core/SkTypes.h"
#include "include/effects/SkDashPathEffect.h"
#include "tests/Test.h"
#include "tools/fonts/FontToolUtils.h"
#include <array>
#include <cmath>
#include <cstring>
Go to the source code of this file.
Functions | |
static void | create (SkBitmap *bm, SkIRect bound) |
static bool | compare (const SkBitmap &ref, const SkIRect &iref, const SkBitmap &test, const SkIRect &itest) |
DEF_TEST (DrawText_dashout, reporter) | |
DEF_TEST (DrawText_weirdCoordinates, r) | |
DEF_TEST (DrawText_weirdMatricies, r) | |
DEF_TEST (DrawText_noglyphs, r) | |
Variables | |
static const SkColor | bgColor = SK_ColorWHITE |
|
static |
Assumes that the ref draw was completely inside ref canvas – implies that everything outside is "bgColor". Checks that all overlap is the same and that all non-overlap on the ref is "bgColor".
Definition at line 43 of file DrawTextTest.cpp.
Definition at line 34 of file DrawTextTest.cpp.
DEF_TEST | ( | DrawText_dashout | , |
reporter | |||
) |
Test that drawing glyphs with empty paths is different from drawing glyphs without paths.
Definition at line 71 of file DrawTextTest.cpp.
DEF_TEST | ( | DrawText_noglyphs | , |
r | |||
) |
Definition at line 173 of file DrawTextTest.cpp.
DEF_TEST | ( | DrawText_weirdCoordinates | , |
r | |||
) |
Definition at line 117 of file DrawTextTest.cpp.
DEF_TEST | ( | DrawText_weirdMatricies | , |
r | |||
) |
Definition at line 136 of file DrawTextTest.cpp.
|
static |
Definition at line 32 of file DrawTextTest.cpp.