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

Unified Diff: third_party/WebKit/Source/core/page/PrintContextTest.cpp

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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: third_party/WebKit/Source/core/page/PrintContextTest.cpp
diff --git a/third_party/WebKit/Source/core/page/PrintContextTest.cpp b/third_party/WebKit/Source/core/page/PrintContextTest.cpp
index 9145940fb676cf9ece2e07dfd8d5e8faca5cfc86..7546fce971c9520c240b050c129d93d87f330a00 100644
--- a/third_party/WebKit/Source/core/page/PrintContextTest.cpp
+++ b/third_party/WebKit/Source/core/page/PrintContextTest.cpp
@@ -36,7 +36,7 @@ class MockPrintContext : public PrintContext {
}
};
-class MockCanvas : public SkCanvas {
+class MockCanvas : public CdlCanvas {
public:
enum OperationType { DrawRect, DrawPoint };
@@ -45,7 +45,7 @@ class MockCanvas : public SkCanvas {
SkRect rect;
};
- MockCanvas() : SkCanvas(kPageWidth, kPageHeight) {}
+ MockCanvas() : CdlCanvas(kPageWidth, kPageHeight) {}
void onDrawAnnotation(const SkRect& rect,
const char key[],
@@ -87,7 +87,7 @@ class PrintContextTest : public RenderingTest {
document().body()->setInnerHTML(bodyContent);
}
- void printSinglePage(SkCanvas& canvas) {
+ void printSinglePage(CdlCanvas& canvas) {
IntRect pageRect(0, 0, kPageWidth, kPageHeight);
printContext().begin(pageRect.width(), pageRect.height());
document().view()->updateAllLifecyclePhases();

Powered by Google App Engine
This is Rietveld 408576698