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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp

Issue 2625873005: Add an heuristic for promoting canvases to GPU acceleration (Closed)
Patch Set: webgl test fix Created 3 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/modules/canvas2d/BaseRenderingContext2D.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
index 521f6f186aa2f3c26ad9361236fe753a0480e1ed..76bba6c159b7c66b955bdcf2975ce262590fc92a 100644
--- a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
@@ -1174,6 +1174,10 @@ void BaseRenderingContext2D::drawImage(ExecutionContext* executionContext,
validateStateStack();
+ willDrawImage(imageSource);
+
+ validateStateStack();
+
// Heuristic for disabling acceleration based on anticipated texture upload
// overhead.
// See comments in ExpensiveCanvasHeuristicParameters.h for explanation.

Powered by Google App Engine
This is Rietveld 408576698