Chromium Code Reviews| Index: Source/web/PageOverlayTest.cpp |
| diff --git a/Source/web/PageOverlayTest.cpp b/Source/web/PageOverlayTest.cpp |
| index e06374c1b654281ee91c51daccacf90fa66f0b35..aa02b5541e9219c044ec4ef54d5528bbe8ab56b8 100644 |
| --- a/Source/web/PageOverlayTest.cpp |
| +++ b/Source/web/PageOverlayTest.cpp |
| @@ -199,11 +199,13 @@ void PageOverlayTest::runPageOverlayTestWithAcceleratedCompositing() |
| // a display list, and then replay that onto the mock canvas for |
| // examination. This is about as close to the real path as we can easily |
| // get. |
| + WebRect rect(0, 0, viewportWidth, viewportHeight); |
| GraphicsContext graphicsContext(graphicsLayer->displayItemList()); |
| graphicsLayer->paint(graphicsContext, WebRect(0, 0, viewportWidth, viewportHeight)); |
|
wkorman
2015/06/06 05:02:46
Looks like can use rect here.
|
| - OwnPtr<GraphicsContext> replayContext = GraphicsContext::deprecatedCreateWithCanvas(&canvas); |
| - graphicsLayer->displayItemList()->commitNewDisplayItemsAndReplay(*replayContext); |
| + graphicsContext.beginRecording(IntRect(rect)); |
|
chrishtr
2015/06/06 00:34:02
These lines of code are identical to what is in Sk
chrishtr
2015/06/06 05:13:04
Done.
|
| + graphicsLayer->displayItemList()->commitNewDisplayItemsAndReplay(graphicsContext); |
| + graphicsContext.endRecording()->playback(&canvas); |
| } else { |
| OwnPtr<GraphicsContext> graphicsContext = GraphicsContext::deprecatedCreateWithCanvas(&canvas); |
| graphicsLayer->paint(*graphicsContext, WebRect(0, 0, viewportWidth, viewportHeight)); |