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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc

Issue 2268993003: [Command Buffer] Coding style: FrameBuffer -> Framebuffer to be comformant (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code rebase Created 4 years, 4 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 #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
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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc ('k') | gpu/command_buffer/service/gles2_cmd_validation_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698