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(FlutterViewId view_id,
28  const FlutterLayer** layers,
29  size_t layers_count) override;
30 
31  private:
32  FlutterWindowsEngine* engine_;
33 };
34 
35 } // namespace flutter
36 
37 #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::FlutterViewId
int64_t FlutterViewId
Definition: flutter_view.h:13
flutter
Definition: accessibility_bridge_windows.cc:11
flutter_windows_engine.h
flutter::CompositorSoftware::CollectBackingStore
bool CollectBackingStore(const FlutterBackingStore *store) override
|Compositor|
Definition: compositor_software.cc:36
compositor.h
flutter::CompositorSoftware::Present
bool Present(FlutterViewId view_id, const FlutterLayer **layers, size_t layers_count) override
|Compositor|
Definition: compositor_software.cc:41
flutter::Compositor
Definition: compositor.h:20