#include "flutter/lib/gpu/texture.h"#include "flutter/lib/gpu/formats.h"#include "flutter/lib/ui/painting/image.h"#include "flutter/lib/ui/ui_dart_state.h"#include "fml/make_copyable.h"#include "fml/mapping.h"#include "impeller/core/allocator.h"#include "impeller/core/buffer_view.h"#include "impeller/core/device_buffer.h"#include "impeller/core/formats.h"#include "impeller/core/texture.h"#include "impeller/geometry/rect.h"#include "impeller/renderer/blit_pass.h"#include "impeller/renderer/command_buffer.h"#include "impeller/renderer/command_queue.h"#include "impeller/renderer/context.h"#include "third_party/tonic/typed_data/dart_byte_data.h"Go to the source code of this file.
Namespaces | |
| namespace | flutter |
| namespace | flutter::gpu |
Functions | |
| flutter::gpu::IMPLEMENT_WRAPPERTYPEINFO (flutter_gpu, Texture) | |
| static int32_t | flutter::gpu::MipDimensionAtLevel (int32_t base_dimension, uint32_t mip_level) |
| static bool | flutter::gpu::EncodeAndSubmitOverwrite (impeller::Context &context, const std::shared_ptr< impeller::Texture > &texture, const std::shared_ptr< impeller::DeviceBuffer > &staging_buffer, size_t source_length, impeller::IRect destination_region, uint32_t mip_level, uint32_t slice) |
| bool | InternalFlutterGpu_Texture_Initialize (Dart_Handle wrapper, flutter::gpu::Context *gpu_context, int storage_mode, int format, int width, int height, int sample_count, int coordinate_system, int texture_type, bool enable_render_target_usage, bool enable_shader_read_usage, bool enable_shader_write_usage, int mip_level_count) |
| void | InternalFlutterGpu_Texture_SetCoordinateSystem (flutter::gpu::Texture *wrapper, int coordinate_system) |
| bool | InternalFlutterGpu_Texture_Overwrite (flutter::gpu::Texture *texture, flutter::gpu::Context *gpu_context, Dart_Handle source_byte_data, int mip_level, int slice) |
| int | InternalFlutterGpu_Texture_BytesPerTexel (flutter::gpu::Texture *wrapper) |
| Dart_Handle | InternalFlutterGpu_Texture_AsImage (flutter::gpu::Texture *wrapper) |
| Dart_Handle InternalFlutterGpu_Texture_AsImage | ( | flutter::gpu::Texture * | wrapper | ) |
|
extern |
Definition at line 259 of file texture.cc.
References flutter::gpu::Texture::GetBytesPerTexel().
| bool InternalFlutterGpu_Texture_Initialize | ( | Dart_Handle | wrapper, |
| flutter::gpu::Context * | gpu_context, | ||
| int | storage_mode, | ||
| int | format, | ||
| int | width, | ||
| int | height, | ||
| int | sample_count, | ||
| int | coordinate_system, | ||
| int | texture_type, | ||
| bool | enable_render_target_usage, | ||
| bool | enable_shader_read_usage, | ||
| bool | enable_shader_write_usage, | ||
| int | mip_level_count | ||
| ) |
Exports
Definition at line 175 of file texture.cc.
References FML_LOG, impeller::TextureDescriptor::format, format, flutter::gpu::Context::GetContext(), impeller::Context::GetResourceAllocator(), height, impeller::IsMultisampleCapable(), impeller::kCount1, impeller::kCount4, impeller::kRenderTarget, impeller::kShaderRead, impeller::kShaderWrite, impeller::TextureDescriptor::mip_count, impeller::TextureDescriptor::sample_count, impeller::TextureDescriptor::size, impeller::TextureDescriptor::storage_mode, texture, flutter::gpu::ToImpellerPixelFormat(), flutter::gpu::ToImpellerStorageMode(), flutter::gpu::ToImpellerTextureCoordinateSystem(), impeller::TextureDescriptor::type, impeller::TextureDescriptor::usage, and width.
| bool InternalFlutterGpu_Texture_Overwrite | ( | flutter::gpu::Texture * | texture, |
| flutter::gpu::Context * | gpu_context, | ||
| Dart_Handle | source_byte_data, | ||
| int | mip_level, | ||
| int | slice | ||
| ) |
Definition at line 246 of file texture.cc.
References texture.
| void InternalFlutterGpu_Texture_SetCoordinateSystem | ( | flutter::gpu::Texture * | wrapper, |
| int | coordinate_system | ||
| ) |
Definition at line 239 of file texture.cc.
References flutter::gpu::Texture::SetCoordinateSystem(), and flutter::gpu::ToImpellerTextureCoordinateSystem().