Flutter Engine
The Flutter Engine
|
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorPriv.h"
#include "include/core/SkImage.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPath.h"
#include "include/core/SkRect.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/core/SkString.h"
#include "include/core/SkSurface.h"
#include "include/core/SkTypes.h"
#include "include/gpu/GrDirectContext.h"
#include "include/utils/SkParsePath.h"
#include "src/core/SkAutoPixmapStorage.h"
Go to the source code of this file.
Functions | |
static void | draw_path_cell (SkCanvas *canvas, SkSurface *surface, int expectedCaps) |
static skiagm::DrawResult | draw_zero_length_capped_paths (SkCanvas *canvas, bool aa, SkString *errorMsg) |
DEF_SIMPLE_GM_BG_CAN_FAIL (zero_length_paths_aa, canvas, errorMsg, kTotalWidth, kTotalHeight, SK_ColorBLACK) | |
DEF_SIMPLE_GM_BG_CAN_FAIL (zero_length_paths_bw, canvas, errorMsg, kTotalWidth, kTotalHeight, SK_ColorBLACK) | |
static skiagm::DrawResult | draw_zero_length_capped_paths_dbl_contour (SkCanvas *canvas, bool aa, SkString *errorMsg) |
DEF_SIMPLE_GM_BG_CAN_FAIL (zero_length_paths_dbl_aa, canvas, errorMsg, kDblContourTotalWidth, kTotalHeight, SK_ColorBLACK) | |
DEF_SIMPLE_GM_BG_CAN_FAIL (zero_length_paths_dbl_bw, canvas, errorMsg, kDblContourTotalWidth, kTotalHeight, SK_ColorBLACK) | |
Variables | |
static const SkPaint::Cap | kCaps [] |
static const SkScalar | kWidths [] = { 0.0f, 0.9f, 1.0f, 1.1f, 15.0f, 25.0f } |
static const char * | kAllVerbs [] |
static const char * | kSomeVerbs [] |
static const int | kCellWidth = 50 |
static const int | kCellHeight = 20 |
static const int | kCellPad = 2 |
static const int | kNumRows = std::size(kCaps) * std::size(kWidths) |
static const int | kNumColumns = std::size(kAllVerbs) |
static const int | kTotalWidth = kNumColumns * (kCellWidth + kCellPad) + kCellPad |
static const int | kTotalHeight = kNumRows * (kCellHeight + kCellPad) + kCellPad |
static const int | kDblContourNumColums = std::size(kSomeVerbs) * std::size(kSomeVerbs) |
static const int | kDblContourTotalWidth = kDblContourNumColums * (kCellWidth + kCellPad) + kCellPad |
DEF_SIMPLE_GM_BG_CAN_FAIL | ( | zero_length_paths_aa | , |
canvas | , | ||
errorMsg | , | ||
kTotalWidth | , | ||
kTotalHeight | , | ||
SK_ColorBLACK | |||
) |
Definition at line 180 of file path_stroke_with_zero_length.cpp.
DEF_SIMPLE_GM_BG_CAN_FAIL | ( | zero_length_paths_bw | , |
canvas | , | ||
errorMsg | , | ||
kTotalWidth | , | ||
kTotalHeight | , | ||
SK_ColorBLACK | |||
) |
Definition at line 185 of file path_stroke_with_zero_length.cpp.
DEF_SIMPLE_GM_BG_CAN_FAIL | ( | zero_length_paths_dbl_aa | , |
canvas | , | ||
errorMsg | , | ||
kDblContourTotalWidth | , | ||
kTotalHeight | , | ||
SK_ColorBLACK | |||
) |
Definition at line 256 of file path_stroke_with_zero_length.cpp.
DEF_SIMPLE_GM_BG_CAN_FAIL | ( | zero_length_paths_dbl_bw | , |
canvas | , | ||
errorMsg | , | ||
kDblContourTotalWidth | , | ||
kTotalHeight | , | ||
SK_ColorBLACK | |||
) |
Definition at line 261 of file path_stroke_with_zero_length.cpp.
Definition at line 38 of file path_stroke_with_zero_length.cpp.
|
static |
Definition at line 131 of file path_stroke_with_zero_length.cpp.
|
static |
Definition at line 190 of file path_stroke_with_zero_length.cpp.
|
static |
Definition at line 96 of file path_stroke_with_zero_length.cpp.
|
static |
Definition at line 87 of file path_stroke_with_zero_length.cpp.
|
static |
Definition at line 120 of file path_stroke_with_zero_length.cpp.
|
static |
Definition at line 121 of file path_stroke_with_zero_length.cpp.
|
static |
Definition at line 119 of file path_stroke_with_zero_length.cpp.
|
static |
Definition at line 128 of file path_stroke_with_zero_length.cpp.
|
static |
Definition at line 129 of file path_stroke_with_zero_length.cpp.
Definition at line 124 of file path_stroke_with_zero_length.cpp.
Definition at line 123 of file path_stroke_with_zero_length.cpp.
|
static |
Definition at line 110 of file path_stroke_with_zero_length.cpp.
|
static |
Definition at line 126 of file path_stroke_with_zero_length.cpp.
|
static |
Definition at line 125 of file path_stroke_with_zero_length.cpp.
|
static |
Definition at line 93 of file path_stroke_with_zero_length.cpp.