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
5
#include "
impeller/toolkit/interop/backend/gles/surface_gles.h
"
6
7
#include "
impeller/renderer/backend/gles/surface_gles.h
"
8
9
namespace
impeller::interop
{
10
11
SurfaceGLES::SurfaceGLES
(
Context
& context,
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
23
SurfaceGLES::SurfaceGLES
(
Context
& context,
24
std::shared_ptr<impeller::Surface> surface)
25
:
Surface
(context,
std
::move(surface)) {}
26
27
SurfaceGLES::~SurfaceGLES
() =
default
;
28
29
}
// namespace impeller::interop
impeller::interop::Context
Definition:
context.h:16
impeller::interop::SurfaceGLES
Definition:
surface_gles.h:12
impeller::interop::SurfaceGLES::~SurfaceGLES
~SurfaceGLES()
impeller::interop::SurfaceGLES::SurfaceGLES
SurfaceGLES(Context &context, uint64_t fbo, PixelFormat color_format, ISize size)
Definition:
surface_gles.cc:11
impeller::interop::Surface
Definition:
surface.h:19
impeller::interop
Definition:
context_gles.cc:12
impeller
Definition:
allocation.cc:12
impeller::PixelFormat
PixelFormat
The Pixel formats supported by Impeller. The naming convention denotes the usage of the component,...
Definition:
formats.h:99
std
Definition:
comparable.h:95
surface_gles.h
impeller::TSize
Definition:
size.h:25
surface_gles.h
impeller
toolkit
interop
backend
gles
surface_gles.cc
Generated by
1.9.1