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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp

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.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp
index 9bf60796d027bd4089bce72b1922b06ad77deb16..db5b593065134b25721cde4df57fa8623032dfac 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp
@@ -70,7 +70,7 @@ void ImageBufferSurface::clear()
void ImageBufferSurface::draw(GraphicsContext& context, const FloatRect& destRect, const FloatRect& srcRect, SkXfermode::Mode op)
{
- RefPtr<SkImage> snapshot = newImageSnapshot(PreferNoAcceleration);
+ RefPtr<SkImage> snapshot = newImageSnapshot(PreferNoAcceleration, SnapshotReasonPaint);
if (!snapshot)
return;
@@ -78,7 +78,7 @@ void ImageBufferSurface::draw(GraphicsContext& context, const FloatRect& destRec
context.drawImage(image.get(), destRect, srcRect, op);
}
-void ImageBufferSurface::flush()
+void ImageBufferSurface::flush(FlushReason)
{
canvas()->flush();
}

Powered by Google App Engine
This is Rietveld 408576698