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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h

Issue 473853002: Make it possible to test command buffer decoder functions with extension flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add a hunk to avoid functions jumping between numbered unittests Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h
index 3eb5acb7279fced3a929f0839a2cfe1da1e46b9a..f9fee2e7e69098f503ece6821ba11f0238367bef 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h
@@ -50,6 +50,11 @@ void GLES2DecoderTestBase::SetupInitStateExpectations() {
EXPECT_CALL(*gl_, Hint(GL_GENERATE_MIPMAP_HINT, GL_DONT_CARE))
.Times(1)
.RetiresOnSaturation();
+ if (group_->feature_info()->feature_flags().oes_standard_derivatives)
piman 2014/08/15 20:37:25 nit: could you add braces in the generator around
Kimmo Kinnunen 2014/08/20 05:59:05 Done.
+ EXPECT_CALL(*gl_,
+ Hint(GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES, GL_DONT_CARE))
+ .Times(1)
+ .RetiresOnSaturation();
EXPECT_CALL(*gl_, LineWidth(1.0f)).Times(1).RetiresOnSaturation();
EXPECT_CALL(*gl_, PixelStorei(GL_PACK_ALIGNMENT, 4))
.Times(1)

Powered by Google App Engine
This is Rietveld 408576698