Flutter Engine
Loading...
Searching...
No Matches
embedder_test_backingstore_producer_software.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_SOFTWARE_H_
6
#define FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_BACKINGSTORE_PRODUCER_SOFTWARE_H_
7
8
#include "
flutter/shell/platform/embedder/tests/embedder_test_backingstore_producer.h
"
9
10
namespace
flutter::testing
{
11
12
class
EmbedderTestBackingStoreProducerSoftware
13
:
public
EmbedderTestBackingStoreProducer
{
14
public
:
15
EmbedderTestBackingStoreProducerSoftware
(
16
sk_sp<GrDirectContext> context,
17
RenderTargetType
type
,
18
FlutterSoftwarePixelFormat
software_pixfmt =
19
kFlutterSoftwarePixelFormatNative32
);
20
21
virtual
~EmbedderTestBackingStoreProducerSoftware
();
22
23
bool
Create
(
const
FlutterBackingStoreConfig
* config,
24
FlutterBackingStore
* backing_store_out)
override
;
25
26
sk_sp<SkSurface>
GetSurface
(
27
const
FlutterBackingStore
* backing_store)
const override
;
28
29
sk_sp<SkImage>
MakeImageSnapshot
(
30
const
FlutterBackingStore
* backing_store)
const override
;
31
32
private
:
33
bool
CreateSoftware(
const
FlutterBackingStoreConfig
* config,
34
FlutterBackingStore
* backing_store_out);
35
36
bool
CreateSoftware2(
const
FlutterBackingStoreConfig
* config,
37
FlutterBackingStore
* backing_store_out);
38
39
FlutterSoftwarePixelFormat
software_pixfmt_;
40
41
FML_DISALLOW_COPY_AND_ASSIGN
(
EmbedderTestBackingStoreProducerSoftware
);
42
};
43
44
}
// namespace flutter::testing
45
46
#endif
// FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_BACKINGSTORE_PRODUCER_SOFTWARE_H_
type
GLenum type
Definition
blit_command_gles.cc:153
flutter::testing::EmbedderTestBackingStoreProducer
Definition
embedder_test_backingstore_producer.h:18
flutter::testing::EmbedderTestBackingStoreProducer::RenderTargetType
RenderTargetType
Definition
embedder_test_backingstore_producer.h:20
flutter::testing::EmbedderTestBackingStoreProducerSoftware
Definition
embedder_test_backingstore_producer_software.h:13
flutter::testing::EmbedderTestBackingStoreProducerSoftware::~EmbedderTestBackingStoreProducerSoftware
virtual ~EmbedderTestBackingStoreProducerSoftware()
flutter::testing::EmbedderTestBackingStoreProducerSoftware::Create
bool Create(const FlutterBackingStoreConfig *config, FlutterBackingStore *backing_store_out) override
Definition
embedder_test_backingstore_producer_software.cc:42
flutter::testing::EmbedderTestBackingStoreProducerSoftware::GetSurface
sk_sp< SkSurface > GetSurface(const FlutterBackingStore *backing_store) const override
Definition
embedder_test_backingstore_producer_software.cc:55
flutter::testing::EmbedderTestBackingStoreProducerSoftware::MakeImageSnapshot
sk_sp< SkImage > MakeImageSnapshot(const FlutterBackingStore *backing_store) const override
Definition
embedder_test_backingstore_producer_software.cc:61
FlutterSoftwarePixelFormat
FlutterSoftwarePixelFormat
Definition
embedder.h:450
kFlutterSoftwarePixelFormatNative32
@ kFlutterSoftwarePixelFormatNative32
Definition
embedder.h:506
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
shell
platform
embedder
tests
embedder_test_backingstore_producer_software.h
Generated on Thu Nov 6 2025 16:11:27 for Flutter Engine by
1.9.8