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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBuffer.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/ImageBuffer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
index 903a3aa777e09cf107dfd807e243eccda393a19f..7c29a41b4e021d9ef4b1e85b1d84684d2bd31e06 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
@@ -38,7 +38,7 @@
#include "gpu/command_buffer/common/sync_token.h"
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/geometry/IntRect.h"
-#include "platform/graphics/ExpensiveCanvasHeuristicParameters.h"
+#include "platform/graphics/CanvasHeuristicParameters.h"
#include "platform/graphics/GraphicsContext.h"
#include "platform/graphics/ImageBufferClient.h"
#include "platform/graphics/RecordingImageBufferSurface.h"
@@ -147,7 +147,7 @@ bool ImageBuffer::IsSurfaceValid() const {
void ImageBuffer::FinalizeFrame() {
if (IsAccelerated() &&
- ExpensiveCanvasHeuristicParameters::kGPUReadbackForcesNoAcceleration &&
+ CanvasHeuristicParameters::kGPUReadbackForcesNoAcceleration &&
!RuntimeEnabledFeatures::canvas2dFixedRenderingModeEnabled()) {
if (gpu_readback_invoked_in_current_frame_) {
gpu_readback_successive_frames_++;
@@ -157,7 +157,7 @@ void ImageBuffer::FinalizeFrame() {
}
if (gpu_readback_successive_frames_ >=
- ExpensiveCanvasHeuristicParameters::kGPUReadbackMinSuccessiveFrames) {
+ CanvasHeuristicParameters::kGPUReadbackMinSuccessiveFrames) {
DisableAcceleration();
}
}

Powered by Google App Engine
This is Rietveld 408576698