Flutter Impeller
surface_gles.cc
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 
6 
8 
9 namespace impeller::interop {
10 
12  uint64_t fbo,
13  PixelFormat color_format,
14  ISize size)
15  : SurfaceGLES(context,
16  impeller::SurfaceGLES::WrapFBO(
17  context.GetContext(),
18  []() { return true; },
19  fbo,
20  color_format,
21  size)) {}
22 
24  std::shared_ptr<impeller::Surface> surface)
25  : Surface(context, std::move(surface)) {}
26 
27 SurfaceGLES::~SurfaceGLES() = default;
28 
29 } // namespace impeller::interop
SurfaceGLES(Context &context, uint64_t fbo, PixelFormat color_format, ISize size)
Definition: surface_gles.cc:11
PixelFormat
The Pixel formats supported by Impeller. The naming convention denotes the usage of the component,...
Definition: formats.h:99
Definition: comparable.h:95