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 virtual void Resize(int width, int height) = 0;
24 virtual void SetResourceCacheLimit(int bytes) = 0;
25};
26} // namespace Skwasm
27
28#endif // FLUTTER_SKWASM_RENDER_CONTEXT_H_
virtual void RenderImage(flutter::DlImage *image, ImageByteFormat format)=0
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
Represents an image whose allocation is (usually) resident on device memory.
Definition dl_image.h:32
FlutterVulkanImage * image
ImageByteFormat
Definition helpers.h:75
int32_t height
int32_t width