summaryrefslogtreecommitdiffstats
path: root/cc/test/layer_tree_pixel_test.cc
diff options
context:
space:
mode:
authorjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-01 02:46:22 +0000
committerjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-01 02:46:22 +0000
commitebc0e1dfdf04993d73087a92d3584b82936e15d2 (patch)
tree6fe976dcaaef63c7bb285506206f41e88f405aad /cc/test/layer_tree_pixel_test.cc
parent9ee0d98ec72e8ac96dd2d86de5b1746baa18bb50 (diff)
downloadchromium_src-ebc0e1dfdf04993d73087a92d3584b82936e15d2.zip
chromium_src-ebc0e1dfdf04993d73087a92d3584b82936e15d2.tar.gz
chromium_src-ebc0e1dfdf04993d73087a92d3584b82936e15d2.tar.bz2
Add a flag to allow renderer to use software compositor when GL compositor doesn't work.
The --enable-software-compositing flag will allow the renderer to use the software compositor if it can't create a GL context. This is currently accomplished by having the compositor request a "fallback" output surface if the normal output surface can't be initialized (on the impl thread). BUG=229712,230120 Review URL: https://chromiumcodereview.appspot.com/19267016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214930 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/layer_tree_pixel_test.cc')
-rw-r--r--cc/test/layer_tree_pixel_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/test/layer_tree_pixel_test.cc b/cc/test/layer_tree_pixel_test.cc
index 966ac45..0324200 100644
--- a/cc/test/layer_tree_pixel_test.cc
+++ b/cc/test/layer_tree_pixel_test.cc
@@ -29,7 +29,8 @@ LayerTreePixelTest::LayerTreePixelTest()
LayerTreePixelTest::~LayerTreePixelTest() {}
-scoped_ptr<OutputSurface> LayerTreePixelTest::CreateOutputSurface() {
+scoped_ptr<OutputSurface> LayerTreePixelTest::CreateOutputSurface(
+ bool fallback) {
gfx::Vector2d viewport_offset(20, 10);
gfx::Size surface_expansion_size(40, 60);
scoped_ptr<PixelTestOutputSurface> output_surface;