| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 namespace gpu { | 51 namespace gpu { |
| 52 namespace gles2 { | 52 namespace gles2 { |
| 53 | 53 |
| 54 using namespace cmds; | 54 using namespace cmds; |
| 55 | 55 |
| 56 class GLES2DecoderTestWithExtensionsOnGLES2 : public GLES2DecoderTest { | 56 class GLES2DecoderTestWithExtensionsOnGLES2 : public GLES2DecoderTest { |
| 57 public: | 57 public: |
| 58 GLES2DecoderTestWithExtensionsOnGLES2() {} | 58 GLES2DecoderTestWithExtensionsOnGLES2() {} |
| 59 | 59 |
| 60 virtual void SetUp() {} | 60 void SetUp() override {} |
| 61 void Init(const char* extensions) { | 61 void Init(const char* extensions) { |
| 62 InitState init; | 62 InitState init; |
| 63 init.extensions = extensions; | 63 init.extensions = extensions; |
| 64 init.gl_version = "opengl es 2.0"; | 64 init.gl_version = "opengl es 2.0"; |
| 65 init.has_alpha = true; | 65 init.has_alpha = true; |
| 66 init.has_depth = true; | 66 init.has_depth = true; |
| 67 init.request_alpha = true; | 67 init.request_alpha = true; |
| 68 init.request_depth = true; | 68 init.request_depth = true; |
| 69 InitDecoder(init); | 69 InitDecoder(init); |
| 70 } | 70 } |
| (...skipping 2323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2394 EXPECT_EQ(1, result->GetNumResults()); | 2394 EXPECT_EQ(1, result->GetNumResults()); |
| 2395 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 2395 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 2396 } | 2396 } |
| 2397 | 2397 |
| 2398 // TODO(gman): PixelStorei | 2398 // TODO(gman): PixelStorei |
| 2399 | 2399 |
| 2400 // TODO(gman): SwapBuffers | 2400 // TODO(gman): SwapBuffers |
| 2401 | 2401 |
| 2402 } // namespace gles2 | 2402 } // namespace gles2 |
| 2403 } // namespace gpu | 2403 } // namespace gpu |
| OLD | NEW |