| 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;
|
| }
|
|
|
|
|