5#ifndef FLUTTER_IMPELLER_RENDERER_RENDERER_H_
6#define FLUTTER_IMPELLER_RENDERER_RENDERER_H_
11#include "flutter/fml/synchronization/semaphore.h"
25 explicit Renderer(std::shared_ptr<Context> context,
38 std::shared_ptr<fml::Semaphore> frames_in_flight_sema_;
39 std::shared_ptr<Context> context_;
40 bool is_valid_ =
false;
Renderer(std::shared_ptr< Context > context, size_t max_frames_in_flight=kDefaultMaxFramesInFlight)
bool Render(std::unique_ptr< Surface > surface, const RenderCallback &callback) const
static constexpr size_t kDefaultMaxFramesInFlight
std::shared_ptr< Context > GetContext() const
std::function< bool(RenderTarget &render_target)> RenderCallback
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
Dart_NativeFunction function