| Flutter Impeller |

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
impeller::HandleType::kRenderBuffer
@ kRenderBuffer
impeller::HandleType
HandleType
Definition: handle_gles.h:18
impeller::HandleType::kTexture
@ kTexture
impeller::HandleType::kUnknown
@ kUnknown
impeller::HandleTypeToString
std::string HandleTypeToString(HandleType type)
Definition: handle_gles.cc:11
type
GLenum type
Definition: blit_command_gles.cc:127
impeller::HandleType::kProgram
@ kProgram
handle_gles.h
impeller::HandleType::kFrameBuffer
@ kFrameBuffer
impeller::HandleType::kBuffer
@ kBuffer
impeller
Definition: allocation.cc:12