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

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

Issue 1129943006: Implement StreamTexture::BindTexImage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 2810 matching lines...) Expand 10 before | Expand all | Expand 10 after
2821 cmds::ResizeCHROMIUM cmd; 2821 cmds::ResizeCHROMIUM cmd;
2822 }; 2822 };
2823 Cmds expected; 2823 Cmds expected;
2824 expected.cmd.Init(1, 2, 3); 2824 expected.cmd.Init(1, 2, 3);
2825 2825
2826 gl_->ResizeCHROMIUM(1, 2, 3); 2826 gl_->ResizeCHROMIUM(1, 2, 3);
2827 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2827 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2828 } 2828 }
2829 // TODO(zmo): Implement unit test for GetRequestableExtensionsCHROMIUM 2829 // TODO(zmo): Implement unit test for GetRequestableExtensionsCHROMIUM
2830 // TODO(zmo): Implement unit test for CreateStreamTextureCHROMIUM 2830 // TODO(zmo): Implement unit test for CreateStreamTextureCHROMIUM
2831 // TODO(zmo): Implement unit test for CreateStreamTextureImageCHROMIUM
2831 // TODO(zmo): Implement unit test for GetTranslatedShaderSourceANGLE 2832 // TODO(zmo): Implement unit test for GetTranslatedShaderSourceANGLE
2832 2833
2833 TEST_F(GLES2ImplementationTest, TexImageIOSurface2DCHROMIUM) { 2834 TEST_F(GLES2ImplementationTest, TexImageIOSurface2DCHROMIUM) {
2834 struct Cmds { 2835 struct Cmds {
2835 cmds::TexImageIOSurface2DCHROMIUM cmd; 2836 cmds::TexImageIOSurface2DCHROMIUM cmd;
2836 }; 2837 };
2837 Cmds expected; 2838 Cmds expected;
2838 expected.cmd.Init(GL_TEXTURE_2D, 2, 3, 4, 5); 2839 expected.cmd.Init(GL_TEXTURE_2D, 2, 3, 4, 5);
2839 2840
2840 gl_->TexImageIOSurface2DCHROMIUM(GL_TEXTURE_2D, 2, 3, 4, 5); 2841 gl_->TexImageIOSurface2DCHROMIUM(GL_TEXTURE_2D, 2, 3, 4, 5);
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
3257 struct Cmds { 3258 struct Cmds {
3258 cmds::StencilThenCoverStrokePathCHROMIUM cmd; 3259 cmds::StencilThenCoverStrokePathCHROMIUM cmd;
3259 }; 3260 };
3260 Cmds expected; 3261 Cmds expected;
3261 expected.cmd.Init(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); 3262 expected.cmd.Init(1, 2, 3, GL_CONVEX_HULL_CHROMIUM);
3262 3263
3263 gl_->StencilThenCoverStrokePathCHROMIUM(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); 3264 gl_->StencilThenCoverStrokePathCHROMIUM(1, 2, 3, GL_CONVEX_HULL_CHROMIUM);
3264 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 3265 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
3265 } 3266 }
3266 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 3267 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698