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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContextTest.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/GraphicsContextTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp
index 00833ae3a5e4036f355ae0fa3f2704984b0a1ab8..55a61e253f73fc8a58c16ac185aef25b57ce25c7 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp
@@ -48,7 +48,6 @@ namespace blink {
#define EXPECT_OPAQUE_PIXELS_IN_RECT(bitmap, opaqueRect) \
{ \
- SkAutoLockPixels locker(bitmap); \
for (int y = opaqueRect.Y(); y < opaqueRect.MaxY(); ++y) \
for (int x = opaqueRect.X(); x < opaqueRect.MaxX(); ++x) { \
int alpha = *bitmap.getAddr32(x, y) >> 24; \
@@ -58,7 +57,6 @@ namespace blink {
#define EXPECT_OPAQUE_PIXELS_ONLY_IN_RECT(bitmap, opaqueRect) \
{ \
- SkAutoLockPixels locker(bitmap); \
for (int y = 0; y < bitmap.height(); ++y) \
for (int x = 0; x < bitmap.width(); ++x) { \
int alpha = *bitmap.getAddr32(x, y) >> 24; \

Powered by Google App Engine
This is Rietveld 408576698