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

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

Issue 184453002: Android::Pass Bitmap.Config instead of bool to CreateJavaBitmap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass Bitmap.Config instead of bool to CreateJavaBitmap 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/java_bitmap.h
diff --git a/ui/gfx/android/java_bitmap.h b/ui/gfx/android/java_bitmap.h
index cb1077d73e2ca49f6c8af26c8a107bda67398d6c..1ec31136ef7d397a5e9d2cadf55c1fab9fe35d12 100644
--- a/ui/gfx/android/java_bitmap.h
+++ b/ui/gfx/android/java_bitmap.h
@@ -62,6 +62,10 @@ GFX_EXPORT SkBitmap CreateSkBitmapFromResource(const char* name,
// Returns a Skia config value for the requested input java Bitmap.Config.
GFX_EXPORT SkBitmap::Config ConvertToSkiaConfig(jobject bitmap_config);
+// Returns the java Bitmap.Config for the requested skia config value.
+GFX_EXPORT base::android::ScopedJavaLocalRef<jobject> ConvertToJavaBitmapConfig(
bulach 2014/02/28 13:19:25 I think we can get away without this method.
sivag 2014/03/04 12:36:04 Moved it to a file level static method
sivag 2014/03/04 12:36:04 Done.
+ SkBitmap::Config bitmap_config);
+
} // namespace gfx
#endif // UI_GFX_ANDROID_JAVA_BITMAP_H_

Powered by Google App Engine
This is Rietveld 408576698