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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation_unittest_autogen.h

Issue 1894313002: Removed implementation of CHROMIUM_subscribe_uniform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed a couple more mus/ references Created 4 years, 8 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 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
(...skipping 2738 matching lines...) Expand 10 before | Expand all | Expand 10 after
2749 struct Cmds { 2749 struct Cmds {
2750 cmds::VertexAttribDivisorANGLE cmd; 2750 cmds::VertexAttribDivisorANGLE cmd;
2751 }; 2751 };
2752 Cmds expected; 2752 Cmds expected;
2753 expected.cmd.Init(1, 2); 2753 expected.cmd.Init(1, 2);
2754 2754
2755 gl_->VertexAttribDivisorANGLE(1, 2); 2755 gl_->VertexAttribDivisorANGLE(1, 2);
2756 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2756 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2757 } 2757 }
2758 2758
2759 TEST_F(GLES2ImplementationTest, GenValuebuffersCHROMIUM) {
2760 GLuint ids[2] = {
2761 0,
2762 };
2763 struct Cmds {
2764 cmds::GenValuebuffersCHROMIUMImmediate gen;
2765 GLuint data[2];
2766 };
2767 Cmds expected;
2768 expected.gen.Init(arraysize(ids), &ids[0]);
2769 expected.data[0] = kValuebuffersStartId;
2770 expected.data[1] = kValuebuffersStartId + 1;
2771 gl_->GenValuebuffersCHROMIUM(arraysize(ids), &ids[0]);
2772 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2773 EXPECT_EQ(kValuebuffersStartId, ids[0]);
2774 EXPECT_EQ(kValuebuffersStartId + 1, ids[1]);
2775 }
2776
2777 TEST_F(GLES2ImplementationTest, DeleteValuebuffersCHROMIUM) {
2778 GLuint ids[2] = {kValuebuffersStartId, kValuebuffersStartId + 1};
2779 struct Cmds {
2780 cmds::DeleteValuebuffersCHROMIUMImmediate del;
2781 GLuint data[2];
2782 };
2783 Cmds expected;
2784 expected.del.Init(arraysize(ids), &ids[0]);
2785 expected.data[0] = kValuebuffersStartId;
2786 expected.data[1] = kValuebuffersStartId + 1;
2787 gl_->DeleteValuebuffersCHROMIUM(arraysize(ids), &ids[0]);
2788 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2789 }
2790
2791 TEST_F(GLES2ImplementationTest, IsValuebufferCHROMIUM) {
2792 struct Cmds {
2793 cmds::IsValuebufferCHROMIUM cmd;
2794 };
2795
2796 Cmds expected;
2797 ExpectedMemoryInfo result1 =
2798 GetExpectedResultMemory(sizeof(cmds::IsValuebufferCHROMIUM::Result));
2799 expected.cmd.Init(1, result1.id, result1.offset);
2800
2801 EXPECT_CALL(*command_buffer(), OnFlush())
2802 .WillOnce(SetMemory(result1.ptr, uint32_t(GL_TRUE)))
2803 .RetiresOnSaturation();
2804
2805 GLboolean result = gl_->IsValuebufferCHROMIUM(1);
2806 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2807 EXPECT_TRUE(result);
2808 }
2809
2810 TEST_F(GLES2ImplementationTest, BindValuebufferCHROMIUM) {
2811 struct Cmds {
2812 cmds::BindValuebufferCHROMIUM cmd;
2813 };
2814 Cmds expected;
2815 expected.cmd.Init(GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM, 2);
2816
2817 gl_->BindValuebufferCHROMIUM(GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM, 2);
2818 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2819 ClearCommands();
2820 gl_->BindValuebufferCHROMIUM(GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM, 2);
2821 EXPECT_TRUE(NoCommandsWritten());
2822 }
2823
2824 TEST_F(GLES2ImplementationTest, SubscribeValueCHROMIUM) {
2825 struct Cmds {
2826 cmds::SubscribeValueCHROMIUM cmd;
2827 };
2828 Cmds expected;
2829 expected.cmd.Init(GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM,
2830 GL_MOUSE_POSITION_CHROMIUM);
2831
2832 gl_->SubscribeValueCHROMIUM(GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM,
2833 GL_MOUSE_POSITION_CHROMIUM);
2834 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2835 }
2836
2837 TEST_F(GLES2ImplementationTest, PopulateSubscribedValuesCHROMIUM) {
2838 struct Cmds {
2839 cmds::PopulateSubscribedValuesCHROMIUM cmd;
2840 };
2841 Cmds expected;
2842 expected.cmd.Init(GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM);
2843
2844 gl_->PopulateSubscribedValuesCHROMIUM(GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM);
2845 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2846 }
2847
2848 TEST_F(GLES2ImplementationTest, UniformValuebufferCHROMIUM) {
2849 struct Cmds {
2850 cmds::UniformValuebufferCHROMIUM cmd;
2851 };
2852 Cmds expected;
2853 expected.cmd.Init(1, GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM,
2854 GL_MOUSE_POSITION_CHROMIUM);
2855
2856 gl_->UniformValuebufferCHROMIUM(1, GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM,
2857 GL_MOUSE_POSITION_CHROMIUM);
2858 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2859 }
2860
2861 TEST_F(GLES2ImplementationTest, BindTexImage2DCHROMIUM) { 2759 TEST_F(GLES2ImplementationTest, BindTexImage2DCHROMIUM) {
2862 struct Cmds { 2760 struct Cmds {
2863 cmds::BindTexImage2DCHROMIUM cmd; 2761 cmds::BindTexImage2DCHROMIUM cmd;
2864 }; 2762 };
2865 Cmds expected; 2763 Cmds expected;
2866 expected.cmd.Init(GL_TEXTURE_2D, 2); 2764 expected.cmd.Init(GL_TEXTURE_2D, 2);
2867 2765
2868 gl_->BindTexImage2DCHROMIUM(GL_TEXTURE_2D, 2); 2766 gl_->BindTexImage2DCHROMIUM(GL_TEXTURE_2D, 2);
2869 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2767 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2870 } 2768 }
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
3111 struct Cmds { 3009 struct Cmds {
3112 cmds::CoverageModulationCHROMIUM cmd; 3010 cmds::CoverageModulationCHROMIUM cmd;
3113 }; 3011 };
3114 Cmds expected; 3012 Cmds expected;
3115 expected.cmd.Init(GL_RGB); 3013 expected.cmd.Init(GL_RGB);
3116 3014
3117 gl_->CoverageModulationCHROMIUM(GL_RGB); 3015 gl_->CoverageModulationCHROMIUM(GL_RGB);
3118 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 3016 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
3119 } 3017 }
3120 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 3018 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_unittest.cc ('k') | gpu/command_buffer/client/gles2_interface_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698