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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBufferSurface.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/ImageBufferSurface.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h
index aa51c7a40ddd9f1d3c442fbccd6d56599a70e6c0..364b979d2d6109a2fec28d8e1c01b789e86e9e3f 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h
@@ -59,7 +59,7 @@ public:
virtual ~ImageBufferSurface();
virtual SkCanvas* canvas() = 0;
- virtual void disableDeferral() { }
+ virtual void disableDeferral(DisableDeferralReason) { }
virtual void willOverwriteCanvas() { }
virtual void didDraw(const FloatRect& rect) { }
virtual bool isValid() const = 0;
@@ -76,13 +76,13 @@ public:
virtual void draw(GraphicsContext&, const FloatRect& destRect, const FloatRect& srcRect, SkXfermode::Mode);
virtual void setHasExpensiveOp() { }
virtual Platform3DObject getBackingTextureHandleForOverwrite() { return 0; }
- virtual void flush(); // Execute all deferred rendering immediately
- virtual void flushGpu() { flush(); } // Like flush, but flushes all the way down to the GPU context if the surface uses the GPU
+ virtual void flush(FlushReason); // Execute all deferred rendering immediately
+ virtual void flushGpu(FlushReason reason) { flush(reason); } // Like flush, but flushes all the way down to the GPU context if the surface uses the GPU
virtual void prepareSurfaceForPaintingIfNeeded() { }
virtual bool writePixels(const SkImageInfo& origInfo, const void* pixels, size_t rowBytes, int x, int y);
// May return nullptr if the surface is GPU-backed and the GPU context was lost.
- virtual PassRefPtr<SkImage> newImageSnapshot(AccelerationHint) = 0;
+ virtual PassRefPtr<SkImage> newImageSnapshot(AccelerationHint, SnapshotReason) = 0;
OpacityMode opacityMode() const { return m_opacityMode; }
const IntSize& size() const { return m_size; }

Powered by Google App Engine
This is Rietveld 408576698