Index: Source/platform/graphics/paint/DisplayItemListTest.cpp |
diff --git a/Source/platform/graphics/paint/DisplayItemListTest.cpp b/Source/platform/graphics/paint/DisplayItemListTest.cpp |
index 212dfbf2fb9ced5ee5e2d1acbb0f3c7ca3fc3c40..b892d4f7fdd823540d4565596e9a307340bae8e9 100644 |
--- a/Source/platform/graphics/paint/DisplayItemListTest.cpp |
+++ b/Source/platform/graphics/paint/DisplayItemListTest.cpp |
@@ -84,11 +84,11 @@ public: |
} \ |
} while (false); |
-void drawRect(GraphicsContext& context, const TestDisplayItemClient& client, DisplayItem::Type type, const FloatRect& bound) |
+void drawRect(GraphicsContext& context, const TestDisplayItemClient& client, DisplayItem::Type type, const FloatRect& bounds) |
{ |
- DrawingRecorder drawingRecorder(context, client, type, bound); |
- if (drawingRecorder.canUseCachedDrawing()) |
+ if (DrawingRecorder::useCachedDrawingIfPossible(context, client, type)) |
return; |
+ DrawingRecorder drawingRecorder(context, client, type, bounds); |
IntRect rect(0, 0, 10, 10); |
context.drawRect(rect); |
} |