5#define FML_USED_ON_EMBEDDER
7#include "flutter/flow/surface_frame.h"
8#include "flutter/testing/testing.h"
12TEST(FlowTest, SurfaceFrameDoesNotSubmitInDtor) {
18 auto surface_frame = std::make_unique<SurfaceFrame>(
23 surface_frame.reset();
26TEST(FlowTest, SurfaceFrameDoesNotHaveEmptyCanvas) {
37 EXPECT_FALSE(
frame.Canvas()->GetLocalClipBounds().isEmpty());
41TEST(FlowTest, SurfaceFrameDoesNotPrepareRtree) {
44 auto surface_frame = std::make_unique<SurfaceFrame>(
52 EXPECT_FALSE(surface_frame->BuildDisplayList()->has_rtree());
Developer-facing API for rendering anything within the engine.
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
TEST(FrameTimingsRecorderTest, RecordVsync)
static constexpr SkISize Make(int32_t w, int32_t h)
static constexpr SkRect MakeWH(float w, float h)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)