Flutter Engine
The Flutter Engine
|
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkImage.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPixmap.h"
#include "include/core/SkShader.h"
#include "include/core/SkSurface.h"
#include "include/core/SkTileMode.h"
Go to the source code of this file.
Functions | |
DEF_SIMPLE_GM_CAN_FAIL (mirror_tile, canvas, errorMsg, 140, 370) | |
DEF_SIMPLE_GM_CAN_FAIL | ( | mirror_tile | , |
canvas | , | ||
errorMsg | , | ||
140 | , | ||
370 | |||
) |
Tests image shader mirror tile mode with scale factors of 1 and -1, with nearest and linear filtering, and with/without a half pixel offset between device and image space. The linear filter should only have an effect when there is a half pixel offset. We test mirror tile mode in x and in y separately.
Definition at line 23 of file mirrortile.cpp.