Flutter Impeller
dl.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_IMPELLER_TOOLKIT_INTEROP_DL_H_
6 #define FLUTTER_IMPELLER_TOOLKIT_INTEROP_DL_H_
7 
8 #include "flutter/display_list/display_list.h"
11 
12 namespace impeller::interop {
13 
14 class DisplayList final
15  : public Object<DisplayList,
16  IMPELLER_INTERNAL_HANDLE_NAME(ImpellerDisplayList)> {
17  public:
18  explicit DisplayList(sk_sp<flutter::DisplayList> display_list);
19 
20  ~DisplayList() override;
21 
22  DisplayList(const DisplayList&) = delete;
23 
24  DisplayList& operator=(const DisplayList&) = delete;
25 
26  bool IsValid() const;
27 
28  const sk_sp<flutter::DisplayList> GetDisplayList() const;
29 
30  private:
31  sk_sp<flutter::DisplayList> display_list_;
32 };
33 
34 } // namespace impeller::interop
35 
36 #endif // FLUTTER_IMPELLER_TOOLKIT_INTEROP_DL_H_
const sk_sp< flutter::DisplayList > GetDisplayList() const
Definition: dl.cc:18
DisplayList & operator=(const DisplayList &)=delete
DisplayList(sk_sp< flutter::DisplayList > display_list)
Definition: dl.cc:9
bool IsValid() const
Definition: dl.cc:14
DisplayList(const DisplayList &)=delete