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

Unified Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.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: adding missing histogram Created 4 years, 11 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/core/html/HTMLCanvasElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
index a4a0f64220f6404787d50363b127b035c69274b8..5552f2c226535b37c5b9856737929cca6bf1627a 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
@@ -113,7 +113,7 @@ public:
void paint(GraphicsContext&, const LayoutRect&);
SkCanvas* drawingCanvas() const;
- void disableDeferral() const;
+ void disableDeferral(DisableDeferralReason) const;
SkCanvas* existingDrawingCanvas() const;
void setRenderingContext(PassOwnPtrWillBeRawPtr<CanvasRenderingContext>);
@@ -150,7 +150,7 @@ public:
void didChangeVisibilityState(PageVisibilityState) override;
// CanvasImageSource implementation
- PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, AccelerationHint) const override;
+ PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, AccelerationHint, SnapshotReason) const override;
bool wouldTaintOrigin(SecurityOrigin*) const override;
FloatSize elementSize() const override;
bool isCanvasElement() const override { return true; }
@@ -205,7 +205,7 @@ private:
void notifyListenersCanvasChanged();
- ImageData* toImageData(SourceDrawingBuffer) const;
+ ImageData* toImageData(SourceDrawingBuffer, SnapshotReason) const;
String toDataURLInternal(const String& mimeType, const double& quality, SourceDrawingBuffer) const;
PersistentHeapHashSetWillBeHeapHashSet<WeakMember<CanvasDrawListener>> m_listeners;

Powered by Google App Engine
This is Rietveld 408576698