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
9
10#include "third_party/skia/include/core/SkSurface.h"
11
12namespace flutter {
13namespace testing {
14
16 public:
17 explicit EmbedderTestContextSoftware(std::string assets_path = "");
18
20
21 // |EmbedderTestContext|
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
41};
42
43} // namespace testing
44} // namespace flutter
45
46#endif // FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_CONTEXT_SOFTWARE_H_
EmbedderTestContextType GetContextType() const override
FlutterVulkanImage * image
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27