| 1 |
// Copyright 2019 Google LLC. |
| 2 |
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. |
| 3 |
#include "tools/fiddle/examples.h" |
| 4 |
REG_FIDDLE(Canvas_SaveLayerRec_const_SkRect_star_const_SkPaint_star, 256, 256, true, 0) { |
| 5 |
void draw(SkCanvas* canvas) { |
| 6 |
SkCanvas::SaveLayerRec rec1; |
| 7 |
SkCanvas::SaveLayerRec rec2(nullptr, nullptr); |
| 8 |
SkDebugf("rec1 %c= rec2\n", rec1.fBounds == rec2.fBounds |
| 9 |
&& rec1.fPaint == rec2.fPaint |
| 10 |
&& rec1.fBackdrop == rec2.fBackdrop |
| 11 |
&& rec1.fSaveLayerFlags == rec2.fSaveLayerFlags ? '=' : '!'); |
| 12 |
} |
| 13 |
} // END FIDDLE |