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

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

Issue 2823003002: SkBitmap and SkPixelRef no longer need lock/unlock (Closed)
Patch Set: win fix after rebase Created 3 years, 8 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 74a77c008f073020a1e0a33365e93968ca1a68dd..f10da2779f5a2e2bf7fbd701add5444cef2292f4 100644
--- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp
@@ -172,8 +172,6 @@ TEST_F(DeferredImageDecoderTest, drawIntoPaintRecord) {
canvas_->drawPicture(record);
EXPECT_EQ(0, decode_request_count_);
-
- SkAutoLockPixels auto_lock(bitmap_);
EXPECT_EQ(SkColorSetARGB(255, 255, 255, 255), bitmap_.getColor(0, 0));
}
@@ -203,8 +201,6 @@ TEST_F(DeferredImageDecoderTest, drawIntoPaintRecordProgressive) {
PaintImage::CompletionState::DONE),
0, 0);
canvas_->drawPicture(recorder.finishRecordingAsPicture());
-
- SkAutoLockPixels auto_lock(bitmap_);
EXPECT_EQ(SkColorSetARGB(255, 255, 255, 255), bitmap_.getColor(0, 0));
}
@@ -237,8 +233,6 @@ TEST_F(DeferredImageDecoderTest, decodeOnOtherThread) {
record));
thread.reset();
EXPECT_EQ(0, decode_request_count_);
-
- SkAutoLockPixels auto_lock(bitmap_);
EXPECT_EQ(SkColorSetARGB(255, 255, 255, 255), bitmap_.getColor(0, 0));
}

Powered by Google App Engine
This is Rietveld 408576698