Flutter Windows Embedder
compositor_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_WINDOWS_COMPOSITOR_SOFTWARE_H_
6 #define FLUTTER_SHELL_PLATFORM_WINDOWS_COMPOSITOR_SOFTWARE_H_
7 
8 #include "flutter/shell/platform/embedder/embedder.h"
11 
12 namespace flutter {
13 
14 // Enables the Flutter engine to render content on Windows using software
15 // rasterization and bitmaps.
17  public:
19 
20  /// |Compositor|
21  bool CreateBackingStore(const FlutterBackingStoreConfig& config,
22  FlutterBackingStore* result) override;
23  /// |Compositor|
24  bool CollectBackingStore(const FlutterBackingStore* store) override;
25 
26  /// |Compositor|
27  bool Present(const FlutterLayer** layers, size_t layers_count) override;
28 
29  private:
30  FlutterWindowsEngine* engine_;
31 };
32 
33 } // namespace flutter
34 
35 #endif // FLUTTER_SHELL_PLATFORM_WINDOWS_COMPOSITOR_SOFTWARE_H_
flutter::CompositorSoftware
Definition: compositor_software.h:16
flutter::FlutterWindowsEngine
Definition: flutter_windows_engine.h:89
flutter::CompositorSoftware::CreateBackingStore
bool CreateBackingStore(const FlutterBackingStoreConfig &config, FlutterBackingStore *result) override
|Compositor|
Definition: compositor_software.cc:15
flutter::CompositorSoftware::CompositorSoftware
CompositorSoftware(FlutterWindowsEngine *engine)
Definition: compositor_software.cc:12
flutter
Definition: accessibility_bridge_windows.cc:11
flutter::CompositorSoftware::Present
bool Present(const FlutterLayer **layers, size_t layers_count) override
|Compositor|
Definition: compositor_software.cc:41
flutter_windows_engine.h
flutter::CompositorSoftware::CollectBackingStore
bool CollectBackingStore(const FlutterBackingStore *store) override
|Compositor|
Definition: compositor_software.cc:36
compositor.h
flutter::Compositor
Definition: compositor.h:20