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

Unified Diff: cc/resources/platform_color.h

Issue 460563003: Fix interchange of red and blue content when using rgba_4444_textures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: cc/resources/platform_color.h
diff --git a/cc/resources/platform_color.h b/cc/resources/platform_color.h
index ecdf7c166f2dfe080b28cfa4d0d566abd7645b9f..4945dccadc57d01d8a9e03af76eaca13ca9f3d9d 100644
--- a/cc/resources/platform_color.h
+++ b/cc/resources/platform_color.h
@@ -44,7 +44,7 @@ class PlatformColor {
case SOURCE_FORMAT_RGBA8:
return format == RGBA_8888 || format == RGBA_4444;
case SOURCE_FORMAT_BGRA8:
- return format == BGRA_8888;
+ return format == BGRA_8888 || format == RGBA_4444;
}
NOTREACHED();
return false;

Powered by Google App Engine
This is Rietveld 408576698