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

Unified Diff: third_party/WebKit/Source/platform/graphics/Canvas2DImageBufferSurface.h

Issue 2653933003: Make stream captures work on canvases that are not in the DOM. (Closed)
Patch Set: rebase Created 3 years, 10 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/platform/graphics/Canvas2DImageBufferSurface.h
diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DImageBufferSurface.h b/third_party/WebKit/Source/platform/graphics/Canvas2DImageBufferSurface.h
index f7d04ef73fa5d84df0db96974c80e152b0acf40c..67c11ffd4299f90bfdbb43bce897b7310ffffb11 100644
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DImageBufferSurface.h
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DImageBufferSurface.h
@@ -80,8 +80,9 @@ class Canvas2DImageBufferSurface final : public ImageBufferSurface {
~Canvas2DImageBufferSurface() override { m_layerBridge->beginDestruction(); }
// ImageBufferSurface implementation
- void finalizeFrame(const FloatRect& dirtyRect) override {
- m_layerBridge->finalizeFrame(dirtyRect);
+ void finalizeFrame() override { m_layerBridge->finalizeFrame(); }
+ void doPaintInvalidation(const FloatRect& dirtyRect) override {
+ m_layerBridge->doPaintInvalidation(dirtyRect);
}
void willOverwriteCanvas() override { m_layerBridge->willOverwriteCanvas(); }
PaintCanvas* canvas() override { return m_layerBridge->canvas(); }
@@ -102,9 +103,6 @@ class Canvas2DImageBufferSurface final : public ImageBufferSurface {
void didDraw(const FloatRect& rect) override { m_layerBridge->didDraw(rect); }
void flush(FlushReason) override { m_layerBridge->flush(); }
void flushGpu(FlushReason) override { m_layerBridge->flushGpu(); }
- void prepareSurfaceForPaintingIfNeeded() override {
- m_layerBridge->prepareSurfaceForPaintingIfNeeded();
- }
bool writePixels(const SkImageInfo& origInfo,
const void* pixels,
size_t rowBytes,

Powered by Google App Engine
This is Rietveld 408576698