mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
Generalize the backing store sharing abstraction into SharedImage, which represents shared GPU memory independently of Skia and can be used to share memory between different processes or different GPU contexts.
72 lines
1.0 KiB
C++
72 lines
1.0 KiB
C++
/*
|
|
* Copyright (c) 2020, Andreas Kling <andreas@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace Gfx {
|
|
|
|
class Bitmap;
|
|
class CMYKBitmap;
|
|
class ImmutableBitmap;
|
|
class Color;
|
|
|
|
class Emoji;
|
|
class Font;
|
|
class GlyphRun;
|
|
class ImageDecoder;
|
|
struct FontPixelMetrics;
|
|
|
|
class Painter;
|
|
class PaintingSurface;
|
|
class Palette;
|
|
class YUVData;
|
|
class PaletteImpl;
|
|
class Path;
|
|
class SharedImage;
|
|
class SharedImageBuffer;
|
|
class ShareableBitmap;
|
|
class SkiaBackendContext;
|
|
struct SystemTheme;
|
|
|
|
template<typename T>
|
|
class Triangle;
|
|
|
|
template<typename T>
|
|
class Point;
|
|
|
|
template<typename T>
|
|
class Size;
|
|
|
|
template<typename T>
|
|
class Rect;
|
|
|
|
template<typename T>
|
|
class Quad;
|
|
|
|
using IntRect = Rect<int>;
|
|
using FloatRect = Rect<float>;
|
|
|
|
using IntPoint = Point<int>;
|
|
using FloatPoint = Point<float>;
|
|
|
|
using IntSize = Size<int>;
|
|
using FloatSize = Size<float>;
|
|
|
|
using FloatQuad = Quad<float>;
|
|
|
|
enum class BitmapFormat;
|
|
enum class ColorRole;
|
|
enum class TextAlignment;
|
|
|
|
enum class MaskKind {
|
|
Alpha,
|
|
Luminance
|
|
};
|
|
|
|
}
|
|
|
|
using Gfx::Color;
|