| 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 <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| (...skipping 2113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2124 DoFramebufferTexture2D(GL_FRAMEBUFFER, | 2124 DoFramebufferTexture2D(GL_FRAMEBUFFER, |
| 2125 GL_COLOR_ATTACHMENT0, | 2125 GL_COLOR_ATTACHMENT0, |
| 2126 GL_TEXTURE_2D, | 2126 GL_TEXTURE_2D, |
| 2127 kFBOClientTextureId, | 2127 kFBOClientTextureId, |
| 2128 kFBOServiceTextureId, | 2128 kFBOServiceTextureId, |
| 2129 0, | 2129 0, |
| 2130 GL_NO_ERROR); | 2130 GL_NO_ERROR); |
| 2131 | 2131 |
| 2132 DoBindRenderbuffer( | 2132 DoBindRenderbuffer( |
| 2133 GL_RENDERBUFFER, client_renderbuffer_id_, kServiceRenderbufferId); | 2133 GL_RENDERBUFFER, client_renderbuffer_id_, kServiceRenderbufferId); |
| 2134 DoBindFramebuffer( | |
| 2135 GL_FRAMEBUFFER, client_framebuffer_id_, kServiceFramebufferId); | |
| 2136 DoRenderbufferStorage(GL_RENDERBUFFER, | 2134 DoRenderbufferStorage(GL_RENDERBUFFER, |
| 2137 GL_DEPTH_COMPONENT16, | 2135 GL_DEPTH_COMPONENT16, |
| 2138 GL_DEPTH_COMPONENT, | 2136 GL_DEPTH_COMPONENT, |
| 2139 1, | 2137 1, |
| 2140 1, | 2138 1, |
| 2141 GL_NO_ERROR); | 2139 GL_NO_ERROR); |
| 2142 DoFramebufferRenderbuffer(GL_FRAMEBUFFER, | 2140 DoFramebufferRenderbuffer(GL_FRAMEBUFFER, |
| 2143 GL_DEPTH_ATTACHMENT, | 2141 GL_DEPTH_ATTACHMENT, |
| 2144 GL_RENDERBUFFER, | 2142 GL_RENDERBUFFER, |
| 2145 client_renderbuffer_id_, | 2143 client_renderbuffer_id_, |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2322 .Times(1) | 2320 .Times(1) |
| 2323 .RetiresOnSaturation(); | 2321 .RetiresOnSaturation(); |
| 2324 DrawArrays cmd; | 2322 DrawArrays cmd; |
| 2325 cmd.Init(GL_TRIANGLES, 0, kNumVertices); | 2323 cmd.Init(GL_TRIANGLES, 0, kNumVertices); |
| 2326 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 2324 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 2327 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 2325 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 2328 } | 2326 } |
| 2329 | 2327 |
| 2330 } // namespace gles2 | 2328 } // namespace gles2 |
| 2331 } // namespace gpu | 2329 } // namespace gpu |
| OLD | NEW |