|
Lines 28-33
a/Source/WebCore/html/ImageBitmap.h_sec1
|
| 28 |
#include "IDLTypes.h" |
28 |
#include "IDLTypes.h" |
| 29 |
#include "ImageBitmapBacking.h" |
29 |
#include "ImageBitmapBacking.h" |
| 30 |
#include "ScriptWrappable.h" |
30 |
#include "ScriptWrappable.h" |
|
|
31 |
#include <atomic> |
| 31 |
#include <wtf/RefCounted.h> |
32 |
#include <wtf/RefCounted.h> |
| 32 |
|
33 |
|
| 33 |
namespace JSC { |
34 |
namespace JSC { |
|
Lines 108-113
public:
a/Source/WebCore/html/ImageBitmap.h_sec2
|
| 108 |
|
109 |
|
| 109 |
static Vector<std::optional<ImageBitmapBacking>> detachBitmaps(Vector<RefPtr<ImageBitmap>>&&); |
110 |
static Vector<std::optional<ImageBitmapBacking>> detachBitmaps(Vector<RefPtr<ImageBitmap>>&&); |
| 110 |
|
111 |
|
|
|
112 |
size_t memoryCost() const; |
| 111 |
private: |
113 |
private: |
| 112 |
friend class ImageBitmapImageObserver; |
114 |
friend class ImageBitmapImageObserver; |
| 113 |
friend class PendingImageBitmap; |
115 |
friend class PendingImageBitmap; |
|
Lines 130-137
private:
a/Source/WebCore/html/ImageBitmap.h_sec3
|
| 130 |
static void createPromise(ScriptExecutionContext&, RefPtr<ImageData>&, ImageBitmapOptions&&, std::optional<IntRect>, Promise&&); |
132 |
static void createPromise(ScriptExecutionContext&, RefPtr<ImageData>&, ImageBitmapOptions&&, std::optional<IntRect>, Promise&&); |
| 131 |
static void createPromise(ScriptExecutionContext&, RefPtr<CSSStyleImageValue>&, ImageBitmapOptions&&, std::optional<IntRect>, Promise&&); |
133 |
static void createPromise(ScriptExecutionContext&, RefPtr<CSSStyleImageValue>&, ImageBitmapOptions&&, std::optional<IntRect>, Promise&&); |
| 132 |
static void createFromBuffer(ScriptExecutionContext&, Ref<ArrayBuffer>&&, String mimeType, long long expectedContentLength, const URL&, ImageBitmapOptions&&, std::optional<IntRect>, Promise&&); |
134 |
static void createFromBuffer(ScriptExecutionContext&, Ref<ArrayBuffer>&&, String mimeType, long long expectedContentLength, const URL&, ImageBitmapOptions&&, std::optional<IntRect>, Promise&&); |
|
|
135 |
void updateMemoryCost(); |
| 133 |
|
136 |
|
| 134 |
std::optional<ImageBitmapBacking> m_backingStore; |
137 |
std::optional<ImageBitmapBacking> m_backingStore; |
|
|
138 |
std::atomic<size_t> m_memoryCost { 0 }; |
| 135 |
}; |
139 |
}; |
| 136 |
|
140 |
|
| 137 |
} |
141 |
} |