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

Unified Diff: Source/core/html/HTMLCanvasElement.h

Issue 907453003: Move overdraw tracking code from GraphicsContext to CanvasRenderingContext2D (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix test copypasta Created 5 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLCanvasElement.h
diff --git a/Source/core/html/HTMLCanvasElement.h b/Source/core/html/HTMLCanvasElement.h
index c98b4b62c233b7d78fc62aa285c96ad6ea05954b..517d613827d4e256df81918aedbaa6c01dfa1738 100644
--- a/Source/core/html/HTMLCanvasElement.h
+++ b/Source/core/html/HTMLCanvasElement.h
@@ -155,6 +155,7 @@ public:
virtual bool wouldTaintOrigin(SecurityOrigin*) const override;
virtual FloatSize sourceSize() const override;
virtual bool isCanvasElement() const override { return true; }
+ virtual bool isOpaque() const override;
// ImageBufferClient implementation
virtual void notifySurfaceInvalid() override;
@@ -166,6 +167,9 @@ public:
virtual void trace(Visitor*) override;
+ // Methods used for testing
+ void createImageBufferUsingSurface(PassOwnPtr<ImageBufferSurface>);
+
protected:
virtual void didMoveToNewDocument(Document& oldDocument) override;
@@ -182,7 +186,7 @@ private:
PassOwnPtr<RecordingImageBufferFallbackSurfaceFactory> createSurfaceFactory(const IntSize& deviceSize, int* msaaSampleCount) const;
PassOwnPtr<ImageBufferSurface> createImageBufferSurface(const IntSize& deviceSize, int* msaaSampleCount);
void createImageBuffer();
- void createImageBufferInternal();
+ void createImageBufferInternal(PassOwnPtr<ImageBufferSurface> externalSurface);
bool shouldUseDisplayList(const IntSize& deviceSize);
void setSurfaceSize(const IntSize&);
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698