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

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: fix build and tests 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 33702391887d2e8bbc32ac8e7daedd065c0df68a..edb1ad3296c59f821c80febd4efc9ca649b88098 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 CanvasRenderingContext::hasAlpha(); }
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