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

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

Issue 1241433003: Rebind EGL context to flush driver caches. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 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 3075 matching lines...) Expand 10 before | Expand all | Expand 10 after
3086 struct Cmds { 3086 struct Cmds {
3087 cmds::DiscardBackbufferCHROMIUM cmd; 3087 cmds::DiscardBackbufferCHROMIUM cmd;
3088 }; 3088 };
3089 Cmds expected; 3089 Cmds expected;
3090 expected.cmd.Init(); 3090 expected.cmd.Init();
3091 3091
3092 gl_->DiscardBackbufferCHROMIUM(); 3092 gl_->DiscardBackbufferCHROMIUM();
3093 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 3093 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
3094 } 3094 }
3095 3095
3096 TEST_F(GLES2ImplementationTest, FlushDriverCachesCHROMIUM) {
3097 struct Cmds {
3098 cmds::FlushDriverCachesCHROMIUM cmd;
3099 };
3100 Cmds expected;
3101 expected.cmd.Init();
3102
3103 gl_->FlushDriverCachesCHROMIUM();
3104 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
3105 }
3106
3096 TEST_F(GLES2ImplementationTest, MatrixLoadfCHROMIUM) { 3107 TEST_F(GLES2ImplementationTest, MatrixLoadfCHROMIUM) {
3097 GLfloat data[16] = {0}; 3108 GLfloat data[16] = {0};
3098 struct Cmds { 3109 struct Cmds {
3099 cmds::MatrixLoadfCHROMIUMImmediate cmd; 3110 cmds::MatrixLoadfCHROMIUMImmediate cmd;
3100 GLfloat data[16]; 3111 GLfloat data[16];
3101 }; 3112 };
3102 3113
3103 for (int jj = 0; jj < 16; ++jj) { 3114 for (int jj = 0; jj < 16; ++jj) {
3104 data[jj] = static_cast<GLfloat>(jj); 3115 data[jj] = static_cast<GLfloat>(jj);
3105 } 3116 }
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
3245 struct Cmds { 3256 struct Cmds {
3246 cmds::StencilThenCoverStrokePathCHROMIUM cmd; 3257 cmds::StencilThenCoverStrokePathCHROMIUM cmd;
3247 }; 3258 };
3248 Cmds expected; 3259 Cmds expected;
3249 expected.cmd.Init(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); 3260 expected.cmd.Init(1, 2, 3, GL_CONVEX_HULL_CHROMIUM);
3250 3261
3251 gl_->StencilThenCoverStrokePathCHROMIUM(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); 3262 gl_->StencilThenCoverStrokePathCHROMIUM(1, 2, 3, GL_CONVEX_HULL_CHROMIUM);
3252 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 3263 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
3253 } 3264 }
3254 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 3265 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_impl_autogen.h ('k') | gpu/command_buffer/client/gles2_interface_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698