5#ifndef FLUTTER_FLOW_TESTING_MOCK_EMBEDDER_H_
6#define FLUTTER_FLOW_TESTING_MOCK_EMBEDDER_H_
8#include "flutter/flow/embedded_views.h"
30 raster_thread_merger)
override;
34 double device_pixel_ratio)
override;
39 std::unique_ptr<EmbeddedViewParams>
params)
override;
48 std::deque<DlCanvas*> contexts_;
49 std::vector<int64_t> prerolled_views_;
50 std::vector<int64_t> painted_views_;
Developer-facing API for rendering anything within the engine.
void PrepareFlutterView(SkISize frame_size, double device_pixel_ratio) override
std::vector< int64_t > prerolled_views() const
void BeginFrame(GrDirectContext *context, const fml::RefPtr< fml::RasterThreadMerger > &raster_thread_merger) override
void PrerollCompositeEmbeddedView(int64_t view_id, std::unique_ptr< EmbeddedViewParams > params) override
void AddCanvas(DlCanvas *canvas)
DlCanvas * CompositeEmbeddedView(int64_t view_id) override
DlCanvas * GetRootCanvas() override
void CancelFrame() override
std::vector< int64_t > painted_views() const
const EmbeddedViewParams * params