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

Unified Diff: skia/ext/bitmap_platform_device_win.cc

Issue 21192: Add support for the "repaint" layout tests (LayoutTests/fast/repaint/*), whic... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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: skia/ext/bitmap_platform_device_win.cc
===================================================================
--- skia/ext/bitmap_platform_device_win.cc (revision 9433)
+++ skia/ext/bitmap_platform_device_win.cc (working copy)
@@ -401,8 +401,8 @@
processPixels<MakeOpaqueAlphaAdjuster>(x, y, width, height);
}
-void BitmapPlatformDeviceWin::fixupAlphaBeforeCompositing() {
- const SkBitmap& bitmap = accessBitmap(true);
+// static
+void BitmapPlatformDeviceWin::fixupAlpha(SkBitmap& bitmap) {
SkAutoLockPixels lock(bitmap);
uint32_t* data = bitmap.getAddr32(0, 0);
@@ -415,6 +415,10 @@
}
}
+void BitmapPlatformDeviceWin::fixupAlphaBeforeCompositing() {
+ fixupAlpha(const_cast<SkBitmap&>(accessBitmap(true)));
+}
+
// Returns the color value at the specified location.
SkColor BitmapPlatformDeviceWin::getColorAt(int x, int y) {
const SkBitmap& bitmap = accessBitmap(false);

Powered by Google App Engine
This is Rietveld 408576698