Index: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp |
index ea4800310ac319fc6eb401ed977ac2542e5f653c..01f6178ccfea5671352d57536ba514cc76bc66d6 100644 |
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp |
@@ -654,7 +654,7 @@ void postAndWaitRenderingTask(const WebTraceLocation& location, WebThread* testT |
doneEvent->wait(); |
} |
-#if CANVAS2D_HIBERNATION_ENABLED |
+#if CANVAS2D_HIBERNATION_ENABLED && CANVAS2D_BACKGROUND_RENDER_SWITCH_TO_CPU |
TEST_F(Canvas2DLayerBridgeTest, BackgroundRenderingWhileHibernating) |
#else |
TEST_F(Canvas2DLayerBridgeTest, DISABLED_BackgroundRenderingWhileHibernating) |
@@ -708,7 +708,7 @@ TEST_F(Canvas2DLayerBridgeTest, DISABLED_BackgroundRenderingWhileHibernating) |
::testing::Mock::VerifyAndClearExpectations(&mainMock); |
} |
-#if CANVAS2D_HIBERNATION_ENABLED |
+#if CANVAS2D_HIBERNATION_ENABLED && CANVAS2D_BACKGROUND_RENDER_SWITCH_TO_CPU |
TEST_F(Canvas2DLayerBridgeTest, BackgroundRenderingWhileHibernatingWithDeferredRenderingDisabled) |
#else |
TEST_F(Canvas2DLayerBridgeTest, DISABLED_BackgroundRenderingWhileHibernatingWithDeferredRenderingDisabled) |
@@ -770,7 +770,7 @@ TEST_F(Canvas2DLayerBridgeTest, DISABLED_BackgroundRenderingWhileHibernatingWith |
postAndWaitDestroyBridgeTask(BLINK_FROM_HERE, testThread.get(), &bridge); |
} |
-#if CANVAS2D_HIBERNATION_ENABLED |
+#if CANVAS2D_HIBERNATION_ENABLED && CANVAS2D_BACKGROUND_RENDER_SWITCH_TO_CPU |
TEST_F(Canvas2DLayerBridgeTest, DisableDeferredRenderingWhileHibernating) |
#else |
TEST_F(Canvas2DLayerBridgeTest, DISABLED_DisableDeferredRenderingWhileHibernating) |
@@ -1085,7 +1085,7 @@ TEST_F(Canvas2DLayerBridgeTest, DISABLED_PrepareMailboxWhileHibernating) |
postAndWaitDestroyBridgeTask(BLINK_FROM_HERE, testThread.get(), &bridge); |
} |
-#if CANVAS2D_HIBERNATION_ENABLED |
+#if CANVAS2D_HIBERNATION_ENABLED && CANVAS2D_BACKGROUND_RENDER_SWITCH_TO_CPU |
TEST_F(Canvas2DLayerBridgeTest, PrepareMailboxWhileBackgroundRendering) |
#else |
TEST_F(Canvas2DLayerBridgeTest, DISABLED_PrepareMailboxWhileBackgroundRendering) |