Flutter Engine
 
Loading...
Searching...
No Matches
embedder_test_backingstore_producer_gl.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_GL_H_
6#define FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_BACKINGSTORE_PRODUCER_GL_H_
7
9
10#include <memory>
11
13
14namespace flutter::testing {
15
18 public:
20 sk_sp<GrDirectContext> context,
22 std::shared_ptr<TestEGLContext> egl_context);
23
25
26 bool Create(const FlutterBackingStoreConfig* config,
27 FlutterBackingStore* backing_store_out) override;
28
29 sk_sp<SkSurface> GetSurface(
30 const FlutterBackingStore* backing_store) const override;
31
32 sk_sp<SkImage> MakeImageSnapshot(
33 const FlutterBackingStore* backing_store) const override;
34
35 private:
36 bool CreateFramebuffer(const FlutterBackingStoreConfig* config,
37 FlutterBackingStore* renderer_out);
38
39 bool CreateTexture(const FlutterBackingStoreConfig* config,
40 FlutterBackingStore* renderer_out);
41
42 bool CreateSurface(const FlutterBackingStoreConfig* config,
43 FlutterBackingStore* renderer_out);
44
45 std::shared_ptr<TestEGLContext> test_egl_context_;
46
48};
49
50} // namespace flutter::testing
51
52#endif // FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_BACKINGSTORE_PRODUCER_GL_H_
GLenum type
bool Create(const FlutterBackingStoreConfig *config, FlutterBackingStore *backing_store_out) override
sk_sp< SkImage > MakeImageSnapshot(const FlutterBackingStore *backing_store) const override
sk_sp< SkSurface > GetSurface(const FlutterBackingStore *backing_store) const override
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27