26 int layerHeight = 100;
31 canvas->
clear(0x00000000);
61 for (
int i=0;
i<10;
i++) {
73 for (
int i=10;
i<12;
i++) {
78 auto innerColor = pixmap.
getColor(50, 50);
80 auto outerColor = pixmap.
getColor(10, 50);
DEF_TEST(DebugLayerManagerTest, reporter)
static void test_basic(skiatest::Reporter *reporter)
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorGREEN
#define REPORTER_ASSERT(r, cond,...)
void storeSkPicture(int nodeId, int frame, const sk_sp< SkPicture > &picture, SkIRect dirty)
std::vector< int > listFramesForNode(int nodeId) const
sk_sp< SkImage > getLayerAsImage(const int nodeId, const int frame)
void drawOval(const SkRect &oval, const SkPaint &paint)
void clear(SkColor color)
bool peekPixels(SkPixmap *pixmap) const
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkPicture > finishRecordingAsPicture()
SkColor getColor(int x, int y) const
sk_sp< const SkImage > image
static constexpr SkIRect MakeLTRB(int32_t l, int32_t t, int32_t r, int32_t b)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)