[M120 Migration][VD] Enable direct rendering for TVPlus
[platform/framework/web/chromium-efl.git] / fuchsia_web / shell / present_frame.h
1 // Copyright 2023 The Chromium Authors
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 FUCHSIA_WEB_SHELL_PRESENT_FRAME_H_
6 #define FUCHSIA_WEB_SHELL_PRESENT_FRAME_H_
7
8 #include <fuchsia/element/cpp/fidl.h>
9 #include <fuchsia/web/cpp/fidl.h>
10
11 // Presents the given frame by setting up the necessary views, connecting to a
12 // fuchsia view presentation protocol, and forwarding the given annotation
13 // controller and annotations. This function will return the reference to a
14 // GraphialPresenterPtr to allow any async FIDL callbacks and error handlers to
15 // complete without being dropped.
16 fuchsia::element::GraphicalPresenterPtr PresentFrame(
17     fuchsia::web::Frame* frame,
18     fidl::InterfaceHandle<fuchsia::element::AnnotationController>
19         annotation_controller);
20
21 #endif  // FUCHSIA_WEB_SHELL_PRESENT_FRAME_H_