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

Unified Diff: base/android/java/src/org/chromium/base/BitmapFormat.template

Issue 157033007: API to Convert Java Bitmap Config to SkBitmap::Config (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code changed as per review comments. 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: base/android/java/src/org/chromium/base/BitmapFormat.template
diff --git a/base/android/java/src/org/chromium/base/BitmapFormat.template b/base/android/java/src/org/chromium/base/BitmapFormat.template
new file mode 100644
index 0000000000000000000000000000000000000000..5275ab8d3d6d2498f6c907219a2decc90b45b9e0
--- /dev/null
+++ b/base/android/java/src/org/chromium/base/BitmapFormat.template
@@ -0,0 +1,14 @@
+// Copyright 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.
+
+package org.chromium.ui.gfx;
+
+// A simple auto-generated interface used to maintain the various
+// bitmap configurations as used by both org.chromium.ui.gfx.BitmapFormat
+// and ui/gfx/android/java_bitmap.h
+interface BitmapFormat {
+#define DEFINE_BITMAP_CONFIG(x,y) public final int x = y;
+#include "base/android/bitmap_config_list.h"
+#undef DEFINE_BITMAP_CONFIG
+}
« no previous file with comments | « base/android/bitmap_config_list.h ('k') | base/base.gyp » ('j') | ui/gfx/android/java_bitmap.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698