From 186bf92abfcce5136acb040c301959ff6ca96028 Mon Sep 17 00:00:00 2001 From: "alokp@chromium.org" Date: Thu, 7 Apr 2011 19:10:43 +0000 Subject: Added a command-line flag to enable h/w accelerated rendering of content layers. R=tony@chromium.org,darin@chromium.org Review URL: http://codereview.chromium.org/6726005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80822 0039d316-1c4b-4281-b951-d872f2087c98 --- content/common/content_switches.cc | 6 ++++++ content/common/content_switches.h | 1 + content/common/view_messages.h | 1 + 3 files changed, 8 insertions(+) (limited to 'content') diff --git a/content/common/content_switches.cc b/content/common/content_switches.cc index 1232131..1197a91 100644 --- a/content/common/content_switches.cc +++ b/content/common/content_switches.cc @@ -69,6 +69,12 @@ const char kDisableSeccompSandbox[] = "disable-seccomp-sandbox"; // Disable Web Sockets support. const char kDisableWebSockets[] = "disable-web-sockets"; +// Enable hardware accelerated page drawing. +// Please note that this flag is honored only if chromium is compiled with +// SKIA_GPU flag, which can be enabled by setting use_skia_gpu variable to 1 +// in build/features_override.gypi. +const char kEnableAcceleratedDrawing[] = "enable-accelerated-drawing"; + // Enables the benchmarking extensions. const char kEnableBenchmarking[] = "enable-benchmarking"; diff --git a/content/common/content_switches.h b/content/common/content_switches.h index 61fc6cc..d7ac513 100644 --- a/content/common/content_switches.h +++ b/content/common/content_switches.h @@ -29,6 +29,7 @@ extern const char kDisablePlugins[]; extern const char kDisablePopupBlocking[]; extern const char kDisableSeccompSandbox[]; extern const char kDisableWebSockets[]; +extern const char kEnableAcceleratedDrawing[]; extern const char kEnableBenchmarking[]; extern const char kEnableGPUPlugin[]; extern const char kEnableLogging[]; diff --git a/content/common/view_messages.h b/content/common/view_messages.h index 2ff791d..c397f62 100644 --- a/content/common/view_messages.h +++ b/content/common/view_messages.h @@ -308,6 +308,7 @@ IPC_STRUCT_TRAITS_BEGIN(WebPreferences) IPC_STRUCT_TRAITS_MEMBER(force_compositing_mode) IPC_STRUCT_TRAITS_MEMBER(composite_to_texture_enabled) IPC_STRUCT_TRAITS_MEMBER(accelerated_2d_canvas_enabled) + IPC_STRUCT_TRAITS_MEMBER(accelerated_drawing_enabled) IPC_STRUCT_TRAITS_MEMBER(accelerated_plugins_enabled) IPC_STRUCT_TRAITS_MEMBER(accelerated_layers_enabled) IPC_STRUCT_TRAITS_MEMBER(accelerated_video_enabled) -- cgit v1.1