mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-04 15:20:58 +00:00 
			
		
		
		
	Previously, constructing a PaintingSurface from an IOSurface required wrapping IOSurface into a Metal texture before passing it to the PaintingSurface constructor. This process was cumbersome, as the caller needed access to a MetalContext to perform the wrapping. With this change SkiaBackendContext maintains a reference to the MetalContext which makes it possible to do: IOSurface -> MetalTexture -> SkSurface within a PaintingSurface constructor.
		
			
				
	
	
		
			69 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			69 lines
		
	
	
	
		
			1 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 ImageDecoder;
 | 
						|
struct FontPixelMetrics;
 | 
						|
class ScaledFont;
 | 
						|
 | 
						|
template<typename T>
 | 
						|
class Line;
 | 
						|
 | 
						|
class Painter;
 | 
						|
class PaintingSurface;
 | 
						|
class Palette;
 | 
						|
class PaletteImpl;
 | 
						|
class Path;
 | 
						|
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 IntLine = Line<int>;
 | 
						|
using FloatLine = Line<float>;
 | 
						|
 | 
						|
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;
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
using Gfx::Color;
 |