843 {
845
848
849 static const SkIRect gRects[] = {
850 { 0, 0, 100, 100 },
851 { 25, 25, 125, 125 },
852 { 0, 0, 1000, 1000 },
853 { 0, 0, 75, 75 }
854 };
857 }
858
859
863 answer.
setLTRB(25, 25, 75, 75);
864
870
872
876
890}
static void assert_count(skiatest::Reporter *reporter, const SkClipStack &stack, int count)
static void test_rect_merging(skiatest::Reporter *reporter)
static void test_rect_inverse_fill(skiatest::Reporter *reporter)
static void test_bounds(skiatest::Reporter *reporter, SkClipStack::Element::DeviceSpaceType primType)
static void test_is_rrect_deep_rect_stack(skiatest::Reporter *reporter)
static void test_assign_and_comparison(skiatest::Reporter *reporter)
static void test_rect_replace(skiatest::Reporter *reporter)
static void test_isWideOpen(skiatest::Reporter *reporter)
static void test_iterators(skiatest::Reporter *reporter)
static void test_path_replace(skiatest::Reporter *reporter)
static void test_invfill_diff_bug(skiatest::Reporter *reporter)
static void test_quickContains(skiatest::Reporter *reporter)
@ kPath
This element does not have geometry, but applies a shader to the clip.
@ kRect
This element combines a device space round-rect with the current clip.
@ kRRect
This element combines a device space path with the current clip.
const SkRect & getDeviceSpaceRect() const
Call if getDeviceSpaceType() is kShader to get a reference to the clip shader.
DeviceSpaceType getDeviceSpaceType() const
Call to get the save count associated with this clip element.
void clipDevRect(const SkIRect &ir, SkClipOp op)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
void setLTRB(float left, float top, float right, float bottom)