| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1861 Uniform4uiv(kUniform7RealLocation, 1, PointsToArray(temp, 4))); | 1861 Uniform4uiv(kUniform7RealLocation, 1, PointsToArray(temp, 4))); |
| 1862 cmd.Init(kUniform7FakeLocation, 1, &temp[0]); | 1862 cmd.Init(kUniform7FakeLocation, 1, &temp[0]); |
| 1863 EXPECT_EQ(error::kNoError, ExecuteImmediateCmd(cmd, sizeof(temp))); | 1863 EXPECT_EQ(error::kNoError, ExecuteImmediateCmd(cmd, sizeof(temp))); |
| 1864 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 1864 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 1865 } | 1865 } |
| 1866 | 1866 |
| 1867 TEST_P(GLES2DecoderTest, BindAttribLocationBucket) { | 1867 TEST_P(GLES2DecoderTest, BindAttribLocationBucket) { |
| 1868 const uint32_t kBucketId = 123; | 1868 const uint32_t kBucketId = 123; |
| 1869 const GLint kLocation = 2; | 1869 const GLint kLocation = 2; |
| 1870 const char* kName = "testing"; | 1870 const char* kName = "testing"; |
| 1871 EXPECT_CALL(*gl_, | |
| 1872 BindAttribLocation(kServiceProgramId, kLocation, StrEq(kName))) | |
| 1873 .Times(1); | |
| 1874 SetBucketAsCString(kBucketId, kName); | 1871 SetBucketAsCString(kBucketId, kName); |
| 1875 BindAttribLocationBucket cmd; | 1872 BindAttribLocationBucket cmd; |
| 1876 cmd.Init(client_program_id_, kLocation, kBucketId); | 1873 cmd.Init(client_program_id_, kLocation, kBucketId); |
| 1877 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 1874 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 1878 } | 1875 } |
| 1879 | 1876 |
| 1880 TEST_P(GLES2DecoderTest, BindAttribLocationBucketInvalidArgs) { | 1877 TEST_P(GLES2DecoderTest, BindAttribLocationBucketInvalidArgs) { |
| 1881 const uint32_t kBucketId = 123; | 1878 const uint32_t kBucketId = 123; |
| 1882 const GLint kLocation = 2; | 1879 const GLint kLocation = 2; |
| 1883 const char* kName = "testing"; | 1880 const char* kName = "testing"; |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2228 } | 2225 } |
| 2229 | 2226 |
| 2230 // TODO(gman): DeleteProgram | 2227 // TODO(gman): DeleteProgram |
| 2231 | 2228 |
| 2232 // TODO(gman): UseProgram | 2229 // TODO(gman): UseProgram |
| 2233 | 2230 |
| 2234 // TODO(gman): DeleteShader | 2231 // TODO(gman): DeleteShader |
| 2235 | 2232 |
| 2236 } // namespace gles2 | 2233 } // namespace gles2 |
| 2237 } // namespace gpu | 2234 } // namespace gpu |
| OLD | NEW |