Flutter Engine
The Flutter Engine
impeller
core
texture_descriptor.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/core/texture_descriptor.h
"
6
7
#include <sstream>
8
9
namespace
impeller
{
10
11
std::string
TextureDescriptorToString
(
const
TextureDescriptor
&
desc
) {
12
std::stringstream
stream
;
13
stream
<<
"StorageMode="
<<
StorageModeToString
(
desc
.storage_mode) <<
","
;
14
stream
<<
"Type="
<<
TextureTypeToString
(
desc
.type) <<
","
;
15
stream
<<
"Format="
<<
PixelFormatToString
(
desc
.format) <<
","
;
16
stream
<<
"Size="
<<
desc
.size <<
","
;
17
stream
<<
"MipCount="
<<
desc
.mip_count <<
","
;
18
stream
<<
"SampleCount="
<<
static_cast<
size_t
>
(
desc
.sample_count) <<
","
;
19
stream
<<
"Compression="
<<
CompressionTypeToString
(
desc
.compression_type);
20
return
stream
.str();
21
}
22
23
}
// namespace impeller
dart_profiler_symbols.stream
stream
Definition:
dart_profiler_symbols.py:81
impeller
Definition:
texture.h:18
impeller::TextureDescriptorToString
std::string TextureDescriptorToString(const TextureDescriptor &desc)
Definition:
texture_descriptor.cc:11
impeller::TextureTypeToString
constexpr const char * TextureTypeToString(TextureType type)
Definition:
formats.h:269
impeller::StorageModeToString
constexpr const char * StorageModeToString(StorageMode mode)
Definition:
formats.h:60
impeller::CompressionTypeToString
constexpr const char * CompressionTypeToString(CompressionType type)
Definition:
texture_descriptor.h:23
impeller::PixelFormatToString
constexpr const char * PixelFormatToString(PixelFormat format)
Definition:
formats.h:140
import_conformance_tests.desc
desc
Definition:
import_conformance_tests.py:63
impeller::TextureDescriptor
A lightweight object that describes the attributes of a texture that can then used an allocator to cr...
Definition:
texture_descriptor.h:37
texture_descriptor.h
Generated on Sun Jun 23 2024 21:55:00 for Flutter Engine by
1.9.4