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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBuffer.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/ImageBuffer.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.h b/third_party/WebKit/Source/platform/graphics/ImageBuffer.h
index 5e5d5ea796f9d0f351ddcd4d554920e285913d9a..a794d6c717c1465aafb047f16ba45a202b656392 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.h
@@ -95,7 +95,7 @@ public:
virtual void resetCanvas(SkCanvas*) const;
SkCanvas* canvas() const;
- void disableDeferral() const;
+ void disableDeferral(DisableDeferralReason) const;
// Called at the end of a task that rendered a whole frame
void finalizeFrame(const FloatRect &dirtyRect);
@@ -122,13 +122,13 @@ public:
bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, SourceDrawingBuffer);
- void flush(); // process deferred draw commands immediately
- void flushGpu(); // Like flush(), but flushes all the way down to the Gpu context if the surface is accelerated
+ void flush(FlushReason); // process deferred draw commands immediately
+ void flushGpu(FlushReason); // Like flush(), but flushes all the way down to the Gpu context if the surface is accelerated
void notifySurfaceInvalid();
- PassRefPtr<SkImage> newSkImageSnapshot(AccelerationHint) const;
- PassRefPtr<Image> newImageSnapshot(AccelerationHint = PreferNoAcceleration) const;
+ PassRefPtr<SkImage> newSkImageSnapshot(AccelerationHint, SnapshotReason) const;
+ PassRefPtr<Image> newImageSnapshot(AccelerationHint = PreferNoAcceleration, SnapshotReason = SnapshotReasonUnknown) const;
void draw(GraphicsContext&, const FloatRect&, const FloatRect*, SkXfermode::Mode);

Powered by Google App Engine
This is Rietveld 408576698