OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/atomicops.h" | 7 #include "base/atomicops.h" |
8 #include "gpu/command_buffer/common/gl_mock.h" | 8 #include "gpu/command_buffer/common/gl_mock.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 3275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3286 color_cmd.Init(0.1f, 0.2f, 0.3f, 0.4f); | 3286 color_cmd.Init(0.1f, 0.2f, 0.3f, 0.4f); |
3287 color_mask_cmd.Init(0, 1, 0, 1); | 3287 color_mask_cmd.Init(0, 1, 0, 1); |
3288 enable_cmd.Init(GL_SCISSOR_TEST); | 3288 enable_cmd.Init(GL_SCISSOR_TEST); |
3289 cmd.Init( | 3289 cmd.Init( |
3290 GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, | 3290 GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, |
3291 client_renderbuffer_id_); | 3291 client_renderbuffer_id_); |
3292 InSequence sequence; | 3292 InSequence sequence; |
3293 EXPECT_CALL(*gl_, ClearColor(0.1f, 0.2f, 0.3f, 0.4f)) | 3293 EXPECT_CALL(*gl_, ClearColor(0.1f, 0.2f, 0.3f, 0.4f)) |
3294 .Times(1) | 3294 .Times(1) |
3295 .RetiresOnSaturation(); | 3295 .RetiresOnSaturation(); |
3296 EXPECT_CALL(*gl_, Enable(GL_SCISSOR_TEST)) | |
3297 .Times(1) | |
3298 .RetiresOnSaturation(); | |
3299 EXPECT_CALL(*gl_, GetError()) | 3296 EXPECT_CALL(*gl_, GetError()) |
3300 .WillOnce(Return(GL_NO_ERROR)) | 3297 .WillOnce(Return(GL_NO_ERROR)) |
3301 .RetiresOnSaturation(); | 3298 .RetiresOnSaturation(); |
3302 EXPECT_CALL(*gl_, FramebufferRenderbufferEXT( | 3299 EXPECT_CALL(*gl_, FramebufferRenderbufferEXT( |
3303 GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, | 3300 GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, |
3304 kServiceRenderbufferId)) | 3301 kServiceRenderbufferId)) |
3305 .Times(1) | 3302 .Times(1) |
3306 .RetiresOnSaturation(); | 3303 .RetiresOnSaturation(); |
3307 EXPECT_CALL(*gl_, GetError()) | 3304 EXPECT_CALL(*gl_, GetError()) |
3308 .WillOnce(Return(GL_NO_ERROR)) | 3305 .WillOnce(Return(GL_NO_ERROR)) |
(...skipping 4609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7918 // TODO(gman): TexImage2DImmediate | 7915 // TODO(gman): TexImage2DImmediate |
7919 | 7916 |
7920 // TODO(gman): TexSubImage2DImmediate | 7917 // TODO(gman): TexSubImage2DImmediate |
7921 | 7918 |
7922 // TODO(gman): UseProgram | 7919 // TODO(gman): UseProgram |
7923 | 7920 |
7924 // TODO(gman): SwapBuffers | 7921 // TODO(gman): SwapBuffers |
7925 | 7922 |
7926 } // namespace gles2 | 7923 } // namespace gles2 |
7927 } // namespace gpu | 7924 } // namespace gpu |
OLD | NEW |