Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
render_context.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_SKWASM_RENDER_CONTEXT_H_
6#define FLUTTER_SKWASM_RENDER_CONTEXT_H_
7
8#include <memory>
9
13
14namespace Skwasm {
16 public:
17 static std::unique_ptr<RenderContext> Make(int sample_count, int stencil);
18
19 virtual ~RenderContext() = default;
20 virtual void RenderPicture(
21 const sk_sp<flutter::DisplayList> display_list) = 0;
23 ImageByteFormat format,
24 void* out_pixels) = 0;
25 virtual void Resize(int width, int height) = 0;
26 virtual void SetResourceCacheLimit(int bytes) = 0;
27};
28} // namespace Skwasm
29
30#endif // FLUTTER_SKWASM_RENDER_CONTEXT_H_
virtual void RenderPicture(const sk_sp< flutter::DisplayList > display_list)=0
static std::unique_ptr< RenderContext > Make(int sample_count, int stencil)
virtual void Resize(int width, int height)=0
virtual void SetResourceCacheLimit(int bytes)=0
virtual ~RenderContext()=default
virtual bool RasterizeImage(flutter::DlImage *image, ImageByteFormat format, void *out_pixels)=0
Represents an image whose allocation is (usually) resident on device memory.
Definition dl_image.h:34
FlutterVulkanImage * image
ImageByteFormat
Definition helpers.h:75
int32_t height
int32_t width