5#include "flutter/flow/testing/mock_embedder.h"
15 contexts_.emplace_back(canvas);
33 double device_pixel_ratio) {}
38 std::unique_ptr<EmbeddedViewParams>
params) {
39 prerolled_views_.emplace_back(view_id);
44 painted_views_.emplace_back(view_id);
45 DlCanvas* canvas = contexts_.front();
46 contexts_.pop_front();
Developer-facing API for rendering anything within the engine.
void PrepareFlutterView(SkISize frame_size, double device_pixel_ratio) override
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
const EmbeddedViewParams * params