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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_format_test_autogen.h

Issue 7890046: Command to mark surface inactive, so gpu process can release resources. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Flush only on hide Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // DO NOT EDIT! 7 // DO NOT EDIT!
8 8
9 // This file contains unit tests for gles2 commmands 9 // This file contains unit tests for gles2 commmands
10 // It is included by gles2_cmd_format_test.cc 10 // It is included by gles2_cmd_format_test.cc
(...skipping 3541 matching lines...) Expand 10 before | Expand all | Expand 10 after
3552 static_cast<uint32>(12)); 3552 static_cast<uint32>(12));
3553 EXPECT_EQ(static_cast<uint32>(GetTranslatedShaderSourceANGLE::kCmdId), 3553 EXPECT_EQ(static_cast<uint32>(GetTranslatedShaderSourceANGLE::kCmdId),
3554 cmd.header.command); 3554 cmd.header.command);
3555 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); 3555 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
3556 EXPECT_EQ(static_cast<GLuint>(11), cmd.shader); 3556 EXPECT_EQ(static_cast<GLuint>(11), cmd.shader);
3557 EXPECT_EQ(static_cast<uint32>(12), cmd.bucket_id); 3557 EXPECT_EQ(static_cast<uint32>(12), cmd.bucket_id);
3558 CheckBytesWrittenMatchesExpectedSize( 3558 CheckBytesWrittenMatchesExpectedSize(
3559 next_cmd, sizeof(cmd)); 3559 next_cmd, sizeof(cmd));
3560 } 3560 }
3561 3561
3562 TEST_F(GLES2FormatTest, SetSurfaceVisibleCHROMIUM) {
3563 SetSurfaceVisibleCHROMIUM& cmd = *GetBufferAs<SetSurfaceVisibleCHROMIUM>();
3564 void* next_cmd = cmd.Set(
3565 &cmd,
3566 static_cast<GLboolean>(11));
3567 EXPECT_EQ(static_cast<uint32>(SetSurfaceVisibleCHROMIUM::kCmdId),
3568 cmd.header.command);
3569 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
3570 EXPECT_EQ(static_cast<GLboolean>(11), cmd.visible);
3571 CheckBytesWrittenMatchesExpectedSize(
3572 next_cmd, sizeof(cmd));
3573 }
3574
3562 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ 3575 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_
3563 3576
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698