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
9
10namespace flutter::testing {
11
14 public:
16 sk_sp<GrDirectContext> context,
18 FlutterSoftwarePixelFormat software_pixfmt =
20
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
42};
43
44} // namespace flutter::testing
45
46#endif // FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_BACKINGSTORE_PRODUCER_SOFTWARE_H_
GLenum type
bool Create(const FlutterBackingStoreConfig *config, FlutterBackingStore *backing_store_out) override
sk_sp< SkSurface > GetSurface(const FlutterBackingStore *backing_store) const override
sk_sp< SkImage > MakeImageSnapshot(const FlutterBackingStore *backing_store) const override
FlutterSoftwarePixelFormat
Definition embedder.h:450
@ kFlutterSoftwarePixelFormatNative32
Definition embedder.h:506
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27