Flutter Engine
embedder_test_compositor_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_COMPOSITOR_GL_H_
6 #define FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_COMPOSITOR_GL_H_
7 
8 #include "flutter/fml/macros.h"
9 #include "flutter/shell/platform/embedder/embedder.h"
10 #include "flutter/shell/platform/embedder/tests/embedder_test_compositor.h"
11 
12 namespace flutter {
13 namespace testing {
14 
16  public:
17  EmbedderTestCompositorGL(SkISize surface_size,
18  sk_sp<GrDirectContext> context);
19 
20  ~EmbedderTestCompositorGL() override;
21 
22  private:
23  bool UpdateOffscrenComposition(const FlutterLayer** layers,
24  size_t layers_count) override;
25 
26  FML_DISALLOW_COPY_AND_ASSIGN(EmbedderTestCompositorGL);
27 };
28 
29 } // namespace testing
30 } // namespace flutter
31 
32 #endif // FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_COMPOSITOR_GL_H_
EmbedderTestCompositorGL(SkISize surface_size, sk_sp< GrDirectContext > context)