Flutter Engine
Loading...
Searching...
No Matches
embedder_test_backingstore_producer_gl.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_TESTS_EMBEDDER_TEST_BACKINGSTORE_PRODUCER_GL_H_
6
#define FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_BACKINGSTORE_PRODUCER_GL_H_
7
8
#include "
flutter/shell/platform/embedder/tests/embedder_test_backingstore_producer.h
"
9
10
#include <memory>
11
12
#include "
flutter/testing/test_gl_context.h
"
13
14
namespace
flutter::testing
{
15
16
class
EmbedderTestBackingStoreProducerGL
17
:
public
EmbedderTestBackingStoreProducer
{
18
public
:
19
EmbedderTestBackingStoreProducerGL
(
20
sk_sp<GrDirectContext> context,
21
RenderTargetType
type
,
22
std::shared_ptr<TestEGLContext> egl_context);
23
24
virtual
~EmbedderTestBackingStoreProducerGL
();
25
26
bool
Create
(
const
FlutterBackingStoreConfig
* config,
27
FlutterBackingStore
* backing_store_out)
override
;
28
29
sk_sp<SkSurface>
GetSurface
(
30
const
FlutterBackingStore
* backing_store)
const override
;
31
32
sk_sp<SkImage>
MakeImageSnapshot
(
33
const
FlutterBackingStore
* backing_store)
const override
;
34
35
private
:
36
bool
CreateFramebuffer(
const
FlutterBackingStoreConfig
* config,
37
FlutterBackingStore
* renderer_out);
38
39
bool
CreateTexture(
const
FlutterBackingStoreConfig
* config,
40
FlutterBackingStore
* renderer_out);
41
42
bool
CreateSurface(
const
FlutterBackingStoreConfig
* config,
43
FlutterBackingStore
* renderer_out);
44
45
std::shared_ptr<TestEGLContext> test_egl_context_;
46
47
FML_DISALLOW_COPY_AND_ASSIGN
(
EmbedderTestBackingStoreProducerGL
);
48
};
49
50
}
// namespace flutter::testing
51
52
#endif
// FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_BACKINGSTORE_PRODUCER_GL_H_
type
GLenum type
Definition
blit_command_gles.cc:153
flutter::testing::EmbedderTestBackingStoreProducerGL
Definition
embedder_test_backingstore_producer_gl.h:17
flutter::testing::EmbedderTestBackingStoreProducerGL::~EmbedderTestBackingStoreProducerGL
virtual ~EmbedderTestBackingStoreProducerGL()
flutter::testing::EmbedderTestBackingStoreProducerGL::Create
bool Create(const FlutterBackingStoreConfig *config, FlutterBackingStore *backing_store_out) override
Definition
embedder_test_backingstore_producer_gl.cc:34
flutter::testing::EmbedderTestBackingStoreProducerGL::MakeImageSnapshot
sk_sp< SkImage > MakeImageSnapshot(const FlutterBackingStore *backing_store) const override
Definition
embedder_test_backingstore_producer_gl.cc:55
flutter::testing::EmbedderTestBackingStoreProducerGL::GetSurface
sk_sp< SkSurface > GetSurface(const FlutterBackingStore *backing_store) const override
Definition
embedder_test_backingstore_producer_gl.cc:49
flutter::testing::EmbedderTestBackingStoreProducer
Definition
embedder_test_backingstore_producer.h:18
flutter::testing::EmbedderTestBackingStoreProducer::RenderTargetType
RenderTargetType
Definition
embedder_test_backingstore_producer.h:20
embedder_test_backingstore_producer.h
FML_DISALLOW_COPY_AND_ASSIGN
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition
macros.h:27
flutter::testing
Definition
native_assets_unittests.cc:10
FlutterBackingStoreConfig
Definition
embedder.h:2089
FlutterBackingStore
Definition
embedder.h:2063
test_gl_context.h
shell
platform
embedder
tests
embedder_test_backingstore_producer_gl.h
Generated on Thu Nov 6 2025 16:11:27 for Flutter Engine by
1.9.8