summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-10 03:45:13 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-10 03:45:13 +0000
commit1332623f145abe47e3aad2b0be4db7062e676f2f (patch)
treef2fd7b2f66f780d9a2b08be4fbb759b1b8116ca3 /content
parent9f4b802c8163cef91987ddc1fc81531f15d84b36 (diff)
downloadchromium_src-1332623f145abe47e3aad2b0be4db7062e676f2f.zip
chromium_src-1332623f145abe47e3aad2b0be4db7062e676f2f.tar.gz
chromium_src-1332623f145abe47e3aad2b0be4db7062e676f2f.tar.bz2
Remove unused include and always-true compile-time check
BUG= Review URL: https://chromiumcodereview.appspot.com/10827267 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150986 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/web_contents/web_contents_impl.cc10
-rw-r--r--content/common/view_messages.h6
-rw-r--r--content/renderer/render_thread_impl.cc6
3 files changed, 2 insertions, 20 deletions
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 776e47a..f0b6529 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -67,7 +67,6 @@
#include "net/base/net_util.h"
#include "net/base/network_change_notifier.h"
#include "net/url_request/url_request_context_getter.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositor.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
#include "ui/base/layout.h"
#include "ui/base/ui_base_switches.h"
@@ -598,15 +597,6 @@ WebPreferences WebContentsImpl::GetWebkitPrefs(RenderViewHost* rvh,
prefs.accelerated_2d_canvas_enabled = false;
}
-#if !defined(WEBCOMPOSITOR_OWNS_SETTINGS)
- prefs.threaded_animation_enabled =
- !command_line.HasSwitch(switches::kDisableThreadedAnimation);
- prefs.per_tile_painting_enabled =
- command_line.HasSwitch(switches::kEnablePerTilePainting);
- prefs.partial_swap_enabled =
- command_line.HasSwitch(switches::kEnablePartialSwap);
-#endif
-
if (command_line.HasSwitch(switches::kDefaultTileWidth))
prefs.default_tile_width =
GetSwitchValueAsInt(command_line, switches::kDefaultTileWidth, 1);
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index 087bf68..14aaf3e5 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -30,7 +30,6 @@
#include "media/base/media_log_event.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderline.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositor.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.h"
@@ -214,11 +213,6 @@ IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebPreferences)
IPC_STRUCT_TRAITS_MEMBER(css_variables_enabled)
IPC_STRUCT_TRAITS_MEMBER(device_supports_touch)
IPC_STRUCT_TRAITS_MEMBER(device_supports_mouse)
-#if !defined(WEBCOMPOSITOR_OWNS_SETTINGS)
- IPC_STRUCT_TRAITS_MEMBER(threaded_animation_enabled)
- IPC_STRUCT_TRAITS_MEMBER(partial_swap_enabled)
- IPC_STRUCT_TRAITS_MEMBER(per_tile_painting_enabled)
-#endif
IPC_STRUCT_TRAITS_MEMBER(default_tile_width)
IPC_STRUCT_TRAITS_MEMBER(default_tile_height)
IPC_STRUCT_TRAITS_MEMBER(max_untiled_layer_width)
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 93ce9fb..a40b54f 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -74,8 +74,9 @@
#include "media/base/media.h"
#include "net/base/net_errors.h"
#include "net/base/net_util.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebCompositor.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebColorName.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositor.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
@@ -86,7 +87,6 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
#include "ui/base/layout.h"
#include "ui/base/ui_base_switches.h"
#include "v8/include/v8.h"
@@ -255,14 +255,12 @@ void RenderThreadImpl::Init() {
if (command_line.HasSwitch(switches::kEnableGpuBenchmarking))
RegisterExtension(content::GpuBenchmarkingExtension::Get());
-#if defined(WEBCOMPOSITOR_OWNS_SETTINGS)
WebKit::WebCompositor::setAcceleratedAnimationEnabled(
!command_line.HasSwitch(switches::kDisableThreadedAnimation));
WebKit::WebCompositor::setPerTilePaintingEnabled(
command_line.HasSwitch(switches::kEnablePerTilePainting));
WebKit::WebCompositor::setPartialSwapEnabled(
command_line.HasSwitch(switches::kEnablePartialSwap));
-#endif
// Note that under Linux, the media library will normally already have
// been initialized by the Zygote before this instance became a Renderer.