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

Issue 2443553002: Create correct GLES3 context for GLES3 unittest (Closed)

Created:
4 years, 2 months ago by qiankun
Modified:
4 years, 1 month ago
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create correct GLES3 context for GLES3 unittest Also, we should enable --enable-unsafe-es3-apis for gles3 tests. BUG=429053 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Patch Set 1 #

Total comments: 12

Patch Set 2 : remove context_type since it is equivalent to enable_es3 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -83 lines) Patch
M gpu/command_buffer/service/feature_info_unittest.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/framebuffer_manager_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc View 59 chunks +71 lines, -62 lines 2 comments Download
M gpu/command_buffer/service/program_manager_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/renderbuffer_manager_unittest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M gpu/command_buffer/service/test_helper.h View 1 1 chunk +0 lines, -1 line 1 comment Download
M gpu/command_buffer/service/test_helper.cc View 1 6 chunks +5 lines, -7 lines 0 comments Download
M gpu/command_buffer/service/texture_manager_unittest.cc View 1 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 27 (5 generated)
qiankun
PTAL. https://codereview.chromium.org/2443553002/diff/40001/gpu/command_buffer/service/test_helper.cc File gpu/command_buffer/service/test_helper.cc (right): https://codereview.chromium.org/2443553002/diff/40001/gpu/command_buffer/service/test_helper.cc#newcode578 gpu/command_buffer/service/test_helper.cc:578: GLenum status_rgba = GL_FRAMEBUFFER_COMPLETE; See the actual executed ...
4 years, 2 months ago (2016-10-21 10:51:04 UTC) #5
Zhenyao Mo
Thanks for cleaning this up. I do have some extra suggestions. https://codereview.chromium.org/2443553002/diff/40001/gpu/command_buffer/service/test_helper.cc File gpu/command_buffer/service/test_helper.cc (right): ...
4 years, 2 months ago (2016-10-21 17:51:20 UTC) #6
qiankun
https://codereview.chromium.org/2443553002/diff/40001/gpu/command_buffer/service/test_helper.cc File gpu/command_buffer/service/test_helper.cc (right): https://codereview.chromium.org/2443553002/diff/40001/gpu/command_buffer/service/test_helper.cc#newcode593 gpu/command_buffer/service/test_helper.cc:593: if (status_rgba == GL_FRAMEBUFFER_COMPLETE) { On 2016/10/21 17:51:20, Zhenyao ...
4 years, 2 months ago (2016-10-22 11:47:13 UTC) #7
qiankun
On 2016/10/22 11:47:13, qiankun wrote: > https://codereview.chromium.org/2443553002/diff/40001/gpu/command_buffer/service/test_helper.cc > File gpu/command_buffer/service/test_helper.cc (right): > > https://codereview.chromium.org/2443553002/diff/40001/gpu/command_buffer/service/test_helper.cc#newcode593 > ...
4 years, 1 month ago (2016-10-25 14:30:08 UTC) #8
Zhenyao Mo
https://codereview.chromium.org/2443553002/diff/40001/gpu/command_buffer/service/test_helper.cc File gpu/command_buffer/service/test_helper.cc (right): https://codereview.chromium.org/2443553002/diff/40001/gpu/command_buffer/service/test_helper.cc#newcode593 gpu/command_buffer/service/test_helper.cc:593: if (status_rgba == GL_FRAMEBUFFER_COMPLETE) { On 2016/10/22 11:47:13, qiankun ...
4 years, 1 month ago (2016-10-25 22:41:14 UTC) #9
qiankun
https://codereview.chromium.org/2443553002/diff/40001/gpu/command_buffer/service/texture_manager_unittest.cc File gpu/command_buffer/service/texture_manager_unittest.cc (right): https://codereview.chromium.org/2443553002/diff/40001/gpu/command_buffer/service/texture_manager_unittest.cc#newcode113 gpu/command_buffer/service/texture_manager_unittest.cc:113: enable_es3 ? CONTEXT_TYPE_OPENGLES3 : feature_info_->context_type(), On 2016/10/21 17:51:20, Zhenyao ...
4 years, 1 month ago (2016-10-25 23:08:13 UTC) #10
Zhenyao Mo
On 2016/10/25 23:08:13, qiankun wrote: > https://codereview.chromium.org/2443553002/diff/40001/gpu/command_buffer/service/texture_manager_unittest.cc > File gpu/command_buffer/service/texture_manager_unittest.cc (right): > > https://codereview.chromium.org/2443553002/diff/40001/gpu/command_buffer/service/texture_manager_unittest.cc#newcode113 > ...
4 years, 1 month ago (2016-10-25 23:44:18 UTC) #11
qiankun
On 2016/10/25 23:44:18, Zhenyao Mo wrote: > On 2016/10/25 23:08:13, qiankun wrote: > > > ...
4 years, 1 month ago (2016-10-25 23:50:51 UTC) #12
Zhenyao Mo
https://codereview.chromium.org/2443553002/diff/40001/gpu/command_buffer/service/texture_manager_unittest.cc File gpu/command_buffer/service/texture_manager_unittest.cc (right): https://codereview.chromium.org/2443553002/diff/40001/gpu/command_buffer/service/texture_manager_unittest.cc#newcode113 gpu/command_buffer/service/texture_manager_unittest.cc:113: enable_es3 ? CONTEXT_TYPE_OPENGLES3 : feature_info_->context_type(), On 2016/10/25 23:08:13, qiankun ...
4 years, 1 month ago (2016-10-26 00:41:06 UTC) #13
qiankun
https://codereview.chromium.org/2443553002/diff/40001/gpu/command_buffer/service/texture_manager_unittest.cc File gpu/command_buffer/service/texture_manager_unittest.cc (right): https://codereview.chromium.org/2443553002/diff/40001/gpu/command_buffer/service/texture_manager_unittest.cc#newcode113 gpu/command_buffer/service/texture_manager_unittest.cc:113: enable_es3 ? CONTEXT_TYPE_OPENGLES3 : feature_info_->context_type(), On 2016/10/26 00:41:06, Zhenyao ...
4 years, 1 month ago (2016-10-28 14:31:21 UTC) #14
yunchao
The fix is not good, see my comments inline. Thanks a lot! https://codereview.chromium.org/2443553002/diff/40001/gpu/command_buffer/service/texture_manager_unittest.cc File gpu/command_buffer/service/texture_manager_unittest.cc ...
4 years, 1 month ago (2016-10-31 15:18:05 UTC) #15
qiankun
Thank you all for your review. If the code doesn't look good to you, I ...
4 years, 1 month ago (2016-10-31 15:51:53 UTC) #16
qiankun
https://codereview.chromium.org/2443553002/diff/60001/gpu/command_buffer/service/test_helper.h File gpu/command_buffer/service/test_helper.h (left): https://codereview.chromium.org/2443553002/diff/60001/gpu/command_buffer/service/test_helper.h#oldcode119 gpu/command_buffer/service/test_helper.h:119: ContextType context_type, context_type was removed from argument list. This ...
4 years, 1 month ago (2016-11-01 15:12:10 UTC) #17
Zhenyao Mo
https://codereview.chromium.org/2443553002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc File gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc (right): https://codereview.chromium.org/2443553002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc#newcode4082 gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc:4082: command_line.AppendSwitch(switches::kEnableUnsafeES3APIs); Qiankun: sorry about this, but we are in ...
4 years, 1 month ago (2016-11-01 22:28:45 UTC) #19
qiankun
https://codereview.chromium.org/2443553002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc File gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc (right): https://codereview.chromium.org/2443553002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc#newcode4082 gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc:4082: command_line.AppendSwitch(switches::kEnableUnsafeES3APIs); On 2016/11/01 22:28:45, Zhenyao Mo wrote: > Qiankun: ...
4 years, 1 month ago (2016-11-02 01:43:14 UTC) #20
Kai Ninomiya
On 2016/11/02 01:43:14, qiankun wrote: > https://codereview.chromium.org/2443553002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc > File gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc (right): > > https://codereview.chromium.org/2443553002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc#newcode4082 > ...
4 years, 1 month ago (2016-11-02 03:00:25 UTC) #21
qiankun
On 2016/11/02 03:00:25, Kai Ninomiya wrote: > On 2016/11/02 01:43:14, qiankun wrote: > > > ...
4 years, 1 month ago (2016-11-02 03:15:26 UTC) #22
chromium-reviews
Yes, I'm trying to remove it there too. On Tue, Nov 1, 2016, 8:15 PM ...
4 years, 1 month ago (2016-11-02 03:25:29 UTC) #23
Kai Ninomiya
> On 2016/11/02 03:15:26, qiankun wrote: > > Glad to know your CL will be ...
4 years, 1 month ago (2016-11-02 20:35:15 UTC) #24
Kai Ninomiya
On 2016/11/02 20:35:15, Kai Ninomiya wrote: > > On 2016/11/02 03:15:26, qiankun wrote: > > ...
4 years, 1 month ago (2016-11-03 02:05:09 UTC) #25
Kai Ninomiya
On 2016/11/03 02:05:09, Kai Ninomiya wrote: > On 2016/11/02 20:35:15, Kai Ninomiya wrote: > > ...
4 years, 1 month ago (2016-11-05 19:48:10 UTC) #26
qiankun
4 years, 1 month ago (2016-11-06 12:33:35 UTC) #27
On 2016/11/05 19:48:10, Kai Ninomiya wrote:
> On 2016/11/03 02:05:09, Kai Ninomiya wrote:
> > On 2016/11/02 20:35:15, Kai Ninomiya wrote:
> > > > On 2016/11/02 03:15:26, qiankun wrote:
> > > > > Glad to know your CL will be ready soon!
> > > > > Do you intend to also remove enable_es3 from SetupFeatureInfo(const
> char*
> > > > > gl_extensions, const char* gl_version, bool enable_es3)? 
> > > > > From my side, both context_type and enable_es3 are OK to pass to
> > > > > SetupFeatureInfoInitExpectationsWithGLVersion.
> > > > 
> > > > Yes, I'm trying to remove it there too.
> > > 
> > > I decided I will leave enable_es3 for SharedTextureTest::SetupFeatureInfo
in
> > my
> > > current CL. I may switch it to a ContextType afterward in a new CL.
> > 
> > The first change has landed:
> > 
> > https://codereview.chromium.org/2471853002/
> > 
> > And second one is almost there:
> > 
> > https://codereview.chromium.org/2471913003/
> 
> Most of this CL was superseded by the above CLs, so it should probably be
> closed. But aside from the NULL/nullptr change, there is one change that's
> different from what I did: 
>     if (status_rgba == GL_FRAMEBUFFER_COMPLETE) {
> I skipped that check entirely.
> 
> If this matches the implementation code better, as qiankun@ suggested, it
might
> be good to add. zmo@, what do you think?
> 
> I would also add this assertion to make the intention clearer:
>     ASSERT_TRUE(status_rgba == GL_FRAMEBUFFER_COMPLETE);
>     if (status_rgba == GL_FRAMEBUFFER_COMPLETE) {

Kai, thanks for your work. This CL can be closed now. I landed the issue you
mentioned in https://codereview.chromium.org/2474593002/.

Powered by Google App Engine
This is Rietveld 408576698