diff options
author | kbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-26 18:39:05 +0000 |
---|---|---|
committer | kbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-26 18:39:05 +0000 |
commit | 304b4a5c92e957f089bf9366445d43f610b25571 (patch) | |
tree | 1930e84332e9d09cc200b9d6098e40ba74e0cbf9 /gpu/command_buffer/service/program_manager_unittest.cc | |
parent | aefdb477a4fb4ee11b85d2e8fa265aea531d8bf5 (diff) | |
download | chromium_src-304b4a5c92e957f089bf9366445d43f610b25571.zip chromium_src-304b4a5c92e957f089bf9366445d43f610b25571.tar.gz chromium_src-304b4a5c92e957f089bf9366445d43f610b25571.tar.bz2 |
Fixed GPU unit tests on Mac.
- Added mocks for Mac-specific methods
- Conditionally declared storage for static const integer values in classes
- Deleted unused variables
BUG=none
TEST=ran GPU unit tests on Mac
Review URL: http://codereview.chromium.org/1376002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42787 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/program_manager_unittest.cc')
-rw-r--r-- | gpu/command_buffer/service/program_manager_unittest.cc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/program_manager_unittest.cc b/gpu/command_buffer/service/program_manager_unittest.cc index b75b628..2ec65f8 100644 --- a/gpu/command_buffer/service/program_manager_unittest.cc +++ b/gpu/command_buffer/service/program_manager_unittest.cc @@ -222,6 +222,37 @@ ProgramManagerWithShaderTest::AttribInfo { kAttrib3Name, kAttrib3Size, kAttrib3Type, kAttrib3Location, }, }; +// GCC requires these declarations, but MSVC requires they not be present +#ifndef COMPILER_MSVC +const GLint ProgramManagerWithShaderTest::kNumVertexAttribs; +const GLuint ProgramManagerWithShaderTest::kProgramId; +const GLint ProgramManagerWithShaderTest::kMaxAttribLength; +const GLint ProgramManagerWithShaderTest::kAttrib1Size; +const GLint ProgramManagerWithShaderTest::kAttrib2Size; +const GLint ProgramManagerWithShaderTest::kAttrib3Size; +const GLint ProgramManagerWithShaderTest::kAttrib1Location; +const GLint ProgramManagerWithShaderTest::kAttrib2Location; +const GLint ProgramManagerWithShaderTest::kAttrib3Location; +const GLenum ProgramManagerWithShaderTest::kAttrib1Type; +const GLenum ProgramManagerWithShaderTest::kAttrib2Type; +const GLenum ProgramManagerWithShaderTest::kAttrib3Type; +const GLint ProgramManagerWithShaderTest::kInvalidAttribLocation; +const GLint ProgramManagerWithShaderTest::kBadAttribIndex; +const GLint ProgramManagerWithShaderTest::kMaxUniformLength; +const GLint ProgramManagerWithShaderTest::kUniform1Size; +const GLint ProgramManagerWithShaderTest::kUniform2Size; +const GLint ProgramManagerWithShaderTest::kUniform3Size; +const GLint ProgramManagerWithShaderTest::kUniform1Location; +const GLint ProgramManagerWithShaderTest::kUniform2Location; +const GLint ProgramManagerWithShaderTest::kUniform2ElementLocation; +const GLint ProgramManagerWithShaderTest::kUniform3Location; +const GLenum ProgramManagerWithShaderTest::kUniform1Type; +const GLenum ProgramManagerWithShaderTest::kUniform2Type; +const GLenum ProgramManagerWithShaderTest::kUniform3Type; +const GLint ProgramManagerWithShaderTest::kInvalidUniformLocation; +const GLint ProgramManagerWithShaderTest::kBadUniformIndex; +#endif + const size_t ProgramManagerWithShaderTest::kNumAttribs = arraysize(ProgramManagerWithShaderTest::kAttribs); |