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

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

Issue 25015003: gfx: Create a separate gfx component out of ui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 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
« no previous file with comments | « ui/gfx/android/gfx_jni_registrar.cc ('k') | ui/gfx/gfx.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/android/java_bitmap.cc
diff --git a/ui/gfx/android/java_bitmap.cc b/ui/gfx/android/java_bitmap.cc
index 6c2eaa845a26e52e9d23defcaf9a4641864db2ef..2a1be65d215505cfaaf551d6fa7faee9a14ca269 100644
--- a/ui/gfx/android/java_bitmap.cc
+++ b/ui/gfx/android/java_bitmap.cc
@@ -39,11 +39,11 @@ JavaBitmap::~JavaBitmap() {
// static
bool JavaBitmap::RegisterJavaBitmap(JNIEnv* env) {
- return ui::RegisterNativesImpl(env);
+ return RegisterNativesImpl(env);
}
static ScopedJavaLocalRef<jobject> CreateJavaBitmap(const gfx::Size& size) {
- return ui::Java_BitmapHelper_createBitmap(AttachCurrentThread(),
+ return Java_BitmapHelper_createBitmap(AttachCurrentThread(),
size.width(), size.height());
}
@@ -87,7 +87,7 @@ SkBitmap CreateSkBitmapFromResource(const char* name, gfx::Size size) {
DCHECK(!size.IsEmpty());
JNIEnv* env = AttachCurrentThread();
ScopedJavaLocalRef<jstring> jname(env, env->NewStringUTF(name));
- ScopedJavaLocalRef<jobject> jobj(ui::Java_BitmapHelper_decodeDrawableResource(
+ ScopedJavaLocalRef<jobject> jobj(Java_BitmapHelper_decodeDrawableResource(
env, jname.obj(), size.width(), size.height()));
if (jobj.is_null())
return SkBitmap();
« no previous file with comments | « ui/gfx/android/gfx_jni_registrar.cc ('k') | ui/gfx/gfx.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698