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

Unified Diff: third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp

Issue 2739533003: Revert of Make cc/paint have concrete types (Closed)
Patch Set: Created 3 years, 9 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: third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp
index 1587d4834bc4322adeaf6606caeaac299cb9f0d4..70a05909c28840d843f0877d6cf1d78d21d0cb4e 100644
--- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp
@@ -148,7 +148,7 @@
EXPECT_EQ(1, image->height());
PaintRecorder recorder;
- PaintCanvas* tempCanvas = recorder.beginRecording(100, 100);
+ PaintCanvas* tempCanvas = recorder.beginRecording(100, 100, 0, 0);
tempCanvas->drawImage(image.get(), 0, 0);
sk_sp<PaintRecord> record = recorder.finishRecordingAsPicture();
EXPECT_EQ(0, m_decodeRequestCount);
@@ -172,7 +172,7 @@
sk_sp<SkImage> image = m_lazyDecoder->createFrameAtIndex(0);
ASSERT_TRUE(image);
PaintRecorder recorder;
- PaintCanvas* tempCanvas = recorder.beginRecording(100, 100);
+ PaintCanvas* tempCanvas = recorder.beginRecording(100, 100, 0, 0);
tempCanvas->drawImage(image.get(), 0, 0);
m_surface->getCanvas()->drawPicture(recorder.finishRecordingAsPicture());
@@ -180,7 +180,7 @@
m_lazyDecoder->setData(m_data, true);
image = m_lazyDecoder->createFrameAtIndex(0);
ASSERT_TRUE(image);
- tempCanvas = recorder.beginRecording(100, 100);
+ tempCanvas = recorder.beginRecording(100, 100, 0, 0);
tempCanvas->drawImage(image.get(), 0, 0);
m_surface->getCanvas()->drawPicture(recorder.finishRecordingAsPicture());
@@ -203,7 +203,7 @@
EXPECT_EQ(1, image->height());
PaintRecorder recorder;
- PaintCanvas* tempCanvas = recorder.beginRecording(100, 100);
+ PaintCanvas* tempCanvas = recorder.beginRecording(100, 100, 0, 0);
tempCanvas->drawImage(image.get(), 0, 0);
sk_sp<PaintRecord> record = recorder.finishRecordingAsPicture();
EXPECT_EQ(0, m_decodeRequestCount);
@@ -303,7 +303,7 @@
// The following code should not fail any assert.
PaintRecorder recorder;
- PaintCanvas* tempCanvas = recorder.beginRecording(100, 100);
+ PaintCanvas* tempCanvas = recorder.beginRecording(100, 100, 0, 0);
tempCanvas->drawImage(image.get(), 0, 0);
sk_sp<PaintRecord> record = recorder.finishRecordingAsPicture();
EXPECT_EQ(0, m_decodeRequestCount);

Powered by Google App Engine
This is Rietveld 408576698