Commit ddf48eac authored by jbauman@chromium.org's avatar jbauman@chromium.org

Enable software compositing in renderer for win aura.

BUG=229712,261797,253113
R=piman@chromium.org, zmo@chromium.org

Review URL: https://codereview.chromium.org/21458003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215975 0039d316-1c4b-4281-b951-d872f2087c98
parent c954bc19
......@@ -45,8 +45,8 @@ class TabCaptureApiTest : public ExtensionApiTest {
} // namespace
// http://crbug.com/261493
#if defined(OS_LINUX) || defined(OS_CHROMEOS)
// http://crbug.com/261493 and http://crbug.com/268644
#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(USE_AURA)
#define MAYBE_ApiTests DISABLED_ApiTests
#else
#define MAYBE_ApiTests ApiTests
......@@ -70,7 +70,13 @@ IN_PROC_BROWSER_TEST_F(TabCaptureApiTest, MAYBE_ApiTests) {
"api_tests.html")) << message_;
}
IN_PROC_BROWSER_TEST_F(TabCaptureApiTest, ApiTestsAudio) {
// http://crbug.com/268644
#if defined(USE_AURA)
#define MAYBE_ApiTestsAudio DISABLED_ApiTestsAudio
#else
#define MAYBE_ApiTestsAudio ApiTestsAudio
#endif
IN_PROC_BROWSER_TEST_F(TabCaptureApiTest, MAYBE_ApiTestsAudio) {
#if defined(OS_WIN)
// TODO(justinlin): Disabled for WinXP due to timeout issues.
if (base::win::GetVersion() < base::win::VERSION_VISTA) {
......@@ -83,8 +89,8 @@ IN_PROC_BROWSER_TEST_F(TabCaptureApiTest, ApiTestsAudio) {
"api_tests_audio.html")) << message_;
}
// http://crbug.com/177163
#if defined(OS_WIN) && !defined(NDEBUG)
// http://crbug.com/177163 and http://crbug.com/268644
#if defined(OS_WIN) && (!defined(NDEBUG) || defined(USE_AURA))
#define MAYBE_EndToEnd DISABLED_EndToEnd
#else
#define MAYBE_EndToEnd EndToEnd
......
......@@ -237,8 +237,8 @@ class AcceleratedCompositingTest : public GpuFeatureTest {
}
};
#if defined(OS_WIN) && defined(USE_AURA)
// Compositing is always on for Windows Aura.
#if defined(USE_AURA)
// Compositing is always on for Aura.
#define MAYBE_AcceleratedCompositingDisabled DISABLED_AcceleratedCompositingDisabled
#else
#define MAYBE_AcceleratedCompositingDisabled AcceleratedCompositingDisabled
......
......@@ -996,6 +996,10 @@ GpuDataManagerImplPrivate::GpuDataManagerImplPrivate(
DisableHardwareAcceleration();
if (command_line->HasSwitch(switches::kEnableSoftwareCompositing))
use_software_compositor_ = true;
//TODO(jbauman): enable for Chrome OS and Linux
#if defined(USE_AURA) && defined(OS_WIN)
use_software_compositor_ = true;
#endif
if (command_line->HasSwitch(switches::kGpuSwitching)) {
std::string option_string = command_line->GetSwitchValueASCII(
switches::kGpuSwitching);
......
......@@ -330,6 +330,15 @@ class FakeFrameSubscriber : public RenderWidgetHostViewFrameSubscriber {
// is enabled.
IN_PROC_BROWSER_TEST_F(CompositingRenderWidgetHostViewBrowserTest,
CopyFromBackingStore) {
#if defined(USE_AURA)
if (ui::IsTestCompositorEnabled()) {
LOG(WARNING) << ("Blindly passing this test: Aura test compositor doesn't "
"support copying from backing store.");
// TODO(jbauman): Aura test compositor should support copying from backing
// store. http://crbug.com/268644
return;
}
#endif
RunBasicCopyFromBackingStoreTest();
}
......@@ -372,7 +381,6 @@ IN_PROC_BROWSER_TEST_F(CompositingRenderWidgetHostViewBrowserTest,
"not supported on this platform.");
return;
}
base::RunLoop run_loop;
scoped_refptr<media::VideoFrame> dest =
media::VideoFrame::CreateBlackFrame(frame_size());
......@@ -442,6 +450,16 @@ IN_PROC_BROWSER_TEST_F(CompositingRenderWidgetHostViewBrowserTest, CopyTwice) {
return;
}
#if defined(USE_AURA)
if (ui::IsTestCompositorEnabled()) {
LOG(WARNING) << ("Blindly passing this test: Aura test compositor doesn't "
"support copying to video frame.");
// TODO(jbauman): Aura test compositor should support copying to video
// frame. http://crbug.com/268644
return;
}
#endif
base::RunLoop run_loop;
scoped_refptr<media::VideoFrame> first_output =
media::VideoFrame::CreateBlackFrame(frame_size());
......
......@@ -24,6 +24,7 @@
#include "ui/aura/root_window.h"
#include "ui/aura/test/event_generator.h"
#include "ui/aura/window.h"
#include "ui/compositor/compositor_setup.h"
#include "ui/compositor/scoped_animation_duration_scale_mode.h"
namespace content {
......@@ -325,6 +326,9 @@ IN_PROC_BROWSER_TEST_F(WebContentsViewAuraTest,
// gesture.
IN_PROC_BROWSER_TEST_F(WebContentsViewAuraTest,
OverscrollScreenshot) {
// http://crbug.com/268644
if (ui::IsTestCompositorEnabled())
return;
ASSERT_NO_FATAL_FAILURE(
StartTestWithPage("files/overscroll_navigation.html"));
WebContentsImpl* web_contents =
......@@ -419,6 +423,9 @@ IN_PROC_BROWSER_TEST_F(WebContentsViewAuraTest,
// RenderViewHost to be swapped out.
IN_PROC_BROWSER_TEST_F(WebContentsViewAuraTest,
ScreenshotForSwappedOutRenderViews) {
// http://crbug.com/268644
if (ui::IsTestCompositorEnabled())
return;
ASSERT_NO_FATAL_FAILURE(
StartTestWithPage("files/overscroll_navigation.html"));
// Create a new server with a different site.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment