Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
dl_test_surface_provider_impeller.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_DISPLAY_LIST_TESTING_IMPELLER_DL_TEST_SURFACE_PROVIDER_IMPELLER_H_
6#define FLUTTER_DISPLAY_LIST_TESTING_IMPELLER_DL_TEST_SURFACE_PROVIDER_IMPELLER_H_
7
9
11
12namespace flutter {
13namespace testing {
14
16 public:
17 virtual ~DlSurfaceProviderImpeller() = default;
18
19 bool InitializeSurface(size_t width,
20 size_t height,
21 PixelFormat format) override;
22 std::shared_ptr<DlSurfaceInstance> GetPrimarySurface() const override;
23 std::unique_ptr<DlSurfaceInstance> MakeOffscreenSurface(
24 size_t width,
25 size_t height,
26 PixelFormat format) const override;
27 bool SupportsPixelFormat(PixelFormat format) const override;
28 bool TargetsImpeller() const override;
29
30 static std::unique_ptr<DlSurfaceInstanceImpeller> MakeOffscreenSurface(
31 std::shared_ptr<impeller::Context> context,
32 size_t width,
33 size_t height,
34 PixelFormat format);
35
36 protected:
38
40
41 static std::unique_ptr<impeller::PlaygroundImpl> MakePlayground(
43 const impeller::PlaygroundSwitches& switches);
44
45 private:
46 std::shared_ptr<DlSurfaceInstance> primary_;
47};
48
49} // namespace testing
50} // namespace flutter
51
52#endif // FLUTTER_DISPLAY_LIST_TESTING_IMPELLER_DL_TEST_SURFACE_PROVIDER_IMPELLER_H_
bool InitializeSurface(size_t width, size_t height, PixelFormat format) override
static std::unique_ptr< impeller::PlaygroundImpl > MakePlayground(impeller::PlaygroundBackend backend, const impeller::PlaygroundSwitches &switches)
std::unique_ptr< DlSurfaceInstance > MakeOffscreenSurface(size_t width, size_t height, PixelFormat format) const override
virtual impeller::PlaygroundImpl * GetPlayground() const =0
bool SupportsPixelFormat(PixelFormat format) const override
std::shared_ptr< DlSurfaceInstance > GetPrimarySurface() const override
PlaygroundBackend
Definition playground.h:26
int32_t height
int32_t width