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

Unified Diff: Source/web/PageOverlayTest.cpp

Issue 1154313004: Stop using deprecatedCreateWithCanvas in SP mode in PageOverlayTest. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698