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

Unified Diff: ui/gfx/android/bitmap_config_list.h

Issue 157033007: API to Convert Java Bitmap Config to SkBitmap::Config (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding webview dependecy build changes. Created 6 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: ui/gfx/android/bitmap_config_list.h
diff --git a/ui/gfx/android/bitmap_config_list.h b/ui/gfx/android/bitmap_config_list.h
new file mode 100644
index 0000000000000000000000000000000000000000..ddf32ec8ae4e72c804ae9d25b4e89f91f2213128
--- /dev/null
+++ b/ui/gfx/android/bitmap_config_list.h
@@ -0,0 +1,15 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file intentionally does not have header guards, it's included
+// inside a macro to generate enum values.
+
+#ifndef DEFINE_BITMAP_CONFIG
+#error "DEFINE_BITMAP_CONFIG should be defined before including this file"
+#endif
+DEFINE_BITMAP_CONFIG(FORMAT_NO_CONFIG, 0)
+DEFINE_BITMAP_CONFIG(FORMAT_ALPHA_8, 1)
+DEFINE_BITMAP_CONFIG(FORMAT_ARGB_4444, 2)
+DEFINE_BITMAP_CONFIG(FORMAT_ARGB_8888, 3)
+DEFINE_BITMAP_CONFIG(FORMAT_RGB_565, 4)

Powered by Google App Engine
This is Rietveld 408576698