Chromium Code Reviews| Index: ui/gfx/android/java_bitmap.h |
| diff --git a/ui/gfx/android/java_bitmap.h b/ui/gfx/android/java_bitmap.h |
| index 9d1e4432cb7dcafaed425e7b20159b82875f3b31..db9eafb39b104f8d1028d29354915138a2541ca7 100644 |
| --- a/ui/gfx/android/java_bitmap.h |
| +++ b/ui/gfx/android/java_bitmap.h |
| @@ -8,10 +8,9 @@ |
| #include <jni.h> |
| #include "base/android/scoped_java_ref.h" |
| +#include "third_party/skia/include/core/SkBitmap.h" |
| #include "ui/gfx/size.h" |
| -class SkBitmap; |
| - |
| namespace gfx { |
| // This class wraps a JNI AndroidBitmap object to make it easier to use. It |
| @@ -51,6 +50,13 @@ GFX_EXPORT SkBitmap CreateSkBitmapFromJavaBitmap(JavaBitmap& jbitmap); |
| GFX_EXPORT SkBitmap CreateSkBitmapFromResource(const char* name, |
| gfx::Size size); |
| +// Returns a string value for the requested input i.e java Bitmap.Config. |
| +GFX_EXPORT base::android::ScopedJavaLocalRef<jstring> |
|
vivekg
2014/02/13 17:09:46
This API need not be exposed to others. You could
|
| + ConvertBitmapConfigToString(jobject bitmap_config); |
| + |
| +// Returns a Skia config value for the requested input java Bitmap.Config. |
| +GFX_EXPORT SkBitmap::Config ConvertToSkiaConfig(jobject bitmap_config); |
| + |
| } // namespace gfx |
| #endif // UI_GFX_ANDROID_JAVA_BITMAP_H_ |