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

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

Issue 1609343004: Add display list fallback reason histograms for 2D canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl web Created 4 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 b215d35575939f2697ac03b6c679f76b04f45e13..813a9484c3af7d43b2078e641c957919d8f2674e 100644
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DImageBufferSurface.h
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DImageBufferSurface.h
@@ -58,7 +58,7 @@ public:
void finalizeFrame(const FloatRect &dirtyRect) override { m_layerBridge->finalizeFrame(dirtyRect); }
void willOverwriteCanvas() override { m_layerBridge->willOverwriteCanvas(); }
SkCanvas* canvas() override { return m_layerBridge->canvas(); }
- void disableDeferral() override { m_layerBridge->disableDeferral(); }
+ void disableDeferral(DisableDeferralReason reason) override { m_layerBridge->disableDeferral(reason); }
bool isValid() const override { return m_layerBridge && m_layerBridge->checkSurfaceValid(); }
bool restore() override { return m_layerBridge->restoreSurface(); }
WebLayer* layer() const override { return m_layerBridge->layer(); }
@@ -67,12 +67,12 @@ public:
void setIsHidden(bool hidden) override { m_layerBridge->setIsHidden(hidden); }
void setImageBuffer(ImageBuffer* imageBuffer) override { m_layerBridge->setImageBuffer(imageBuffer); }
void didDraw(const FloatRect& rect) override { m_layerBridge->didDraw(rect); }
- void flush() override { m_layerBridge->flush(); }
- void flushGpu() override { m_layerBridge->flushGpu(); }
+ 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, int x, int y) override { return m_layerBridge->writePixels(origInfo, pixels, rowBytes, x, y); }
- PassRefPtr<SkImage> newImageSnapshot(AccelerationHint hint) override { return m_layerBridge->newImageSnapshot(hint); }
+ PassRefPtr<SkImage> newImageSnapshot(AccelerationHint hint, SnapshotReason reason) override { return m_layerBridge->newImageSnapshot(hint, reason); }
private:
RefPtr<Canvas2DLayerBridge> m_layerBridge;
};

Powered by Google App Engine
This is Rietveld 408576698