| 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 <limits.h> | 7 #include <limits.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 3111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3122 CheckTextureChangesMarkFBOAsNotComplete(true); | 3122 CheckTextureChangesMarkFBOAsNotComplete(true); |
| 3123 } | 3123 } |
| 3124 | 3124 |
| 3125 TEST_P(GLES2DecoderWithShaderTest, | 3125 TEST_P(GLES2DecoderWithShaderTest, |
| 3126 TextureChangesMarkFBOAsNotCompleteUnboundFBO) { | 3126 TextureChangesMarkFBOAsNotCompleteUnboundFBO) { |
| 3127 CheckTextureChangesMarkFBOAsNotComplete(false); | 3127 CheckTextureChangesMarkFBOAsNotComplete(false); |
| 3128 } | 3128 } |
| 3129 | 3129 |
| 3130 TEST_P(GLES2DecoderTest, CanChangeSurface) { | 3130 TEST_P(GLES2DecoderTest, CanChangeSurface) { |
| 3131 scoped_refptr<GLSurfaceMock> other_surface(new GLSurfaceMock); | 3131 scoped_refptr<GLSurfaceMock> other_surface(new GLSurfaceMock); |
| 3132 EXPECT_CALL(*other_surface.get(), GetBackingFrameBufferObject()) | 3132 EXPECT_CALL(*other_surface.get(), GetBackingFramebufferObject()) |
| 3133 .WillOnce(Return(7)); | 3133 .WillOnce(Return(7)); |
| 3134 EXPECT_CALL(*gl_, BindFramebufferEXT(GL_FRAMEBUFFER_EXT, 7)); | 3134 EXPECT_CALL(*gl_, BindFramebufferEXT(GL_FRAMEBUFFER_EXT, 7)); |
| 3135 | 3135 |
| 3136 decoder_->SetSurface(other_surface); | 3136 decoder_->SetSurface(other_surface); |
| 3137 } | 3137 } |
| 3138 | 3138 |
| 3139 TEST_P(GLES2DecoderTest, DrawBuffersEXTImmediateSuccceeds) { | 3139 TEST_P(GLES2DecoderTest, DrawBuffersEXTImmediateSuccceeds) { |
| 3140 const GLsizei count = 1; | 3140 const GLsizei count = 1; |
| 3141 const GLenum bufs[] = {GL_COLOR_ATTACHMENT0}; | 3141 const GLenum bufs[] = {GL_COLOR_ATTACHMENT0}; |
| 3142 DrawBuffersEXTImmediate& cmd = *GetImmediateAs<DrawBuffersEXTImmediate>(); | 3142 DrawBuffersEXTImmediate& cmd = *GetImmediateAs<DrawBuffersEXTImmediate>(); |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3624 EXPECT_TRUE(framebuffer->HasUnclearedAttachment( | 3624 EXPECT_TRUE(framebuffer->HasUnclearedAttachment( |
| 3625 GL_DEPTH_STENCIL_ATTACHMENT)); | 3625 GL_DEPTH_STENCIL_ATTACHMENT)); |
| 3626 } | 3626 } |
| 3627 | 3627 |
| 3628 // TODO(gman): PixelStorei | 3628 // TODO(gman): PixelStorei |
| 3629 | 3629 |
| 3630 // TODO(gman): SwapBuffers | 3630 // TODO(gman): SwapBuffers |
| 3631 | 3631 |
| 3632 } // namespace gles2 | 3632 } // namespace gles2 |
| 3633 } // namespace gpu | 3633 } // namespace gpu |
| OLD | NEW |