OLD | NEW |
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 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
(...skipping 2939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2950 .Times(1) | 2950 .Times(1) |
2951 .RetiresOnSaturation(); | 2951 .RetiresOnSaturation(); |
2952 EXPECT_CALL(*gl_, GetError()) | 2952 EXPECT_CALL(*gl_, GetError()) |
2953 .WillOnce(Return(GL_NO_ERROR)) | 2953 .WillOnce(Return(GL_NO_ERROR)) |
2954 .WillOnce(Return(GL_NO_ERROR)) | 2954 .WillOnce(Return(GL_NO_ERROR)) |
2955 .RetiresOnSaturation(); | 2955 .RetiresOnSaturation(); |
2956 FramebufferTexture2D fbtex_cmd; | 2956 FramebufferTexture2D fbtex_cmd; |
2957 fbtex_cmd.Init(GL_FRAMEBUFFER, | 2957 fbtex_cmd.Init(GL_FRAMEBUFFER, |
2958 GL_COLOR_ATTACHMENT0, | 2958 GL_COLOR_ATTACHMENT0, |
2959 GL_TEXTURE_2D, | 2959 GL_TEXTURE_2D, |
2960 client_texture_id_); | 2960 client_texture_id_, |
| 2961 0); |
2961 EXPECT_EQ(error::kNoError, ExecuteCmd(fbtex_cmd)); | 2962 EXPECT_EQ(error::kNoError, ExecuteCmd(fbtex_cmd)); |
2962 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 2963 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
2963 | 2964 |
2964 EXPECT_CALL(*image.get(), Destroy(true)).Times(1).RetiresOnSaturation(); | 2965 EXPECT_CALL(*image.get(), Destroy(true)).Times(1).RetiresOnSaturation(); |
2965 image = nullptr; | 2966 image = nullptr; |
2966 } | 2967 } |
2967 | 2968 |
2968 TEST_P(GLES2DecoderManualInitTest, DrawWithGLImageExternal) { | 2969 TEST_P(GLES2DecoderManualInitTest, DrawWithGLImageExternal) { |
2969 InitState init; | 2970 InitState init; |
2970 init.extensions = "GL_OES_EGL_image_external"; | 2971 init.extensions = "GL_OES_EGL_image_external"; |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3363 // TODO(gman): CompressedTexSubImage2DImmediate | 3364 // TODO(gman): CompressedTexSubImage2DImmediate |
3364 | 3365 |
3365 // TODO(gman): TexImage2D | 3366 // TODO(gman): TexImage2D |
3366 | 3367 |
3367 // TODO(gman): TexImage2DImmediate | 3368 // TODO(gman): TexImage2DImmediate |
3368 | 3369 |
3369 // TODO(gman): TexSubImage2DImmediate | 3370 // TODO(gman): TexSubImage2DImmediate |
3370 | 3371 |
3371 } // namespace gles2 | 3372 } // namespace gles2 |
3372 } // namespace gpu | 3373 } // namespace gpu |
OLD | NEW |