Flutter Engine
Loading...
Searching...
No Matches
embedder_test_context_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_CONTEXT_SOFTWARE_H_
6
#define FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_CONTEXT_SOFTWARE_H_
7
8
#include "
flutter/shell/platform/embedder/tests/embedder_test_context.h
"
9
10
#include "third_party/skia/include/core/SkSurface.h"
11
12
namespace
flutter
{
13
namespace
testing {
14
15
class
EmbedderTestContextSoftware
:
public
EmbedderTestContext
{
16
public
:
17
explicit
EmbedderTestContextSoftware
(std::string assets_path =
""
);
18
19
~EmbedderTestContextSoftware
()
override
;
20
21
// |EmbedderTestContext|
22
EmbedderTestContextType
GetContextType
()
const override
;
23
24
// |EmbedderTestContext|
25
size_t
GetSurfacePresentCount
()
const override
;
26
27
bool
Present
(
const
sk_sp<SkImage>&
image
);
28
29
private
:
30
// |EmbedderTestContext|
31
void
SetSurface(
DlISize
surface_size)
override
;
32
33
// |EmbedderTestContext|
34
void
SetupCompositor()
override
;
35
36
sk_sp<SkSurface> surface_;
37
DlISize
surface_size_;
38
size_t
software_surface_present_count_ = 0;
39
40
FML_DISALLOW_COPY_AND_ASSIGN
(
EmbedderTestContextSoftware
);
41
};
42
43
}
// namespace testing
44
}
// namespace flutter
45
46
#endif
// FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_CONTEXT_SOFTWARE_H_
flutter::testing::EmbedderTestContext
Definition
embedder_test_context.h:58
flutter::testing::EmbedderTestContextSoftware
Definition
embedder_test_context_software.h:15
flutter::testing::EmbedderTestContextSoftware::GetContextType
EmbedderTestContextType GetContextType() const override
Definition
embedder_test_context_software.cc:48
flutter::testing::EmbedderTestContextSoftware::Present
bool Present(const sk_sp< SkImage > &image)
Definition
embedder_test_context_software.cc:65
flutter::testing::EmbedderTestContextSoftware::GetSurfacePresentCount
size_t GetSurfacePresentCount() const override
Definition
embedder_test_context_software.cc:61
flutter::testing::EmbedderTestContextSoftware::~EmbedderTestContextSoftware
~EmbedderTestContextSoftware() override
image
FlutterVulkanImage * image
Definition
embedder_test_backingstore_producer_vulkan.cc:19
embedder_test_context.h
FML_DISALLOW_COPY_AND_ASSIGN
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition
macros.h:27
flutter::testing::EmbedderTestContextType
EmbedderTestContextType
Definition
embedder_test_context.h:51
flutter
Definition
asset_manager.cc:10
impeller::TSize
Definition
size.h:25
shell
platform
embedder
tests
embedder_test_context_software.h
Generated on Thu Nov 6 2025 16:11:27 for Flutter Engine by
1.9.8