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

Unified Diff: gpu/command_buffer/client/gles2_implementation_unittest.cc

Issue 2648893002: Remove remaining traces of CreateGpuMemoryBufferImageCHROMIUM (Closed)
Patch Set: Rebase, but don't pull in extra changes... Created 3 years, 10 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/client/gles2_implementation_unittest.cc
diff --git a/gpu/command_buffer/client/gles2_implementation_unittest.cc b/gpu/command_buffer/client/gles2_implementation_unittest.cc
index fbf35d21917557e4b99cf265246251379a763c13..48484912b0d7e007bcb1b9fca45f72a5e80b9323 100644
--- a/gpu/command_buffer/client/gles2_implementation_unittest.cc
+++ b/gpu/command_buffer/client/gles2_implementation_unittest.cc
@@ -3203,8 +3203,7 @@ TEST_F(GLES2ImplementationTest, GetString) {
"foobar "
"GL_EXT_unpack_subimage "
"GL_CHROMIUM_map_sub "
- "GL_CHROMIUM_image "
- "GL_CHROMIUM_gpu_memory_buffer_image";
+ "GL_CHROMIUM_image";
const char kBad = 0x12;
struct Cmds {
cmd::SetBucketSize set_bucket_size1;
@@ -4609,43 +4608,6 @@ TEST_F(GLES2ImplementationTest, ReportLossReentrant) {
EXPECT_EQ(0, lost_count);
}
-TEST_F(GLES2ImplementationManualInitTest, LoseContextOnOOM) {
- ContextInitOptions init_options;
- init_options.lose_context_when_out_of_memory = true;
- ASSERT_TRUE(Initialize(init_options));
-
- struct Cmds {
- cmds::LoseContextCHROMIUM cmd;
- };
-
- GLsizei max = std::numeric_limits<GLsizei>::max();
- EXPECT_CALL(*gpu_control_, CreateGpuMemoryBufferImage(max, max, _, _))
- .WillOnce(Return(-1));
- gl_->CreateGpuMemoryBufferImageCHROMIUM(max, max, GL_RGBA,
- GL_READ_WRITE_CHROMIUM);
- // The context should be lost.
- Cmds expected;
- expected.cmd.Init(GL_GUILTY_CONTEXT_RESET_ARB, GL_UNKNOWN_CONTEXT_RESET_ARB);
- EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
-}
-
-TEST_F(GLES2ImplementationManualInitTest, NoLoseContextOnOOM) {
- ContextInitOptions init_options;
- ASSERT_TRUE(Initialize(init_options));
-
- struct Cmds {
- cmds::LoseContextCHROMIUM cmd;
- };
-
- GLsizei max = std::numeric_limits<GLsizei>::max();
- EXPECT_CALL(*gpu_control_, CreateGpuMemoryBufferImage(max, max, _, _))
- .WillOnce(Return(-1));
- gl_->CreateGpuMemoryBufferImageCHROMIUM(max, max, GL_RGBA,
- GL_READ_WRITE_CHROMIUM);
- // The context should not be lost.
- EXPECT_TRUE(NoCommandsWritten());
-}
-
TEST_F(GLES2ImplementationManualInitTest, FailInitOnBGRMismatch1) {
ContextInitOptions init_options;
init_options.bind_generates_resource_client = false;
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_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