diff options
author | tiago.vignatti <tiago.vignatti@intel.com> | 2015-04-13 15:41:46 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-13 22:42:15 +0000 |
commit | 825c082c407341474d2083c180d90c3480b4ebbd (patch) | |
tree | 5801c40b9a852089dc57cadce40fb43e28f0d6f2 /gpu/command_buffer/tests/gl_manager.cc | |
parent | bd61b195388b86db195a43894cdf8bc36628d006 (diff) | |
download | chromium_src-825c082c407341474d2083c180d90c3480b4ebbd.zip chromium_src-825c082c407341474d2083c180d90c3480b4ebbd.tar.gz chromium_src-825c082c407341474d2083c180d90c3480b4ebbd.tar.bz2 |
gl_tests: Use zero size gl surface for offscreen rendering
In GLX, most of the drivers can cope with both PBuffer and Surfaceless modes
for offscreen rendering. In EGL though, Intel driver only works with
Surfaceless.
This CL changes all hardware platforms to use Surfaceless by forcing a zero
size GL surface initialization. Ozone-GBM wasn't previously working because of
that but now works like a charm ("[ PASSED ] 94 tests").
This CL also fixes gpu_unittests under Ozone-GBM ("[ PASSED ] 2544 tests")
and cleans a bit the message loop creation, bringing it to run earlier in the
RunTestSuite.
BUG=471261
TEST=gl_tests, gpu_unittests on both GBM and X11 (Linux)
NOTRY=true
Review URL: https://codereview.chromium.org/1025523005
Cr-Commit-Position: refs/heads/master@{#324925}
Diffstat (limited to 'gpu/command_buffer/tests/gl_manager.cc')
-rw-r--r-- | gpu/command_buffer/tests/gl_manager.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/command_buffer/tests/gl_manager.cc b/gpu/command_buffer/tests/gl_manager.cc index e4ed83d..0196e3b 100644 --- a/gpu/command_buffer/tests/gl_manager.cc +++ b/gpu/command_buffer/tests/gl_manager.cc @@ -302,7 +302,7 @@ void GLManager::InitializeWithCommandLine(const GLManager::Options& options, decoder_->set_engine(gpu_scheduler_.get()); - surface_ = gfx::GLSurface::CreateOffscreenGLSurface(options.size); + surface_ = gfx::GLSurface::CreateOffscreenGLSurface(gfx::Size()); ASSERT_TRUE(surface_.get() != NULL) << "could not create offscreen surface"; if (base_context_) { |