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

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

Issue 2690583002: Make cc/paint have concrete types (Closed)
Patch Set: PaintRecord as typedef, fixup playback calls 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 70a05909c28840d843f0877d6cf1d78d21d0cb4e..1587d4834bc4322adeaf6606caeaac299cb9f0d4 100644
--- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp
@@ -148,7 +148,7 @@ TEST_F(DeferredImageDecoderTest, drawIntoPaintRecord) {
EXPECT_EQ(1, image->height());
PaintRecorder recorder;
- PaintCanvas* tempCanvas = recorder.beginRecording(100, 100, 0, 0);
+ PaintCanvas* tempCanvas = recorder.beginRecording(100, 100);
tempCanvas->drawImage(image.get(), 0, 0);
sk_sp<PaintRecord> record = recorder.finishRecordingAsPicture();
EXPECT_EQ(0, m_decodeRequestCount);
@@ -172,7 +172,7 @@ TEST_F(DeferredImageDecoderTest, drawIntoPaintRecordProgressive) {
sk_sp<SkImage> image = m_lazyDecoder->createFrameAtIndex(0);
ASSERT_TRUE(image);
PaintRecorder recorder;
- PaintCanvas* tempCanvas = recorder.beginRecording(100, 100, 0, 0);
+ PaintCanvas* tempCanvas = recorder.beginRecording(100, 100);
tempCanvas->drawImage(image.get(), 0, 0);
m_surface->getCanvas()->drawPicture(recorder.finishRecordingAsPicture());
@@ -180,7 +180,7 @@ TEST_F(DeferredImageDecoderTest, drawIntoPaintRecordProgressive) {
m_lazyDecoder->setData(m_data, true);
image = m_lazyDecoder->createFrameAtIndex(0);
ASSERT_TRUE(image);
- tempCanvas = recorder.beginRecording(100, 100, 0, 0);
+ tempCanvas = recorder.beginRecording(100, 100);
tempCanvas->drawImage(image.get(), 0, 0);
m_surface->getCanvas()->drawPicture(recorder.finishRecordingAsPicture());
@@ -203,7 +203,7 @@ TEST_F(DeferredImageDecoderTest, decodeOnOtherThread) {
EXPECT_EQ(1, image->height());
PaintRecorder recorder;
- PaintCanvas* tempCanvas = recorder.beginRecording(100, 100, 0, 0);
+ PaintCanvas* tempCanvas = recorder.beginRecording(100, 100);
tempCanvas->drawImage(image.get(), 0, 0);
sk_sp<PaintRecord> record = recorder.finishRecordingAsPicture();
EXPECT_EQ(0, m_decodeRequestCount);
@@ -303,7 +303,7 @@ TEST_F(DeferredImageDecoderTest, decodedSize) {
// The following code should not fail any assert.
PaintRecorder recorder;
- PaintCanvas* tempCanvas = recorder.beginRecording(100, 100, 0, 0);
+ PaintCanvas* tempCanvas = recorder.beginRecording(100, 100);
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