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

Unified Diff: Source/core/html/canvas/CanvasRenderingContext2DTest.cpp

Issue 1093673002: Removing the dependency on GraphicsContext for drawing images in 2D canvas (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 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: Source/core/html/canvas/CanvasRenderingContext2DTest.cpp
diff --git a/Source/core/html/canvas/CanvasRenderingContext2DTest.cpp b/Source/core/html/canvas/CanvasRenderingContext2DTest.cpp
index d499ae0906b4b6dd1a9ddfbfc3f88188c42ff013..e0139718626e1c02b6d7c3b59af90cef813ad52c 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2DTest.cpp
+++ b/Source/core/html/canvas/CanvasRenderingContext2DTest.cpp
@@ -568,7 +568,7 @@ TEST_F(CanvasRenderingContext2DTest, NoFallbackWithSmallState)
canvasElement().createImageBufferUsingSurfaceForTesting(surface.release());
context2d()->fillRect(0, 0, 1, 1); // To have a non-empty dirty rect
- for (int i = 0; i < ExpensiveCanvasHeuristicParameters::ExpensiveRecordingStackDepth - 2; ++i) {
+ for (int i = 0; i < ExpensiveCanvasHeuristicParameters::ExpensiveRecordingStackDepth - 1; ++i) {
context2d()->save();
context2d()->translate(1.0f, 0.0f);
}
@@ -582,7 +582,7 @@ TEST_F(CanvasRenderingContext2DTest, FallbackWithLargeState)
canvasElement().createImageBufferUsingSurfaceForTesting(surface.release());
context2d()->fillRect(0, 0, 1, 1); // To have a non-empty dirty rect
- for (int i = 0; i < ExpensiveCanvasHeuristicParameters::ExpensiveRecordingStackDepth - 1; ++i) {
+ for (int i = 0; i < ExpensiveCanvasHeuristicParameters::ExpensiveRecordingStackDepth; ++i) {
context2d()->save();
context2d()->translate(1.0f, 0.0f);
}

Powered by Google App Engine
This is Rietveld 408576698