diff options
author | kkinnunen <kkinnunen@nvidia.com> | 2015-09-01 23:05:36 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-02 06:06:14 +0000 |
commit | e3237bbb682e52f92d5bd18dcab672677e4e3bc4 (patch) | |
tree | 39e9b2acf549b3ae3cca0eea94308bbaf9eb73db /gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc | |
parent | bb28823098186a89a079a4c4a1b6b343638ba652 (diff) | |
download | chromium_src-e3237bbb682e52f92d5bd18dcab672677e4e3bc4.zip chromium_src-e3237bbb682e52f92d5bd18dcab672677e4e3bc4.tar.gz chromium_src-e3237bbb682e52f92d5bd18dcab672677e4e3bc4.tar.bz2 |
command_buffer: Implement EXT_multisample_compatibility
Implement EXT_multisample_compatibility OpenGL ES extension in command
buffer.
Skia needs this in order to enable and disable multisampling when
using GL path rendering.
BUG=506765
Review URL: https://codereview.chromium.org/1231673006
Cr-Commit-Position: refs/heads/master@{#346847}
Diffstat (limited to 'gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc')
-rw-r--r-- | gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc index 916f2aa..352b76a 100644 --- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc +++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc @@ -185,6 +185,27 @@ INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderTestWithBlendEquationAdvanced, ::testing::Bool()); +class GLES2DecoderTestWithEXTMultisampleCompatibility + : public GLES2DecoderTest { + public: + GLES2DecoderTestWithEXTMultisampleCompatibility() {} + + void SetUp() override { + InitState init; + init.gl_version = "opengl es 3.1"; + init.has_alpha = true; + init.has_depth = true; + init.request_alpha = true; + init.request_depth = true; + init.bind_generates_resource = true; + init.extensions = "GL_EXT_multisample_compatibility "; + InitDecoder(init); + } +}; +INSTANTIATE_TEST_CASE_P(Service, + GLES2DecoderTestWithEXTMultisampleCompatibility, + ::testing::Bool()); + TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering, GenDeletePaths) { static GLuint kFirstClientID = client_path_id_ + 88; static GLsizei kPathCount = 58; @@ -997,4 +1018,3 @@ TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering, } // namespace gles2 } // namespace gpu - |