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 13 matching lines...) Expand all Loading... |
24 #include "gpu/config/gpu_switches.h" | 24 #include "gpu/config/gpu_switches.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 #include "ui/gl/gl_implementation.h" | 26 #include "ui/gl/gl_implementation.h" |
27 #include "ui/gl/gl_mock.h" | 27 #include "ui/gl/gl_mock.h" |
28 #include "ui/gl/gl_surface_stub.h" | 28 #include "ui/gl/gl_surface_stub.h" |
29 | 29 |
30 #if !defined(GL_DEPTH24_STENCIL8) | 30 #if !defined(GL_DEPTH24_STENCIL8) |
31 #define GL_DEPTH24_STENCIL8 0x88F0 | 31 #define GL_DEPTH24_STENCIL8 0x88F0 |
32 #endif | 32 #endif |
33 | 33 |
34 using ::gfx::MockGLInterface; | 34 using ::gl::MockGLInterface; |
35 using ::testing::_; | 35 using ::testing::_; |
36 using ::testing::DoAll; | 36 using ::testing::DoAll; |
37 using ::testing::InSequence; | 37 using ::testing::InSequence; |
38 using ::testing::Invoke; | 38 using ::testing::Invoke; |
39 using ::testing::MatcherCast; | 39 using ::testing::MatcherCast; |
40 using ::testing::Mock; | 40 using ::testing::Mock; |
41 using ::testing::Pointee; | 41 using ::testing::Pointee; |
42 using ::testing::Return; | 42 using ::testing::Return; |
43 using ::testing::SaveArg; | 43 using ::testing::SaveArg; |
44 using ::testing::SetArrayArgument; | 44 using ::testing::SetArrayArgument; |
(...skipping 2277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2322 .Times(1) | 2322 .Times(1) |
2323 .RetiresOnSaturation(); | 2323 .RetiresOnSaturation(); |
2324 DrawArrays cmd; | 2324 DrawArrays cmd; |
2325 cmd.Init(GL_TRIANGLES, 0, kNumVertices); | 2325 cmd.Init(GL_TRIANGLES, 0, kNumVertices); |
2326 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 2326 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
2327 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 2327 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
2328 } | 2328 } |
2329 | 2329 |
2330 } // namespace gles2 | 2330 } // namespace gles2 |
2331 } // namespace gpu | 2331 } // namespace gpu |
OLD | NEW |