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

Unified Diff: third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp ('k') | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp
index c7eebf18e6c4c8288414f0ee56cf55eeb5e83145..6e8101b84173536adf83fb7576f96919fa4e289c 100644
--- a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp
+++ b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp
@@ -7,8 +7,8 @@
#include <memory>
#include "platform/Histogram.h"
+#include "platform/graphics/CanvasHeuristicParameters.h"
#include "platform/graphics/CanvasMetrics.h"
-#include "platform/graphics/ExpensiveCanvasHeuristicParameters.h"
#include "platform/graphics/GraphicsContext.h"
#include "platform/graphics/ImageBuffer.h"
#include "platform/graphics/UnacceleratedImageBufferSurface.h"
@@ -331,7 +331,7 @@ bool RecordingImageBufferSurface::FinalizeFrameInternal(
if (allow_fallback_ == kAllowFallback &&
current_frame_->getRecordingCanvas()->getSaveCount() - 1 >
- ExpensiveCanvasHeuristicParameters::kExpensiveRecordingStackDepth) {
+ CanvasHeuristicParameters::kExpensiveRecordingStackDepth) {
// (getSaveCount() decremented to account for the intial recording canvas
// save frame.)
*fallback_reason = kFallbackReasonRunawayStateStack;
@@ -374,7 +374,7 @@ bool RecordingImageBufferSurface::IsExpensiveToPaint() {
if (current_frame_pixel_count_ >=
(size().Width() * size().Height() *
- ExpensiveCanvasHeuristicParameters::kExpensiveOverdrawThreshold))
+ CanvasHeuristicParameters::kExpensiveOverdrawThreshold))
return true;
if (frame_was_cleared_)
@@ -387,7 +387,7 @@ bool RecordingImageBufferSurface::IsExpensiveToPaint() {
if (previous_frame_pixel_count_ >=
(size().Width() * size().Height() *
- ExpensiveCanvasHeuristicParameters::kExpensiveOverdrawThreshold))
+ CanvasHeuristicParameters::kExpensiveOverdrawThreshold))
return true;
}
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp ('k') | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698