Index: cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc |
diff --git a/cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc b/cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc |
index 0d31709f289c4bb7df80214d370f3c861ed0c583..81ee99d2fadf9263b5feacb5e9ef1c27085ce319 100644 |
--- a/cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc |
+++ b/cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc |
@@ -54,6 +54,8 @@ class LayerTreeHostOnDemandRasterPixelTest : public LayerTreePixelTest { |
// Triggers pixel readback and ends the test. |
LayerTreePixelTest::SwapBuffersOnThread(host_impl, result); |
} |
+ |
+ void RunOnDemandRasterPixelTest(); |
}; |
class BlueYellowLayerClient : public ContentLayerClient { |
@@ -91,7 +93,7 @@ class BlueYellowLayerClient : public ContentLayerClient { |
gfx::Rect layer_rect_; |
}; |
-TEST_F(LayerTreeHostOnDemandRasterPixelTest, RasterPictureLayer) { |
+void LayerTreeHostOnDemandRasterPixelTest::RunOnDemandRasterPixelTest() { |
// Use multiple colors in a single layer to prevent bypassing on-demand |
// rasterization if a single solid color is detected in picture analysis. |
gfx::Rect layer_rect(200, 200); |
@@ -107,6 +109,23 @@ TEST_F(LayerTreeHostOnDemandRasterPixelTest, RasterPictureLayer) { |
base::FilePath(FILE_PATH_LITERAL("blue_yellow.png"))); |
} |
+TEST_F(LayerTreeHostOnDemandRasterPixelTest, RasterPictureLayer) { |
+ RunOnDemandRasterPixelTest(); |
+} |
+ |
+class LayerTreeHostOnDemandRasterPixelTestWithoutTaskGraphRunner |
reveman
2014/06/20 00:38:41
s/WithoutTaskGraphRunner/WithGpuRasterizationForce
boliu
2014/06/20 00:43:39
Any thoughts on the crash in the global TaskGraphR
reveman
2014/06/20 01:01:38
Do you mean that the TaskGraphRunner instance is c
boliu
2014/06/20 01:27:06
Yep. The cc thread in the two threads are not the
|
+ : public LayerTreeHostOnDemandRasterPixelTest { |
+ virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE { |
+ LayerTreeHostOnDemandRasterPixelTest::InitializeSettings(settings); |
+ settings->gpu_rasterization_forced = true; |
+ } |
+}; |
+ |
+TEST_F(LayerTreeHostOnDemandRasterPixelTestWithoutTaskGraphRunner, |
+ RasterPictureLayer) { |
+ RunOnDemandRasterPixelTest(); |
+} |
+ |
} // namespace |
} // namespace cc |