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

Unified Diff: third_party/WebKit/Source/platform/graphics/ExpensiveCanvasHeuristicParameters.h

Issue 2687073003: Make disabling 2d canvas GPU acceleration for getImageData less aggressive. (Closed)
Patch Set: Add test Created 3 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/ExpensiveCanvasHeuristicParameters.h
diff --git a/third_party/WebKit/Source/platform/graphics/ExpensiveCanvasHeuristicParameters.h b/third_party/WebKit/Source/platform/graphics/ExpensiveCanvasHeuristicParameters.h
index 3fbcba25c6fc5aa2fd80d8728e68a2a9cc3e97b8..2ac34a6a855a019934cd1d01a3a099f51ddc4f55 100644
--- a/third_party/WebKit/Source/platform/graphics/ExpensiveCanvasHeuristicParameters.h
+++ b/third_party/WebKit/Source/platform/graphics/ExpensiveCanvasHeuristicParameters.h
@@ -78,7 +78,9 @@ enum {
// GPU readback prevention heuristics
//====================================
- GetImageDataForcesNoAcceleration = 1,
+ GPUReadbackMinSuccessiveFrames = 3,
Justin Novosad 2017/02/16 15:27:20 This parameter is non-trivial to understand, pleas
xiangze.zhang 2017/02/17 02:13:45 Done.
+
+ GPUReadbackForcesNoAcceleration = 1,
// When a canvas is used as a source image, if its destination is
// non-accelerated and the source canvas is accelerated, a readback

Powered by Google App Engine
This is Rietveld 408576698