Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(524)

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc

Issue 643373003: Add support for all blendmodes if we have GL_KHR_blend_equation_advanced. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing test Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include "gpu/command_buffer/common/gles2_cmd_format.h" 7 #include "gpu/command_buffer/common/gles2_cmd_format.h"
8 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 8 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
9 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h" 9 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 17 matching lines...) Expand all
28 init.request_depth = true; 28 init.request_depth = true;
29 init.bind_generates_resource = true; 29 init.bind_generates_resource = true;
30 init.extensions = "GL_NV_path_rendering"; 30 init.extensions = "GL_NV_path_rendering";
31 InitDecoder(init); 31 InitDecoder(init);
32 } 32 }
33 }; 33 };
34 34
35 INSTANTIATE_TEST_CASE_P(Service, 35 INSTANTIATE_TEST_CASE_P(Service,
36 GLES2DecoderTestWithCHROMIUMPathRendering, 36 GLES2DecoderTestWithCHROMIUMPathRendering,
37 ::testing::Bool()); 37 ::testing::Bool());
38
39
40 class GLES2DecoderTestWithBlendEquationAdvanced : public GLES2DecoderTest {
41 public:
42 GLES2DecoderTestWithBlendEquationAdvanced() {}
43 virtual void SetUp() override {
44 InitState init;
45 init.gl_version = "opengl 4.1";
46 init.has_alpha = true;
47 init.has_depth = true;
48 init.request_alpha = true;
49 init.request_depth = true;
50 init.bind_generates_resource = true;
51 init.extensions = "GL_NV_blend_equation_advanced";
52 InitDecoder(init);
53 }
54 };
55
56 INSTANTIATE_TEST_CASE_P(Service,
57 GLES2DecoderTestWithBlendEquationAdvanced,
58 ::testing::Bool());
59
38 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions_autog en.h" 60 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions_autog en.h"
39 61
40 } // namespace gles2 62 } // namespace gles2
41 } // namespace gpu 63 } // namespace gpu
42 64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698