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

Unified Diff: services/ui/public/interfaces/cursor/cursor_struct_traits_unittest.cc

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
« no previous file with comments | « remoting/test/frame_generator_util.cc ('k') | skia/config/SkUserConfig.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/interfaces/cursor/cursor_struct_traits_unittest.cc
diff --git a/services/ui/public/interfaces/cursor/cursor_struct_traits_unittest.cc b/services/ui/public/interfaces/cursor/cursor_struct_traits_unittest.cc
index 179c6ca5d81f3480c45b7a99f20fef5ea79a12f6..fa0d041782398e210ca32f6dc815a5bb18722afe 100644
--- a/services/ui/public/interfaces/cursor/cursor_struct_traits_unittest.cc
+++ b/services/ui/public/interfaces/cursor/cursor_struct_traits_unittest.cc
@@ -89,17 +89,12 @@ TEST_F(CursorStructTraitsTest, TestBitmapCursor) {
ASSERT_EQ(input.cursor_frames()[f].height(),
output.cursor_frames()[f].height());
- input.cursor_frames()[f].lockPixels();
- output.cursor_frames()[f].lockPixels();
for (int x = 0; x < input.cursor_frames()[f].width(); ++x) {
for (int y = 0; y < input.cursor_frames()[f].height(); ++y) {
EXPECT_EQ(input.cursor_frames()[f].getColor(x, y),
output.cursor_frames()[f].getColor(x, y));
}
}
-
- output.cursor_frames()[f].unlockPixels();
- input.cursor_frames()[f].unlockPixels();
}
}
« no previous file with comments | « remoting/test/frame_generator_util.cc ('k') | skia/config/SkUserConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698