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

Unified Diff: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp

Issue 2903053002: Removing canvas rendering mode switching feature (Closed)
Patch Set: fix test failure Created 3 years, 7 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/Canvas2DLayerBridge.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
index 5a6740b195b4bab48abac134a5aa5db27ca1389b..000e413a50d4a9ea8f7587722f673564ea7931ae 100644
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
@@ -34,8 +34,8 @@
#include "platform/Histogram.h"
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/WebTaskRunner.h"
+#include "platform/graphics/CanvasHeuristicParameters.h"
#include "platform/graphics/CanvasMetrics.h"
-#include "platform/graphics/ExpensiveCanvasHeuristicParameters.h"
#include "platform/graphics/GraphicsLayer.h"
#include "platform/graphics/ImageBuffer.h"
#include "platform/graphics/gpu/SharedContextRateLimiter.h"
@@ -1044,7 +1044,7 @@ void Canvas2DLayerBridge::DidDraw(const FloatRect& rect) {
recording_pixel_count_ += pixel_bounds.Width() * pixel_bounds.Height();
if (recording_pixel_count_ >=
(size_.Width() * size_.Height() *
- ExpensiveCanvasHeuristicParameters::kExpensiveOverdrawThreshold)) {
+ CanvasHeuristicParameters::kExpensiveOverdrawThreshold)) {
DisableDeferral(kDisableDeferralReasonExpensiveOverdrawHeuristic);
}
}

Powered by Google App Engine
This is Rietveld 408576698