Flutter Engine
The Flutter Engine
impeller
renderer
backend
gles
handle_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/renderer/backend/gles/handle_gles.h
"
6
7
#include "flutter/fml/logging.h"
8
9
namespace
impeller
{
10
11
std::string
HandleTypeToString
(
HandleType
type
) {
12
switch
(
type
) {
13
case
HandleType::kUnknown
:
14
return
"Unknown"
;
15
case
HandleType::kTexture
:
16
return
"Texture"
;
17
case
HandleType::kBuffer
:
18
return
"Buffer"
;
19
case
HandleType::kProgram
:
20
return
"Program"
;
21
case
HandleType::kRenderBuffer
:
22
return
"RenderBuffer"
;
23
case
HandleType::kFrameBuffer
:
24
return
"Framebuffer"
;
25
}
26
FML_UNREACHABLE
();
27
}
28
29
}
// namespace impeller
type
GLenum type
Definition:
blit_command_gles.cc:126
FML_UNREACHABLE
#define FML_UNREACHABLE()
Definition:
logging.h:109
handle_gles.h
impeller
Definition:
texture.h:18
impeller::HandleTypeToString
std::string HandleTypeToString(HandleType type)
Definition:
handle_gles.cc:11
impeller::HandleType
HandleType
Definition:
handle_gles.h:18
impeller::HandleType::kBuffer
@ kBuffer
impeller::HandleType::kProgram
@ kProgram
impeller::HandleType::kTexture
@ kTexture
impeller::HandleType::kUnknown
@ kUnknown
impeller::HandleType::kRenderBuffer
@ kRenderBuffer
impeller::HandleType::kFrameBuffer
@ kFrameBuffer
Generated on Sun Jun 23 2024 21:55:02 for Flutter Engine by
1.9.4