Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
pixel_formats.h
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#ifndef FLUTTER_SHELL_PLATFORM_EMBEDDER_PIXEL_FORMATS_H_
6#define FLUTTER_SHELL_PLATFORM_EMBEDDER_PIXEL_FORMATS_H_
7
8#include <optional>
9#include "flutter/shell/common/rasterizer.h"
10#include "flutter/shell/platform/embedder/embedder.h"
11
12std::optional<SkColorType> getSkColorType(FlutterSoftwarePixelFormat pixfmt);
13
14std::optional<SkColorInfo> getSkColorInfo(FlutterSoftwarePixelFormat pixfmt);
15
16#endif // FLUTTER_SHELL_PLATFORM_EMBEDDER_PIXEL_FORMATS_H_
FlutterSoftwarePixelFormat
Definition embedder.h:333
std::optional< SkColorType > getSkColorType(FlutterSoftwarePixelFormat pixfmt)
std::optional< SkColorInfo > getSkColorInfo(FlutterSoftwarePixelFormat pixfmt)