summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-30 02:47:48 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-30 02:47:48 +0000
commit529a3cf4d14eb7bd230c5edec0a2e90314e4abd8 (patch)
tree08cf308ed5574d29345c3d05888305e0bbd5c0f4 /content
parentb2b8caae5779d58a4b57c111c93fe11dd447a2b8 (diff)
downloadchromium_src-529a3cf4d14eb7bd230c5edec0a2e90314e4abd8.zip
chromium_src-529a3cf4d14eb7bd230c5edec0a2e90314e4abd8.tar.gz
chromium_src-529a3cf4d14eb7bd230c5edec0a2e90314e4abd8.tar.bz2
gfx: Create a separate gfx component out of ui.
Landed previously in r225857, which was reverted in r225859 because it broke android tests. BUG=103304 R=ben@chromium.org Review URL: https://codereview.chromium.org/25015003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225909 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/app/android/library_loader_hooks.cc4
-rw-r--r--content/content_app.gypi1
-rw-r--r--content/content_browser.gypi1
-rw-r--r--content/content_child.gypi1
-rw-r--r--content/content_common.gypi1
-rw-r--r--content/content_ppapi_plugin.gypi1
-rw-r--r--content/content_shell.gypi1
-rw-r--r--content/content_tests.gypi11
-rw-r--r--content/public/test/content_test_suite_base.cc2
9 files changed, 21 insertions, 2 deletions
diff --git a/content/app/android/library_loader_hooks.cc b/content/app/android/library_loader_hooks.cc
index 725491d..48e36e3 100644
--- a/content/app/android/library_loader_hooks.cc
+++ b/content/app/android/library_loader_hooks.cc
@@ -27,6 +27,7 @@
#include "media/base/android/media_jni_registrar.h"
#include "net/android/net_jni_registrar.h"
#include "ui/android/ui_jni_registrar.h"
+#include "ui/gfx/android/gfx_jni_registrar.h"
#include "ui/gl/android/gl_jni_registrar.h"
#include "ui/shell_dialogs/android/shell_dialogs_jni_registrar.h"
@@ -73,6 +74,9 @@ static jint LibraryLoaded(JNIEnv* env, jclass clazz,
if (!base::android::RegisterJni(env))
return RESULT_CODE_FAILED_TO_REGISTER_JNI;
+ if (!gfx::android::RegisterJni(env))
+ return RESULT_CODE_FAILED_TO_REGISTER_JNI;
+
if (!net::android::RegisterJni(env))
return RESULT_CODE_FAILED_TO_REGISTER_JNI;
diff --git a/content/content_app.gypi b/content/content_app.gypi
index 2055f21..127b593 100644
--- a/content/content_app.gypi
+++ b/content/content_app.gypi
@@ -10,6 +10,7 @@
'../base/base.gyp:base',
'../base/base.gyp:base_i18n',
'../crypto/crypto.gyp:crypto',
+ '../ui/gfx/gfx.gyp:gfx',
'../ui/ui.gyp:ui',
],
'sources': [
diff --git a/content/content_browser.gypi b/content/content_browser.gypi
index 4563cdb..138b10a 100644
--- a/content/content_browser.gypi
+++ b/content/content_browser.gypi
@@ -14,6 +14,7 @@
'../third_party/re2/re2.gyp:re2',
'../third_party/zlib/google/zip.gyp:zip',
'../third_party/zlib/zlib.gyp:zlib',
+ '../ui/gfx/gfx.gyp:gfx',
'../ui/snapshot/snapshot.gyp:snapshot',
'../ui/ui.gyp:ui',
'../ui/ui.gyp:ui_resources',
diff --git a/content/content_child.gypi b/content/content_child.gypi
index 14c1a31..3fb005c 100644
--- a/content/content_child.gypi
+++ b/content/content_child.gypi
@@ -7,6 +7,7 @@
'../base/base.gyp:base',
'../components/tracing.gyp:tracing',
'../skia/skia.gyp:skia',
+ '../ui/gfx/gfx.gyp:gfx',
'../ui/ui.gyp:ui',
'../url/url.gyp:url_lib',
],
diff --git a/content/content_common.gypi b/content/content_common.gypi
index 7b36e6f..b6c94e7 100644
--- a/content/content_common.gypi
+++ b/content/content_common.gypi
@@ -9,6 +9,7 @@
'../net/net.gyp:net',
'../skia/skia.gyp:skia',
'../third_party/icu/icu.gyp:icuuc',
+ '../ui/gfx/gfx.gyp:gfx',
'../ui/ui.gyp:shell_dialogs',
'../ui/ui.gyp:ui',
'../url/url.gyp:url_lib',
diff --git a/content/content_ppapi_plugin.gypi b/content/content_ppapi_plugin.gypi
index 4b8025d..782c1f0 100644
--- a/content/content_ppapi_plugin.gypi
+++ b/content/content_ppapi_plugin.gypi
@@ -8,6 +8,7 @@
'dependencies': [
'../base/base.gyp:base',
'../ppapi/ppapi_internal.gyp:ppapi_ipc',
+ '../ui/gfx/gfx.gyp:gfx',
'../ui/ui.gyp:ui',
],
'sources': [
diff --git a/content/content_shell.gypi b/content/content_shell.gypi
index 939e42eb..e156484 100644
--- a/content/content_shell.gypi
+++ b/content/content_shell.gypi
@@ -47,6 +47,7 @@
'../net/net.gyp:net_resources',
'../skia/skia.gyp:skia',
'../third_party/WebKit/public/blink_test_runner.gyp:blink_test_runner',
+ '../ui/gfx/gfx.gyp:gfx',
'../ui/gl/gl.gyp:gl',
'../ui/ui.gyp:ui',
'../url/url.gyp:url_lib',
diff --git a/content/content_tests.gypi b/content/content_tests.gypi
index 52efad3..67cf2db 100644
--- a/content/content_tests.gypi
+++ b/content/content_tests.gypi
@@ -13,6 +13,7 @@
'../skia/skia.gyp:skia',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
+ '../ui/gfx/gfx.gyp:gfx',
'../ui/ui.gyp:keycode_converter',
'../ui/ui.gyp:ui',
'../ui/ui.gyp:ui_resources',
@@ -308,6 +309,7 @@
'../sql/sql.gyp:test_support_sql',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
+ '../ui/gfx/gfx.gyp:gfx',
'../ui/ui.gyp:ui',
'../webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
],
@@ -831,6 +833,7 @@
'../testing/gtest.gyp:gtest',
'../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
'../third_party/mesa/mesa.gyp:osmesa',
+ '../ui/gfx/gfx.gyp:gfx',
'../ui/gl/gl.gyp:gl',
'../ui/snapshot/snapshot.gyp:snapshot',
'../ui/ui.gyp:shell_dialogs',
@@ -1064,8 +1067,9 @@
'../base/base.gyp:test_support_base',
'../gpu/gpu.gyp:command_buffer_common',
'../testing/gtest.gyp:gtest',
- '../ui/ui.gyp:ui',
+ '../ui/gfx/gfx.gyp:gfx',
'../ui/gl/gl.gyp:gl',
+ '../ui/ui.gyp:ui',
'../third_party/WebKit/public/blink.gyp:blink',
# The following two dependencies provide the missing
# symbol HeapProfilerStart in Linux component builds.
@@ -1096,8 +1100,9 @@
'test_support_content',
'../base/base.gyp:test_support_base',
'../testing/gtest.gyp:gtest',
- '../ui/ui.gyp:ui',
+ '../ui/gfx/gfx.gyp:gfx',
'../ui/gl/gl.gyp:gl',
+ '../ui/ui.gyp:ui',
'../third_party/WebKit/public/blink.gyp:blink',
# The following two dependencies provide the missing
# symbol HeapProfilerStart in Linux component builds.
@@ -1138,6 +1143,7 @@
'../testing/gtest.gyp:gtest',
'../media/media.gyp:media',
'../ui/gl/gl.gyp:gl',
+ '../ui/gfx/gfx.gyp:gfx',
'../ui/ui.gyp:ui',
],
'include_dirs': [
@@ -1203,6 +1209,7 @@
'../testing/gtest.gyp:gtest',
'../media/media.gyp:media',
'../ui/gl/gl.gyp:gl',
+ '../ui/gfx/gfx.gyp:gfx',
'../ui/ui.gyp:ui',
],
'sources': [
diff --git a/content/public/test/content_test_suite_base.cc b/content/public/test/content_test_suite_base.cc
index 27c9c63..2fe64ef 100644
--- a/content/public/test/content_test_suite_base.cc
+++ b/content/public/test/content_test_suite_base.cc
@@ -29,6 +29,7 @@
#include "media/base/android/media_jni_registrar.h"
#include "net/android/net_jni_registrar.h"
#include "ui/android/ui_jni_registrar.h"
+#include "ui/gfx/android/gfx_jni_registrar.h"
#include "ui/gl/android/gl_jni_registrar.h"
#include "ui/shell_dialogs/android/shell_dialogs_jni_registrar.h"
#endif
@@ -63,6 +64,7 @@ void ContentTestSuiteBase::Initialize() {
JNIEnv* env = base::android::AttachCurrentThread();
content::android::RegisterCommonJni(env);
content::android::RegisterBrowserJni(env);
+ gfx::android::RegisterJni(env);
media::RegisterJni(env);
net::android::RegisterJni(env);
ui::android::RegisterJni(env);