5#include "flutter/shell/gpu/gpu_surface_software.h"
9#include "flutter/fml/logging.h"
16 bool render_to_surface)
18 render_to_surface_(render_to_surface),
19 weak_factory_(this) {}
25 return delegate_ !=
nullptr;
36 if (!render_to_surface_) {
37 return std::make_unique<SurfaceFrame>(
38 nullptr, framebuffer_info,
53 if (backing_store ==
nullptr) {
71 if (!
self || !
self->IsValid() || canvas ==
nullptr) {
77 return self->delegate_->PresentBackingStore(surface_frame.SkiaSurface());
80 return std::make_unique<SurfaceFrame>(backing_store, framebuffer_info,
81 on_submit, logical_size);
Developer-facing API for rendering anything within the engine.
Interface implemented by all platform surfaces that can present a software backing store to the "scre...
virtual sk_sp< SkSurface > AcquireBackingStore(const SkISize &size)=0
Called when the GPU surface needs a new buffer to render a new frame into.
SkMatrix GetRootTransformation() const override
~GPUSurfaceSoftware() override
GrDirectContext * GetContext() override
GPUSurfaceSoftware(GPUSurfaceSoftwareDelegate *delegate, bool render_to_surface)
std::unique_ptr< SurfaceFrame > AcquireFrame(const SkISize &size) override
std::function< bool(SurfaceFrame &surface_frame, DlCanvas *canvas)> SubmitCallback
unsigned useCenter Optional< SkMatrix > matrix
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
static constexpr SkISize Make(int32_t w, int32_t h)
constexpr int32_t width() const
constexpr int32_t height() const