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

Unified Diff: cc/resources/ui_resource_bitmap.h

Issue 463663002: Support an ALPHA_8 UIResourceBitmap format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup 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/ui_resource_bitmap.h
diff --git a/cc/resources/ui_resource_bitmap.h b/cc/resources/ui_resource_bitmap.h
index b8863d8e994c32b809a31f86251e3fc7795d8da1..09403a345daf5f6fcd9229be35689e13997eb914 100644
--- a/cc/resources/ui_resource_bitmap.h
+++ b/cc/resources/ui_resource_bitmap.h
@@ -27,6 +27,7 @@ class CC_EXPORT UIResourceBitmap {
public:
enum UIResourceFormat {
RGBA8,
+ ALPHA_8,
ETC1
};
enum UIResourceWrapMode {
@@ -42,7 +43,7 @@ class CC_EXPORT UIResourceBitmap {
void SetOpaque(bool opaque) { opaque_ = opaque; }
// User must ensure that |skbitmap| is immutable. The SkBitmap Format should
- // be 32-bit RGBA.
+ // be 32-bit RGBA or 8-bit ALPHA.
explicit UIResourceBitmap(const SkBitmap& skbitmap);
UIResourceBitmap(const gfx::Size& size, bool is_opaque);
UIResourceBitmap(const skia::RefPtr<SkPixelRef>& pixel_ref,

Powered by Google App Engine
This is Rietveld 408576698