diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-10-26 13:57:00 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-11-02 11:31:01 +0000 |
commit | 1943b3c2a1dcee36c233724fc4ee7613d71b9cf6 (patch) | |
tree | 8c1b5f12357025c197da5427ae02cfdc2f3570d6 /chromium/third_party/blink/renderer/core/html/canvas/canvas_rendering_context_host.h | |
parent | 21ba0c5d4bf8fba15dddd97cd693bad2358b77fd (diff) | |
download | qtwebengine-chromium-1943b3c2a1dcee36c233724fc4ee7613d71b9cf6.tar.gz |
BASELINE: Update Chromium to 94.0.4606.111
Change-Id: I924781584def20fc800bedf6ff41fdb96c438193
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/html/canvas/canvas_rendering_context_host.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/html/canvas/canvas_rendering_context_host.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/chromium/third_party/blink/renderer/core/html/canvas/canvas_rendering_context_host.h b/chromium/third_party/blink/renderer/core/html/canvas/canvas_rendering_context_host.h index 5a4c9de1d28..9c66ade6af6 100644 --- a/chromium/third_party/blink/renderer/core/html/canvas/canvas_rendering_context_host.h +++ b/chromium/third_party/blink/renderer/core/html/canvas/canvas_rendering_context_host.h @@ -46,8 +46,8 @@ class CORE_EXPORT CanvasRenderingContextHost : public CanvasResourceHost, virtual void DetachContext() = 0; - virtual void DidDraw(const FloatRect& rect) = 0; - virtual void DidDraw() = 0; + virtual void DidDraw(const SkIRect& rect) = 0; + void DidDraw() { DidDraw(SkIRect::MakeWH(width(), height())); } virtual void PreFinalizeFrame() = 0; virtual void PostFinalizeFrame() = 0; @@ -76,8 +76,6 @@ class CORE_EXPORT CanvasRenderingContextHost : public CanvasResourceHost, virtual bool ShouldAccelerate2dContext() const = 0; - virtual bool IsNeutered() const { return false; } - virtual void Commit(scoped_refptr<CanvasResource> canvas_resource, const SkIRect& damage_rect); @@ -103,8 +101,10 @@ class CORE_EXPORT CanvasRenderingContextHost : public CanvasResourceHost, CanvasResourceProvider* GetOrCreateCanvasResourceProvider( RasterModeHint hint) override; - bool Is3d() const; + bool IsWebGL() const; + bool IsWebGPU() const; bool IsRenderingContext2D() const; + bool IsImageBitmapRenderingContext() const; CanvasColorParams ColorParams() const; // blink::CanvasImageSource @@ -116,7 +116,8 @@ class CORE_EXPORT CanvasRenderingContextHost : public CanvasResourceHost, scoped_refptr<StaticBitmapImage> CreateTransparentImage(const IntSize&) const; void CreateCanvasResourceProvider2D(RasterModeHint hint); - void CreateCanvasResourceProvider3D(); + void CreateCanvasResourceProviderWebGL(); + void CreateCanvasResourceProviderWebGPU(); // Computes the digest that corresponds to the "input" of this canvas, // including the context type, and if applicable, canvas digest, and taint |