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

Unified Diff: Source/platform/graphics/Canvas2DLayerBridge.h

Issue 1308853003: 2D Canvas: disable rendering deferral in cases with a lot of overdraw (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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: Source/platform/graphics/Canvas2DLayerBridge.h
diff --git a/Source/platform/graphics/Canvas2DLayerBridge.h b/Source/platform/graphics/Canvas2DLayerBridge.h
index bca995deeadae6e0c0e4c1b53c72fbd0fb985a39..62bfef350138f3a8e8134671f46950b8c1471358 100644
--- a/Source/platform/graphics/Canvas2DLayerBridge.h
+++ b/Source/platform/graphics/Canvas2DLayerBridge.h
@@ -73,7 +73,7 @@ public:
void setFilterQuality(SkFilterQuality);
void setIsHidden(bool);
void setImageBuffer(ImageBuffer*);
- void didDraw();
+ void didDraw(const FloatRect&);
bool writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, int x, int y);
void flush();
void flushGpu();
@@ -133,6 +133,7 @@ private:
GLenum m_lastFilter;
OpacityMode m_opacityMode;
IntSize m_size;
+ int m_recordingPixelCount;
};
} // namespace blink
« no previous file with comments | « Source/platform/graphics/Canvas2DImageBufferSurface.h ('k') | Source/platform/graphics/Canvas2DLayerBridge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698