Flutter Engine
The Flutter Engine
embedder_render_target_skia.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_SHELL_PLATFORM_EMBEDDER_EMBEDDER_RENDER_TARGET_SKIA_H_
6#define FLUTTER_SHELL_PLATFORM_EMBEDDER_EMBEDDER_RENDER_TARGET_SKIA_H_
7
8#include "flutter/shell/platform/embedder/embedder_render_target.h"
9
10namespace flutter {
11
13 public:
15 sk_sp<SkSurface> render_surface,
16 fml::closure on_release);
17
18 // |EmbedderRenderTarget|
20
21 // |EmbedderRenderTarget|
22 sk_sp<SkSurface> GetSkiaSurface() const override;
23
24 // |EmbedderRenderTarget|
26
27 // |EmbedderRenderTarget|
28 std::shared_ptr<impeller::AiksContext> GetAiksContext() const override;
29
30 // |EmbedderRenderTarget|
31 SkISize GetRenderTargetSize() const override;
32
33 private:
34 sk_sp<SkSurface> render_surface_;
35
36 FML_DISALLOW_COPY_AND_ASSIGN(EmbedderRenderTargetSkia);
37};
38
39} // namespace flutter
40
41#endif // FLUTTER_SHELL_PLATFORM_EMBEDDER_EMBEDDER_RENDER_TARGET_SKIA_H_
impeller::RenderTarget * GetImpellerRenderTarget() const override
An impeller render target the rasterizer can use to draw into the backing store.
std::shared_ptr< impeller::AiksContext > GetAiksContext() const override
Returns the AiksContext that should be used for rendering, if this render target is backed by Impelle...
EmbedderRenderTargetSkia(FlutterBackingStore backing_store, sk_sp< SkSurface > render_surface, fml::closure on_release)
sk_sp< SkSurface > GetSkiaSurface() const override
A render surface the rasterizer can use to draw into the backing store of this render target.
SkISize GetRenderTargetSize() const override
Returns the size of the render target.
Describes a surface whose backing store is managed by the embedder. The type of surface depends on th...
std::function< void()> closure
Definition: closure.h:14
Definition: SkSize.h:16