| 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"
9 #include "impeller/toolkit/interop/impeller.h"
10 #include "impeller/toolkit/interop/object.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_
impeller::interop::DisplayList
Definition: dl.h:16
impeller::interop::DisplayList::GetDisplayList
const sk_sp< flutter::DisplayList > GetDisplayList() const
Definition: dl.cc:18
impeller::interop::DisplayList::operator=
DisplayList & operator=(const DisplayList &)=delete
impeller::interop::DisplayList::DisplayList
DisplayList(sk_sp< flutter::DisplayList > display_list)
Definition: dl.cc:9
impeller::interop::DisplayList::IsValid
bool IsValid() const
Definition: dl.cc:14
impeller::interop::DisplayList::~DisplayList
~DisplayList() override
impeller::interop::DisplayList::DisplayList
DisplayList(const DisplayList &)=delete
impeller::interop::Object
Definition: object.h:56
impeller.h
impeller::interop
Definition: context_gles.cc:12
object.h