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/fml/macros.h"
9 #include "flutter/shell/platform/embedder/embedder.h"
12 
13 namespace flutter {
14 
15 // Enables the Flutter engine to render content on Windows using software
16 // rasterization and bitmaps.
18  public:
20 
21  /// |Compositor|
22  bool CreateBackingStore(const FlutterBackingStoreConfig& config,
23  FlutterBackingStore* result) override;
24  /// |Compositor|
25  bool CollectBackingStore(const FlutterBackingStore* store) override;
26 
27  /// |Compositor|
28  bool Present(FlutterWindowsView* view,
29  const FlutterLayer** layers,
30  size_t layers_count) override;
31 
32  private:
33  FML_DISALLOW_COPY_AND_ASSIGN(CompositorSoftware);
34 };
35 
36 } // namespace flutter
37 
38 #endif // FLUTTER_SHELL_PLATFORM_WINDOWS_COMPOSITOR_SOFTWARE_H_
flutter::FlutterWindowsView
Definition: flutter_windows_view.h:34
flutter::CompositorSoftware
Definition: compositor_software.h:17
flutter::CompositorSoftware::Present
bool Present(FlutterWindowsView *view, const FlutterLayer **layers, size_t layers_count) override
|Compositor|
Definition: compositor_software.cc:112
flutter::CompositorSoftware::CreateBackingStore
bool CreateBackingStore(const FlutterBackingStoreConfig &config, FlutterBackingStore *result) override
|Compositor|
Definition: compositor_software.cc:86
flutter
Definition: accessibility_bridge_windows.cc:11
flutter_windows_engine.h
flutter::CompositorSoftware::CompositorSoftware
CompositorSoftware()
Definition: compositor_software.cc:84
flutter::CompositorSoftware::CollectBackingStore
bool CollectBackingStore(const FlutterBackingStore *store) override
|Compositor|
Definition: compositor_software.cc:107
compositor.h
flutter::Compositor
Definition: compositor.h:22