Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h

Issue 2212163002: Add some plumbing for the color management of canvases (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
diff --git a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
index 6e4283d4c8ce73177fac0858bbbdbd7a8d8d2c79..48ac13399b15b1ffe924831d081cf884913e34b1 100644
--- a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
+++ b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
@@ -69,7 +69,7 @@ public:
void validateStateStack() final;
- bool hasAlpha() const override { return m_hasAlpha; }
+ bool hasAlpha() const final { return creationAttributes().alpha(); }
bool isContextLost() const override;
ImageBitmap* transferToImageBitmap(ExceptionState&) final;
@@ -79,7 +79,6 @@ protected:
DECLARE_VIRTUAL_TRACE();
private:
- bool m_hasAlpha;
bool m_needsMatrixClipRestore = false;
std::unique_ptr<ImageBuffer> m_imageBuffer;

Powered by Google App Engine
This is Rietveld 408576698